Compare commits

..

No commits in common. "0a9086eb920e48c22266d0f7c57da206cf6b41c1" and "4350ac3f0c99acaacd2928d876458bab2be5142d" have entirely different histories.

3 changed files with 14 additions and 7 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}
\lstset{language=csharp}
\lstinputlisting{exercises/references/HelloLateXFriends.cs}
\inputminted[breaklines,
linenos=true]{csharp}{exercises/references/HelloLateXFriends.cs}
\end{listing}

View File

@ -8,5 +8,8 @@ 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.
\lstset{language=csharp}
\lstinputlisting{exercises/references/HelloLateXFriends.cs}
\codeblock{csharp}{exercises/references/HelloLateXFriends.cs}

View File

@ -1,6 +1,10 @@
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}