diff --git a/slides/chapter-04.de.md b/slides/chapter-04.de.md index 9482deb..2125fbd 100644 --- a/slides/chapter-04.de.md +++ b/slides/chapter-04.de.md @@ -202,4 +202,20 @@ Größere Projekte kompilieren @content * Von nun an kompilieren wir die Datei `main.tex` im Wurzelverzeichnis des Projektordners. * Klickt hierzu in TeXstudio mit der rechten Maustaste auf die Datei und wählt „Explizit als Root-Dokument setzen“. -* Anschließend könnt ihr wie gewohnt kompilieren. \ No newline at end of file +* Anschließend könnt ihr wie gewohnt kompilieren. + + +@slide(layout=task) + +@task-number +4 + +@title +Ein strukturiertes Projekt + +@content +Im Ordner `exercises/project-structure` findet ihr eine Datei namens `main.tex`. + +* Erstellt neue Dateien (z. B.`section1.tex`, `section2.tex` und `section3.tex` und verschiebt die Abschnitte in diese. +* Importiert die Fragmente anschließend mit Hilfe des `\input`-Befehls. +* Schaut euch abschließend die Gesamtstruktur unseres Projektarchivs an, beginnend mit `main.tex` im Wurzelverzeichnis. \ No newline at end of file diff --git a/slides/chapter-04.en.md b/slides/chapter-04.en.md index 6fa014e..c11d10d 100644 --- a/slides/chapter-04.en.md +++ b/slides/chapter-04.en.md @@ -187,20 +187,6 @@ A simple way of keeping the main file even more organised. @preview ![](svg/chapter-04/main-parts-preamble-crop.svg){.thin-padding} -@slide(layout=task) - -@task-number -4 - -@title -A structured project - -@content -You will find a file named `main.tex` in the folder `exercises/project-structure`. - -* Extract the sections into their own files (`section1.tex`, `section2.tex`, and `section3.tex`) and insert them using the `\input` command. -* Have a look at the project archive, starting from `main.tex`. - @slide(layout=content-only-with-category) @@ -214,3 +200,18 @@ Compiling larger projects * From now on, we will compile the file `main.tex` in the project root. * To do so, right click on the file in TeXstudio and choose “Select as explicit root document” from the dropdown. * Next, compile as usual. + + +@slide(layout=task) + +@task-number +4 + +@title +A structured project + +@content +You will find a file named `main.tex` in the folder `exercises/project-structure`. + +* Put the sections of the file into separate files, named `section1.tex`, `section2.tex`, and `section3.tex`. Include them using the `\input` command. +* Finally, have a look at the general project archive, starting from `main.tex` (in the root folder of the project archive). \ No newline at end of file