Use autogobble in minted exercise

This commit is contained in:
Knoch 2022-03-13 19:22:33 +01:00
parent f71ca7f887
commit 11981baa80
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,7 @@
bgcolor=ourBackgroundColor, % background color
firstline=5, % first line to be included
lastline=7, % last line to be included
gobble=4 % remove leading spaces
autogobble=true % remove leading spaces
]{java}{exercises/source-code-listings/Source.java}
\usemintedstyle{default}

View File

@ -12,8 +12,7 @@ If you have questions, consult the \pkg{minted} or \pkg{listings} package docume
\item Use the theme \code{latex}{native}.
\item This theme is optimized for a dark background. Change the background color to dark blue.
\item Include only lines 5 to 7.
\item Delete the spaces at the beginning of the lines by using a suitable
option. (Hint: The documentation speaks of \code{latex}{gobble}.)
\item Delete the spaces at the beginning of the lines. (Hint: The documentation speaks of \code{latex}{autogobble}.)
\end{enumerate}
\section*{Listings tasks}