Add slides about code listings and lists

This commit is contained in:
Julius Freudenberger 2022-04-20 15:38:35 +02:00
parent 92e02dc43e
commit 23d3dcfbb2
8 changed files with 118 additions and 6 deletions

View file

@ -0,0 +1,3 @@
public void main() {
System.out.println("HI");
}

View file

@ -1,6 +1,8 @@
\begin{figure}
\includegraphics[height=
.4\textheight]{katze}
\label{img:katze}
\includegraphics[width=
.7\textwidth]{katze}
\caption{Eine Katze}
\label{fig:katze}
\end{figure}
Abbildung \ref{fig:katze}
zeigt eine Katze.

View file

@ -0,0 +1,8 @@
\tableofcontents
\listoffigures
\listoflistings
\printglossaries
\printindex
\printbibliography

View file

@ -0,0 +1,5 @@
\lstinputlisting[language=java]
{codebeispiele/example.java}
\inputminted{java}
{codebeispiele/example.java}

View file

@ -0,0 +1,5 @@
\begin{lstlisting}[language=java]
public void main() {
System.out.println("Hi");
}
\end{lstlisting}

View file

@ -0,0 +1,5 @@
\begin{minted}{java}
public void main() {
System.out.println("Hi");
}
\end{minted}

View file

@ -0,0 +1,7 @@
\verb|Text in Monospacefont|.
\begin{verbatim}
Absatz in Monospacefont.
Hier könnte Code dargestellt
werden.
\end{verbatim}