Merge branch '2021-translate-script' of git.stuve-bamberg.de:latex/latex-skript into 2021-translate-script

This commit is contained in:
Knoch 2022-01-08 14:03:15 +01:00
commit ff281eea38
3 changed files with 44 additions and 65 deletions

View File

@ -126,7 +126,6 @@
\lstset{language=[LaTeX]TeX, \lstset{language=[LaTeX]TeX,
basicstyle=\footnotesize, basicstyle=\footnotesize,
% breakatwhitespace=false,
breaklines=true, breaklines=true,
keywordstyle=\color{ForestGreen}\bfseries, keywordstyle=\color{ForestGreen}\bfseries,
emph={% emph={%
@ -146,7 +145,7 @@
{ä}{{\"a}}1 {ä}{{\"a}}1
{ö}{{\"o}}1 {ö}{{\"o}}1
{é}{{\'e}}1 {é}{{\'e}}1
{}{{\textellipsis}}1 {}{\textellipsis}1
} }
\lstinputlisting{#2}% \lstinputlisting{#2}%
% %
@ -163,7 +162,7 @@
{ä}{{\"a}}1 {ä}{{\"a}}1
{ö}{{\"o}}1 {ö}{{\"o}}1
{é}{{\'e}}1 {é}{{\'e}}1
{}{{\textellipsis}}1 {}{\textellipsis}1
} }
\lstinputlisting{#2} \lstinputlisting{#2}

View File

@ -1,21 +1,6 @@
\section{First section} \section{First section}
Jelly beans tiramisu chocolate bar chupa chups candy canes lollipop liquorice Jelly beans tiramisu chocolate bar chupa chups candy canes lollipop liquorice cheesecake tootsie roll. Marshmallow sugar plum cake tiramisu jelly cake bear claw. Croissant liquorice jelly lollipop carrot cake. Cheesecake danish chocolate halvah. Candy canes jujubes chupa chups jujubes candy canes tootsie roll toffee danish sesame snaps. Sugar plum gummi bears lollipop chocolate bar. Ice cream soufflé sweet lemon drops chocolate soufflé gingerbread cookie muffin.
cheesecake tootsie roll. Marshmallow sugar plum cake tiramisu jelly cake bear
claw. Croissant liquorice jelly lollipop carrot cake. Cheesecake danish
chocolate halvah. Candy canes jujubes chupa chups jujubes candy canes tootsie
roll toffee danish sesame snaps. Sugar plum gummi bears lollipop chocolate bar.
Ice cream soufflé sweet lemon drops chocolate soufflé gingerbread cookie muffin.
Sugar plum danish halvah jujubes pastry donut carrot cake dessert donut. Sweet Sugar plum danish halvah jujubes pastry donut carrot cake dessert donut. Sweet gingerbread gingerbread wafer gummi bears pastry. Tootsie roll donut powder cake. Brownie halvah lollipop gummi bears. Liquorice pie caramels jelly beans. Halvah danish brownie danish toffee cotton candy lemon drops.
gingerbread gingerbread wafer gummi bears pastry. Tootsie roll donut powder
cake. Brownie halvah lollipop gummi bears. Liquorice pie caramels jelly beans.
Halvah danish brownie danish toffee cotton candy lemon drops.
Donut jelly beans candy canes muffin lemon drops carrot cake sugar plum. Sesame Donut jelly beans candy canes muffin lemon drops carrot cake sugar plum. Sesame snaps pie bonbon cotton candy cookie caramels. Chupa chups dessert tootsie roll carrot cake candy cookie sweet roll jelly beans. Oat cake halvah gingerbread bonbon sweet sesame snaps dragée carrot cake. Bonbon pastry chupa chups. Chocolate cake macaroon jelly-o. Pastry pastry sugar plum jujubes lemon drops gummi bears sugar plum cheesecake fruitcake. Chocolate cake chocolate candy. Wafer carrot cake chocolate cake jujubes cupcake soufflé gingerbread chocolate cake donut.
snaps pie bonbon cotton candy cookie caramels. Chupa chups dessert tootsie roll
carrot cake candy cookie sweet roll jelly beans. Oat cake halvah gingerbread
bonbon sweet sesame snaps dragée carrot cake. Bonbon pastry chupa chups.
Chocolate cake macaroon jelly-o. Pastry pastry sugar plum jujubes lemon drops
gummi bears sugar plum cheesecake fruitcake. Chocolate cake chocolate candy.
Wafer carrot cake chocolate cake jujubes cupcake soufflé gingerbread chocolate
cake donut.

View File

@ -1,51 +1,46 @@
\begin{enumerate} \begin{enumerate}
\item \item First one
\textbf{Put the sections of the file into separate files, named \begin{figure}[H]
\file{section1.tex}, \file{section2.tex}, and \codeblock{latex}{exercises/project-structure/main-with-preamble.done.tex}
\file{section3.tex}. \caption{\file{main.tex}}
Include them using the \code{latex}{\textbackslash include} command.} \end{figure}
\begin{figure}[H] \item Second one
\inputminted[linenos=true]{latex}{exercises/project-structure/main-with-preamble.done.tex} \begin{figure}[H]
\caption{\mintinline{latex}{main.tex}} \codeblock{latex}{exercises/project-structure/section1.done.tex}
\end{figure} \caption{\file{section1.tex} (analogous for the other
\begin{figure}[H] sections)}
\inputminted[linenos=true,breaklines=true]{latex}{exercises/project-structure/section1.done.tex} \end{figure}
\caption{\mintinline{latex}{section1.tex} (analogous for the other \item \textbf{Which command becomes superfluous when you use
sections)} \code{latex}{\textbackslash include}?} \\
\end{figure} \code{latex}{\textbackslash include} makes every included file appear on a
\item \textbf{Which command becomes superfluous when you use new page. Hence the command \code{latex}{\textbackslash newpage} becomes
\code{latex}{\textbackslash include}?} \\ superfluous.
\code{latex}{\textbackslash include} makes every included file appear on a
new \item \textbf{Can the preamble also be excluded? If no, why? If yes, when
page. Hence the command \code{latex}{\textbackslash newpage} becomes can outsourcing the preamble be useful?}
superfluous.
\item The preamble can also be outsourced, like in task 1. In real-world
\textbf{Can the preamble also be excluded? If no, why? If yes, when can \LaTeX{} projects we often make use of numerous packages that need to be
outsourcing the preamble be useful?} \\ configured by additional commands within the preamble. Therefore, it is
The preamble can also be outsourced, like in task 1. In real-world \LaTeX{} advisable to outsource the preamble. On top of that, this is useful
projects we often make use of numerous packages that need to be configured because the file with the most-commonly used packages can be moved from
by additional commands within the preamble. Therefore, it is advisable to one project to another without needing to rewrite the preamble every time.
outsource the preamble. On top of that, this is useful because the file
with the most-commonly used packages can be moved from one project to \item
another without needing to rewrite the preamble every time. \textbf{Add the command \code{latex}{\textbackslash
\item includeonly\{section2\}} to the preamble. Compile the document again, and
\textbf{Add the command \code{latex}{\textbackslash check what has changed. What does the command do and how can it be helpful
includeonly\{section2\}} to the in a larger project? }
preamble. Compile the document again, and check what has changed. What does
the command do and how can it be helpful in a larger project? } \\
The command \code{latex}{\textbackslash includeonly\{section2\}} does The command \code{latex}{\textbackslash includeonly\{section2\}} does
exactly what exactly what the name already says. During compilation, only the
the name already says. During compilation, only the \code{latex}{\textbackslash include} statements that contain file names
\code{latex}{\textbackslash include} that appear in \code{latex}{\textbackslash includeonly\{file1,file2, …\}}
statements that contain file names that appear in are included.
\code{latex}{\textbackslash includeonly\{file1,file2, …\}} are included.
This can be useful for larger projects, when the compile time becomes This can be useful for larger projects, when the compile time becomes
longer since by using the \code{latex}{\textbackslash includeonly} only the longer since by using the \code{latex}{\textbackslash includeonly} only the
files files can be included which we are currently working in. Before the final
can be included which we are currently working in. Before the final
compilation we can delete the \code{latex}{\textbackslash includeonly} compilation we can delete the \code{latex}{\textbackslash includeonly}
command and command and end up with our complete \acro{PDF}.
end up with our complete \acro{PDF}.
\end{enumerate} \end{enumerate}