change cref to Cref in references exercise

This commit is contained in:
Fradtschuk 2022-08-22 13:31:01 +02:00
parent 56a312884a
commit d59e8efae6
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ Referenzen einfügen
@content @content
* Ersetzt im Text in der Datei `references.tex` im Ordner `exercises/references` *In the figure* und *The following source code listing* durch eine **Referenz** auf das Bild bzw. auf das Quelltext-Listing. * Ersetzt im Text in der Datei `references.tex` im Ordner `exercises/references` *In the figure* und *The following source code listing* durch eine **Referenz** auf das Bild bzw. auf das Quelltext-Listing.
* Nutzt dafür den Befehl `\cref`. * Nutzt dafür den Befehl `\Cref`.
* Achtet darauf, zuerst **Labels** für die Elemente, die ihr referenzieren wollt, zu vergeben. * Achtet darauf, zuerst **Labels** für die Elemente, die ihr referenzieren wollt, zu vergeben.
* Packt dafür das Quelltext-Listing in eine **Umgebung** namens `listing`. * Packt dafür das Quelltext-Listing in eine **Umgebung** namens `listing`.
* Fügt noch eine **Beschriftung** zum Listing hinzu. * Fügt noch eine **Beschriftung** zum Listing hinzu.

View File

@ -206,7 +206,7 @@ Inserting references
@content @content
* In file `exercises/references/references.tex`, replace *In the figure* and *The following source code listing* by **references** to the figure and to the source code listing. * In file `exercises/references/references.tex`, replace *In the figure* and *The following source code listing* by **references** to the figure and to the source code listing.
* Use the command `\cref` for the references. * Use the command `\Cref` for the references.
* Make sure to add **labels** to the elements that you want to create a reference for. * Make sure to add **labels** to the elements that you want to create a reference for.
* To do so, wrap the source code listing in a `listing` **environment**. * To do so, wrap the source code listing in a `listing` **environment**.
* Additionally, add a **caption** to the source code listing. * Additionally, add a **caption** to the source code listing.