Merge branch '2021-translate-script' of git.stuve-bamberg.de:latex/latex-skript into 2021-translate-script
This commit is contained in:
commit
ff281eea38
@ -126,7 +126,6 @@
|
||||
|
||||
\lstset{language=[LaTeX]TeX,
|
||||
basicstyle=\footnotesize,
|
||||
% breakatwhitespace=false,
|
||||
breaklines=true,
|
||||
keywordstyle=\color{ForestGreen}\bfseries,
|
||||
emph={%
|
||||
@ -146,7 +145,7 @@
|
||||
{ä}{{\"a}}1
|
||||
{ö}{{\"o}}1
|
||||
{é}{{\'e}}1
|
||||
{…}{{\textellipsis}}1
|
||||
{…}{\textellipsis}1
|
||||
}
|
||||
\lstinputlisting{#2}%
|
||||
%
|
||||
@ -163,7 +162,7 @@
|
||||
{ä}{{\"a}}1
|
||||
{ö}{{\"o}}1
|
||||
{é}{{\'e}}1
|
||||
{…}{{\textellipsis}}1
|
||||
{…}{\textellipsis}1
|
||||
}
|
||||
\lstinputlisting{#2}
|
||||
|
||||
|
||||
@ -1,21 +1,6 @@
|
||||
\section{First section}
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
@ -1,51 +1,46 @@
|
||||
\begin{enumerate}
|
||||
\item
|
||||
\textbf{Put the sections of the file into separate files, named
|
||||
\file{section1.tex}, \file{section2.tex}, and
|
||||
\file{section3.tex}.
|
||||
Include them using the \code{latex}{\textbackslash include} command.}
|
||||
\begin{figure}[H]
|
||||
\inputminted[linenos=true]{latex}{exercises/project-structure/main-with-preamble.done.tex}
|
||||
\caption{\mintinline{latex}{main.tex}}
|
||||
\end{figure}
|
||||
\begin{figure}[H]
|
||||
\inputminted[linenos=true,breaklines=true]{latex}{exercises/project-structure/section1.done.tex}
|
||||
\caption{\mintinline{latex}{section1.tex} (analogous for the other
|
||||
sections)}
|
||||
\end{figure}
|
||||
\item \textbf{Which command becomes superfluous when you use
|
||||
\code{latex}{\textbackslash include}?} \\
|
||||
\code{latex}{\textbackslash include} makes every included file appear on a
|
||||
new
|
||||
page. Hence the command \code{latex}{\textbackslash newpage} becomes
|
||||
superfluous.
|
||||
\item
|
||||
\textbf{Can the preamble also be excluded? If no, why? If yes, when 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 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 one project to
|
||||
another without needing to rewrite the preamble every time.
|
||||
\item
|
||||
\textbf{Add the command \code{latex}{\textbackslash
|
||||
includeonly\{section2\}} to the
|
||||
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? } \\
|
||||
\item First one
|
||||
\begin{figure}[H]
|
||||
\codeblock{latex}{exercises/project-structure/main-with-preamble.done.tex}
|
||||
\caption{\file{main.tex}}
|
||||
\end{figure}
|
||||
\item Second one
|
||||
\begin{figure}[H]
|
||||
\codeblock{latex}{exercises/project-structure/section1.done.tex}
|
||||
\caption{\file{section1.tex} (analogous for the other
|
||||
sections)}
|
||||
\end{figure}
|
||||
\item \textbf{Which command becomes superfluous when you use
|
||||
\code{latex}{\textbackslash include}?} \\
|
||||
\code{latex}{\textbackslash include} makes every included file appear on a
|
||||
new page. Hence the command \code{latex}{\textbackslash newpage} becomes
|
||||
superfluous.
|
||||
|
||||
\item \textbf{Can the preamble also be excluded? If no, why? If yes, when
|
||||
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
|
||||
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
|
||||
one project to another without needing to rewrite the preamble every time.
|
||||
|
||||
\item
|
||||
\textbf{Add the command \code{latex}{\textbackslash
|
||||
includeonly\{section2\}} to the 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
|
||||
exactly what
|
||||
the name already says. During compilation, only the
|
||||
\code{latex}{\textbackslash include}
|
||||
statements that contain file names that appear in
|
||||
\code{latex}{\textbackslash includeonly\{file1,file2, …\}} are included.
|
||||
exactly what the name already says. During compilation, only the
|
||||
\code{latex}{\textbackslash include} statements that contain file names
|
||||
that appear in \code{latex}{\textbackslash includeonly\{file1,file2, …\}}
|
||||
are included.
|
||||
|
||||
This can be useful for larger projects, when the compile time becomes
|
||||
longer since by using the \code{latex}{\textbackslash includeonly} only the
|
||||
files
|
||||
can be included which we are currently working in. Before the final
|
||||
files can be included which we are currently working in. Before the final
|
||||
compilation we can delete the \code{latex}{\textbackslash includeonly}
|
||||
command and
|
||||
end up with our complete \acro{PDF}.
|
||||
|
||||
command and end up with our complete \acro{PDF}.
|
||||
\end{enumerate}
|
||||
Loading…
x
Reference in New Issue
Block a user