Compare commits

...

2 Commits

Author SHA1 Message Date
0a9086eb92 Replace the codeblock command 2022-04-11 14:09:12 +02:00
a26138023c Fix strange line breaks 2022-04-11 13:58:43 +02:00
3 changed files with 7 additions and 14 deletions

View File

@ -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}

View File

@ -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}

View File

@ -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}