diff --git a/exercises/references/references.code.done.tex b/exercises/references/references.code.done.tex index 5b15226..7cbf8d5 100644 --- a/exercises/references/references.code.done.tex +++ b/exercises/references/references.code.done.tex @@ -1,13 +1,14 @@ -C\# is an object-oriented programming language that was developed by Microsoft in 2011. In \cref{fig:csharp} we can see the logo of the programming language. +C\# is an object-oriented programming language that was developed by Microsoft in 2011. +\Cref{fig:csharp} displays the logo of the programming language. \begin{figure}[H] - \label{fig:csharp} \centering \includegraphics[width=2cm]{exercises/references/csharp.png} \caption{The logo of C\#} + \label{fig:csharp} \end{figure} -\cref{lst:csharphelloworld} 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. +Listing \ref{lst:csharphelloworld} 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[label=lst:csharphelloworld, caption=Hello World in C\#]{exercises/references/HelloLateXFriends.cs} \ No newline at end of file diff --git a/exercises/references/references.raw.tex b/exercises/references/references.raw.tex index 62bf9c5..8d11430 100644 --- a/exercises/references/references.raw.tex +++ b/exercises/references/references.raw.tex @@ -1,6 +1,6 @@ % !TeX root = ../../main-exercises.tex -C\# is an object-oriented programming language that was developed by Microsoft in 2011. In the figure we can see the logo of the programming language. +C\# is an object-oriented programming language that was developed by Microsoft in 2011. The figure displays the logo of the programming language. \begin{figure}[H] \centering diff --git a/exercises/references/task.tex b/exercises/references/task.tex index c1bb53e..7732c3b 100644 --- a/exercises/references/task.tex +++ b/exercises/references/task.tex @@ -4,7 +4,7 @@ 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. +introduce labels and captions for the elements that you want to reference. Make sure to use suitable prefixes before the labels. For source code listings, adding labels and captions is a bit different.