From 0a9086eb920e48c22266d0f7c57da206cf6b41c1 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Mon, 11 Apr 2022 14:09:12 +0200 Subject: [PATCH] Replace the codeblock command --- exercises/references/references.code.done.tex | 4 ++-- exercises/references/references.raw.tex | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/exercises/references/references.code.done.tex b/exercises/references/references.code.done.tex index 1190be1..fac75bb 100644 --- a/exercises/references/references.code.done.tex +++ b/exercises/references/references.code.done.tex @@ -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} \ No newline at end of file diff --git a/exercises/references/references.raw.tex b/exercises/references/references.raw.tex index 6e25f6f..bf5452f 100644 --- a/exercises/references/references.raw.tex +++ b/exercises/references/references.raw.tex @@ -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}