FIx listings task

This commit is contained in:
Knoch 2023-04-28 17:26:48 +02:00
parent f83a60b5c0
commit 44b7b9820a
2 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ Listings
@content @content
* Im Ordner `exercises/source-code-listings` findet ihr eine Datei namens `Source.java`. * Im Ordner `exercises/source-code-listings` findet ihr eine Datei namens `Source.java`.
* **Bindet** den Java-Quelltext in der Datei `source-code-listings.tex` **ein**. (Beachtet, dass der Dateipfad relativ zu `main-exercises.tex` ist.) * **Bindet** den Java-Quelltext in der Datei `source-code-listings.tex` **ein**. (Beachtet, dass der Dateipfad relativ zu `main-exercises.tex` ist.)
* Erlaubt die Verwendung von **Sonderzeichen** durch Angabe der `literate`-Option.
* Aktiviert das **Syntax-Highlighting** durch Angabe der Sprache Java. * Aktiviert das **Syntax-Highlighting** durch Angabe der Sprache Java.
* **Nummeriert** die Zeilen und aktiviert **Umbrüche**. * **Nummeriert** die Zeilen und aktiviert **Umbrüche**.
* Setzt mit dem Parameter `basicstyle` eine dicktengleiche Schrift (`\ttfamily \small`). * Setzt mit dem Parameter `basicstyle` eine dicktengleiche Schrift (`\ttfamily \small`).

View File

@ -100,6 +100,7 @@ Listings
@content @content
* In the directory `exercises/source-code-listings` you can find a file named `Source.java`. * In the directory `exercises/source-code-listings` you can find a file named `Source.java`.
* **Include** it in the file `source-code-listings.tex`. (Keep in mind that the file path is relative to the main LaTeX document, i. e., to `main-exercises.tex`.) * **Include** it in the file `source-code-listings.tex`. (Keep in mind that the file path is relative to the main LaTeX document, i. e., to `main-exercises.tex`.)
* Enable **special characters** via the `literate` option.
* Activate **syntax highlighting** by stating the programming language Java. * Activate **syntax highlighting** by stating the programming language Java.
* **Number** the code lines. * **Number** the code lines.
* Set the `basicstyle` to a proper mono-spaced font (`\ttfamily \small`) * Set the `basicstyle` to a proper mono-spaced font (`\ttfamily \small`)