From f83a60b5c00b0fc04c5c4e4ab4127976a117a513 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Fri, 28 Apr 2023 17:00:17 +0200 Subject: [PATCH] Adjust exercise --- slides/references-and-footnotes.de.md | 3 +-- slides/references-and-footnotes.en.md | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/slides/references-and-footnotes.de.md b/slides/references-and-footnotes.de.md index 83d7dc9..cb6f1ca 100644 --- a/slides/references-and-footnotes.de.md +++ b/slides/references-and-footnotes.de.md @@ -162,8 +162,7 @@ Referenzen einfügen * 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`. * 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`. -* Fügt noch eine **Beschriftung** zum Listing hinzu. +* Bei **Quelltext-Listings** funktioniert die Angabe von Labels und Captions leicht anders. Nutzt euer bisheriges Wissen und das Internet, um herauszufinden, wie ihr den Befehl `\lstinputlisting` anpassen müsst, um beides zu vergeben. @slide(layout=extra-content-and-preview) diff --git a/slides/references-and-footnotes.en.md b/slides/references-and-footnotes.en.md index efe9c3b..187c634 100644 --- a/slides/references-and-footnotes.en.md +++ b/slides/references-and-footnotes.en.md @@ -163,9 +163,8 @@ Inserting references @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. * Use the command `\Cref` for the references. -* 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**. -* Additionally, add a **caption** to the source code listing. +* Make sure to add **labels** to the elements that you want to create a reference for. +* For source code listings, adding labels and captions is a bit different. Try to apply the knowledge you gained so far to retrieve the correct version of the `\lstinputlisting` command. Use the Internet, if necessary. @slide(layout=extra-content-and-preview)