Compare commits
4 Commits
ce6d806495
...
9e827a19d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e827a19d6 | ||
|
|
4aa827cd20 | ||
|
|
1a39161dd4 | ||
|
|
d1458eca95 |
@ -1,11 +1,38 @@
|
||||
% \documentclass{article}
|
||||
% \usepackage[utf8]{inputenc}
|
||||
% \usepackage[T1]{fontenc}
|
||||
% \usepackage[english]{babel}
|
||||
% \usepackage[hidelinks]{hyperref}
|
||||
% twocolumn parameter adds second column
|
||||
\documentclass[twocolumn]{article}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[english,italian]{babel}
|
||||
\usepackage[hidelinks]{hyperref}
|
||||
|
||||
% for headers and footers
|
||||
\usepackage{fancyhdr}
|
||||
|
||||
% configure title components
|
||||
\title{Recipes}
|
||||
\date{\today}
|
||||
\author{It's you!}
|
||||
|
||||
% \begin{document}
|
||||
% \tableofcontents
|
||||
\begin{document}
|
||||
|
||||
% set headers and footers
|
||||
\pagestyle{fancy} % activate headers and footers in general
|
||||
\thispagestyle{fancy} % apply to the first page as well
|
||||
|
||||
% clear and configure headers
|
||||
\fancyhead{}
|
||||
\fancyhead[R]{Recipes}
|
||||
|
||||
% clear and configure footers
|
||||
\fancyfoot{}
|
||||
\fancyfoot[R]{\thepage}
|
||||
|
||||
% switch language (needs optional parameter where the babel package is added), display title, then switch back
|
||||
\selectlanguage{italian}
|
||||
\maketitle
|
||||
\selectlanguage{english}
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\section{Beverages}
|
||||
|
||||
@ -27,15 +54,16 @@ Place a sieve over the container that you want to store the lemonade in. Put the
|
||||
|
||||
When the liquid is cold, add the lemon juice, the cold water, and the ice cubes and stir everything.
|
||||
|
||||
|
||||
Your lemonade is now ready to enjoy!
|
||||
|
||||
\subsection{Hot Chocolate}
|
||||
% short title for the table of contents via optional parameter
|
||||
\subsection[Chocoho!]{Hot Chocolate}
|
||||
Coming soon!
|
||||
|
||||
\section{Breakfast}
|
||||
|
||||
% asterisk (*) hides the section title in the table of contents
|
||||
\section*{Breakfast}
|
||||
|
||||
\subsubsection{Buckwheat Overnight Oats}
|
||||
Coming soon!
|
||||
|
||||
% \end{document}
|
||||
\end{document}
|
||||
|
||||
@ -11,8 +11,18 @@
|
||||
\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.
|
||||
\item Afterwards, comment out the preamble, the document environment, and the table of contents.
|
||||
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}
|
||||
@ -21,4 +21,27 @@ Ingredients:
|
||||
\item add the remaining ingredients
|
||||
\item scramble thoroughly
|
||||
\end{enumerate}
|
||||
\end{itemize}
|
||||
|
||||
% With all extra tasks:
|
||||
|
||||
\begin{itemize}
|
||||
\item Ingredients:
|
||||
\begin{compactitem}
|
||||
\item 400 g berries
|
||||
\item 50 ml maple syrup
|
||||
\item 4 lemons
|
||||
\item 1 l cold water
|
||||
\item 400 g ice cubes
|
||||
\end{compactitem}
|
||||
|
||||
\item Instructions:
|
||||
\begin{enumerate}[label=\roman*]
|
||||
\setcounter{enumi}{6}
|
||||
\item boil and shred the berries
|
||||
\item add maple syrup
|
||||
\item squeeze the lemons and add their juice
|
||||
\item add the remaining ingredients
|
||||
\item scramble thoroughly
|
||||
\end{enumerate}
|
||||
\end{itemize}
|
||||
@ -3,4 +3,4 @@
|
||||
Ingredients:
|
||||
400~g berries, 50~ml maple syrup, 4~lemons, 1~l cold water, 400~g ice cubes
|
||||
|
||||
\noindent Instructions: Boil and shred the berries, add maple syrup, squeeze the lemons and add their juice, add the remaining ingredients, scramble thoroughly
|
||||
\noindent Instructions: Boil and shred the berries, add maple syrup, squeeze the lemons and add their juice, add the remaining ingredients, scramble thoroughly
|
||||
|
||||
@ -5,3 +5,11 @@ unordered list (\code{latex}{itemize}) with sub-lists \emph{Ingredients}
|
||||
and \emph{Instructions}.
|
||||
Within these, there shall be an unordered list of ingredients and an ordered list of
|
||||
instructions, respectively.
|
||||
|
||||
\subsection*{Extra tasks: Special enumerations}
|
||||
|
||||
\begin{itemize}
|
||||
\item Try using \textbf{Roman numerals} in the ordered list.
|
||||
\item Make the ordered list \textbf{start at 7} (keyword: \texttt{\textbackslash setcounter}).
|
||||
\item Reduce the \textbf{white space} between the items in the unordered list.
|
||||
\end{itemize}
|
||||
@ -5,6 +5,9 @@
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[english,ngerman]{babel}
|
||||
|
||||
% Headers and footers
|
||||
\usepackage{fancyhdr}
|
||||
|
||||
% Special characters
|
||||
\usepackage{eurosym, tipa, textcomp, textgreek, upgreek}
|
||||
|
||||
@ -29,6 +32,9 @@
|
||||
% Compact lists
|
||||
\usepackage{paralist}
|
||||
|
||||
% Lists with different bullet points
|
||||
\usepackage{enumitem}
|
||||
|
||||
% Tables
|
||||
\usepackage{longtable, array, tabularx, booktabs, colortbl}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user