Compare commits
2 Commits
4350ac3f0c
...
0a9086eb92
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a9086eb92 | |||
| a26138023c |
@ -12,6 +12,6 @@ C\# is an object-oriented programming language that was developed by Microsoft i
|
||||
\begin{listing}[H]
|
||||
\caption{A simple C\# program}
|
||||
\label{lst:csharphelloworld}
|
||||
\inputminted[breaklines,
|
||||
linenos=true]{csharp}{exercises/references/HelloLateXFriends.cs}
|
||||
\lstset{language=csharp}
|
||||
\lstinputlisting{exercises/references/HelloLateXFriends.cs}
|
||||
\end{listing}
|
||||
@ -8,8 +8,5 @@ C\# is an object-oriented programming language that was developed by Microsoft i
|
||||
|
||||
The following source code listing shows a program that prints the text \enquote{Hello LaTeX friends!} to the console. Like Java, C\# makes use of classes and main methods to build executable applications.
|
||||
|
||||
\codeblock{csharp}{exercises/references/HelloLateXFriends.cs}
|
||||
|
||||
|
||||
|
||||
|
||||
\lstset{language=csharp}
|
||||
\lstinputlisting{exercises/references/HelloLateXFriends.cs}
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
In file \file{exercises/references/references.tex}, replace \enquote{in the
|
||||
figure} and \enquote{the following source code listing} with suited references.
|
||||
Use the command \code{latex}{\textbackslash cref}. Do not forget to first
|
||||
introduce
|
||||
labels for the elements that you want to reference. To do so, first of all,
|
||||
wrap the source code listing in a \code{latex}{listing} environment. Also
|
||||
insert a caption for the source code listing.
|
||||
In file \file{exercises/references/references.tex}, replace \enquote{in the figure} and \enquote{the following source code listing} with suited references.
|
||||
Use the command \code{latex}{\textbackslash cref}. Do not forget to first introduce labels for the elements that you want to reference. To do so, first of all, wrap the source code listing in a \code{latex}{listing} environment.
|
||||
Also, insert a caption for the source code listing.
|
||||
Make sure to use suitable prefixes before the labels.
|
||||
|
||||
\exercisematerial{exercises/references/references}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user