2025-05-08 23:24:48 +02:00

28 lines
1.8 KiB
TeX

\section{Structure your document and text}
\begin{enumerate}
\item In the directory \file{exercises/basic-document-structure}, you can find a file named \file{document-structure.tex}. Wrap the text of the file in a \code{latex}{document} environment and add the following preamble.
\codeblock{latex}{./exercises/basic-document-structure/preamble.code.tex}
\item In TeXstudio, right click on the file and select \enquote{Set as explicit root document.} Next, compile the file.
\item Congratulations! You have created and compiled your first \LaTeX{}
document. Maybe you have noticed that paragraphs within the text were
created by using \code{latex}{\textbackslash\textbackslash}. Replace the
two backslashes by real paragraphs.
\item It is time to structure your first document. Use the \LaTeX{}
commands \code{latex}{\textbackslash section},
\code{latex}{\textbackslash subsection}, etc. to structure the text.
Also, include a table of contents for your document.
\end{enumerate}
\subsection*{Extra tasks: Make it fit your needs}
\begin{itemize}
\item Add a \textbf{title} to the document.
\item Make today's date appear in a \textbf{language of your choice}.
\item \textbf{Hide} one section title in the table of contents.
\item Add a \textbf{short title} to a different section title.
\item Split the text in \textbf{two columns} (keyword: \texttt{twocolumn}).
\item Add a \textbf{header} with the title on the right and a \textbf{footer} with the page number on the left.
\item Try out what changes when you change the \textbf{document class}.
\item Research the possibilities of traditional\footnote{\url{https://hartwork.org/beamer-theme-matrix/}} and modern\footnote{\url{https://gitlab.cs.fau.de/i4/tex/i4neo}} \textbf{beamer presentation templates}.
\end{itemize}