Fix listings task

This commit is contained in:
Knoch 2023-04-28 17:26:58 +02:00
parent 8f9ef296fd
commit e0e694f900
2 changed files with 3 additions and 1 deletions

View File

@ -3,5 +3,6 @@
numbers=left, % line numbers numbers=left, % line numbers
showstringspaces=false, % spaces in strings showstringspaces=false, % spaces in strings
keywordstyle=\color{blue}, % keyword color keywordstyle=\color{blue}, % keyword color
basicstyle=\ttfamily\small % overall font and size basicstyle=\ttfamily\small, % overall font and size
literate={ä}{{\"a}}1 {ß}{{\ss}}1 % special characters
]{exercises/source-code-listings/Source.java} ]{exercises/source-code-listings/Source.java}

View File

@ -9,6 +9,7 @@ If you have questions, consult the \pkg{minted} or \pkg{listings} package docume
\begin{enumerate} \begin{enumerate}
\item Include the file into \\ \item Include the file into \\
\file{exercises/source-code-listings/source-code-listings.tex}. \file{exercises/source-code-listings/source-code-listings.tex}.
\item Enable special characters via the \code{latex}{literate} option.
\item Activate syntax highlighting by stating the programming language Java. \item Activate syntax highlighting by stating the programming language Java.
\item Add line breaks and line numbers. \item Add line breaks and line numbers.
\item Use the theme \code{latex}{native}. \item Use the theme \code{latex}{native}.