From 5846df359015a7b00348d2e7f3b0fc41f1ed8b0c Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Tue, 11 Oct 2022 20:06:23 +0200 Subject: [PATCH] Adjust project structure exercise --- .../project-structure/main-with-preamble.done.tex | 2 -- exercises/project-structure/main.done.tex | 2 -- exercises/project-structure/main.raw.tex | 11 ----------- exercises/project-structure/section3.done.tex | 9 --------- exercises/project-structure/tasks.done.tex | 10 +++++----- exercises/project-structure/tasks.raw.tex | 7 +++---- 6 files changed, 8 insertions(+), 33 deletions(-) delete mode 100644 exercises/project-structure/section3.done.tex diff --git a/exercises/project-structure/main-with-preamble.done.tex b/exercises/project-structure/main-with-preamble.done.tex index 460ade1..dd4ac90 100644 --- a/exercises/project-structure/main-with-preamble.done.tex +++ b/exercises/project-structure/main-with-preamble.done.tex @@ -13,7 +13,5 @@ \input{section1} \newpage \input{section2} -\newpage -\input{section3} \end{document} \ No newline at end of file diff --git a/exercises/project-structure/main.done.tex b/exercises/project-structure/main.done.tex index 5aea718..96b2b4e 100644 --- a/exercises/project-structure/main.done.tex +++ b/exercises/project-structure/main.done.tex @@ -8,7 +8,5 @@ \input{section1.done} \newpage \input{section2.done} -\newpage -\input{section3.done} \end{document} \ No newline at end of file diff --git a/exercises/project-structure/main.raw.tex b/exercises/project-structure/main.raw.tex index e2b0746..a303ef8 100644 --- a/exercises/project-structure/main.raw.tex +++ b/exercises/project-structure/main.raw.tex @@ -26,15 +26,4 @@ Marzipan marzipan cupcake pastry tart sesame snaps sweet roll pie. Marshmallow p Carrot cake cotton candy toffee jelly-o chocolate toffee cookie sweet roll. Pastry tootsie roll marzipan apple pie lollipop gingerbread sweet. Fruitcake gummies bear claw croissant. Pie cotton candy cheesecake powder bonbon candy canes lemon drops sweet. -\newpage -\section{Third section} - -Tart dragée bear claw icing fruitcake. Caramels marzipan jujubes bonbon. Fruitcake danish cookie halvah cake. Cheesecake sesame snaps jelly beans. Macaroon powder pie biscuit biscuit croissant cotton candy. Chocolate bar chupa chups tart cheesecake gingerbread tart. Ice cream muffin chupa chups sugar plum dragée topping marshmallow dragée. - -Brownie chocolate cake oat cake soufflé ice cream brownie soufflé pudding. Wafer toffee topping bonbon. Croissant cheesecake halvah ice cream pudding. Jelly pastry carrot cake dragée. Jelly-o cotton candy croissant. - -Halvah pie donut sweet pudding sweet roll soufflé tart tiramisu. Fruitcake soufflé lemon drops croissant croissant sweet lemon drops icing. Jelly cheesecake cotton candy jujubes candy canes. Gummi bears gummies pie pudding sweet roll cake wafer. Icing powder ice cream carrot cake pudding sesame snaps. Caramels brownie lemon drops macaroon. Oat cake sesame snaps chocolate cake bear claw muffin chocolate fruitcake pie. - -Bear claw wafer jelly-o jujubes donut powder jelly-o soufflé gummi bears. Carrot cake gummies gummi bears chocolate cake. Soufflé dessert jelly beans wafer. Sugar plum liquorice icing. Gummies marzipan lemon drops apple pie. Jelly-o icing lemon drops cake. Chupa chups chocolate sesame snaps gingerbread pastry bear claw carrot cake apple pie. - \end{document} diff --git a/exercises/project-structure/section3.done.tex b/exercises/project-structure/section3.done.tex deleted file mode 100644 index cea1bcc..0000000 --- a/exercises/project-structure/section3.done.tex +++ /dev/null @@ -1,9 +0,0 @@ -\section{Third section} - -Tart dragée bear claw icing fruitcake. Caramels marzipan jujubes bonbon. Fruitcake danish cookie halvah cake. Cheesecake sesame snaps jelly beans. Macaroon powder pie biscuit biscuit croissant cotton candy. Chocolate bar chupa chups tart cheesecake gingerbread tart. Ice cream muffin chupa chups sugar plum dragée topping marshmallow dragée. - -Brownie chocolate cake oat cake soufflé ice cream brownie soufflé pudding. Wafer toffee topping bonbon. Croissant cheesecake halvah ice cream pudding. Jelly pastry carrot cake dragée. Jelly-o cotton candy croissant. - -Halvah pie donut sweet pudding sweet roll soufflé tart tiramisu. Fruitcake soufflé lemon drops croissant croissant sweet lemon drops icing. Jelly cheesecake cotton candy jujubes candy canes. Gummi bears gummies pie pudding sweet roll cake wafer. Icing powder ice cream carrot cake pudding sesame snaps. Caramels brownie lemon drops macaroon. Oat cake sesame snaps chocolate cake bear claw muffin chocolate fruitcake pie. - -Bear claw wafer jelly-o jujubes donut powder jelly-o soufflé gummi bears. Carrot cake gummies gummi bears chocolate cake. Soufflé dessert jelly beans wafer. Sugar plum liquorice icing. Gummies marzipan lemon drops apple pie. Jelly-o icing lemon drops cake. Chupa chups chocolate sesame snaps gingerbread pastry bear claw carrot cake apple pie. \ No newline at end of file diff --git a/exercises/project-structure/tasks.done.tex b/exercises/project-structure/tasks.done.tex index acff4d5..fc3f7ca 100644 --- a/exercises/project-structure/tasks.done.tex +++ b/exercises/project-structure/tasks.done.tex @@ -1,10 +1,10 @@ \begin{enumerate} \item - \textbf{Put the sections of the file into separate files, named - \file{section1.tex}, \file{section2.tex}, and \file{section3.tex} and insert them using the} \code{latex}{\textbackslash input} \textbf{command. (In TeXstudio, make sure that you select the main file as the file to be compiled by right-clicking on it and selecting \enquote{Select as explicit root document.})} + Put the sections of the file into separate files, named + \file{section1.tex}, \file{section2.tex}, and \file{section3.tex} and insert them using the \code{latex}{\textbackslash input} command. (In TeXstudio, make sure that you select the main file as the file to be compiled by right-clicking on it and selecting \enquote{Select as explicit root document.}) \begin{figure}[H] - \codeblock{latex}{exercises/project-structure/main-with-preamble.done.tex} + \codeblock{latex}{exercises/project-structure/main.done.tex} \caption{\file{main.tex}} \end{figure} @@ -14,9 +14,9 @@ sections)} \end{figure} - \item \textbf{Can the preamble also be excluded? If no, why? If yes, when can outsourcing the preamble be useful?} + \item Can the preamble also live in its own file? Find out by moving it analogously to the sections. If no, why? If yes, why can outsourcing the preamble be useful? - The preamble can also be outsourced, like in task 1. In real-world \LaTeX{} projects, we often make use of numerous packages that need to be + The preamble can also be outsourced. In real-world \LaTeX{} projects, we often make use of numerous packages that need to be configured by additional commands within the preamble. Therefore, it is advisable to outsource the preamble. On top of that, this is useful because the file with the most-commonly used packages can be moved from diff --git a/exercises/project-structure/tasks.raw.tex b/exercises/project-structure/tasks.raw.tex index 5b4f819..e327f11 100644 --- a/exercises/project-structure/tasks.raw.tex +++ b/exercises/project-structure/tasks.raw.tex @@ -1,6 +1,5 @@ \begin{enumerate} - \item \textbf{Put the sections of the file into separate files, named} - \file{section1.tex}, \file{section2.tex}\textbf{, and} \file{section3.tex}. - \textbf{Include them using the} \code{latex}{\textbackslash input} \textbf{command. (In TeXstudio, make sure that you select the main file as the file to be compiled by right-clicking on it and selecting \enquote{Select as explicit root document.})} - \item \textbf{Can the preamble also live in its own file? If no, why? If yes, why can outsourcing the preamble be useful?} + \item Put the sections of the file into separate files, named \file{section1.tex} and \file{section2.tex}. + Include them using the \code{latex}{\textbackslash input} command. (In TeXstudio, make sure that you select the main file as the file to be compiled by right-clicking on it and selecting \enquote{Select as explicit root document.}) + \item Can the preamble also live in its own file? Find out by moving it analogously to the sections. If no, why? If yes, why can outsourcing the preamble be useful? \end{enumerate}