Compare commits
No commits in common. "9e827a19d65f4f131b48b76fe2963473d8369135" and "ce6d806495ec254ff77a97944549135c8cc3820e" have entirely different histories.
9e827a19d6
...
ce6d806495
@ -1,38 +1,11 @@
|
|||||||
% twocolumn parameter adds second column
|
% \documentclass{article}
|
||||||
\documentclass[twocolumn]{article}
|
% \usepackage[utf8]{inputenc}
|
||||||
\usepackage[utf8]{inputenc}
|
% \usepackage[T1]{fontenc}
|
||||||
\usepackage[T1]{fontenc}
|
% \usepackage[english]{babel}
|
||||||
\usepackage[english,italian]{babel}
|
% \usepackage[hidelinks]{hyperref}
|
||||||
\usepackage[hidelinks]{hyperref}
|
|
||||||
|
|
||||||
% for headers and footers
|
% \begin{document}
|
||||||
\usepackage{fancyhdr}
|
% \tableofcontents
|
||||||
|
|
||||||
% configure title components
|
|
||||||
\title{Recipes}
|
|
||||||
\date{\today}
|
|
||||||
\author{It's you!}
|
|
||||||
|
|
||||||
\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}
|
\section{Beverages}
|
||||||
|
|
||||||
@ -54,16 +27,15 @@ 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.
|
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!
|
Your lemonade is now ready to enjoy!
|
||||||
|
|
||||||
% short title for the table of contents via optional parameter
|
\subsection{Hot Chocolate}
|
||||||
\subsection[Chocoho!]{Hot Chocolate}
|
|
||||||
Coming soon!
|
Coming soon!
|
||||||
|
|
||||||
% asterisk (*) hides the section title in the table of contents
|
\section{Breakfast}
|
||||||
\section*{Breakfast}
|
|
||||||
|
|
||||||
\subsubsection{Buckwheat Overnight Oats}
|
\subsubsection{Buckwheat Overnight Oats}
|
||||||
Coming soon!
|
Coming soon!
|
||||||
|
|
||||||
\end{document}
|
% \end{document}
|
||||||
|
|||||||
@ -11,18 +11,8 @@
|
|||||||
\item It is time to structure your first document. Use the \LaTeX{}
|
\item It is time to structure your first document. Use the \LaTeX{}
|
||||||
commands \code{latex}{\textbackslash section},
|
commands \code{latex}{\textbackslash section},
|
||||||
\code{latex}{\textbackslash subsection}, etc. to structure the text.
|
\code{latex}{\textbackslash subsection}, etc. to structure the text.
|
||||||
Also, include a table of contents for your document.
|
Also,
|
||||||
|
include
|
||||||
|
a table of contents for your document.
|
||||||
|
\item Afterwards, comment out the preamble, the document environment, and the table of contents.
|
||||||
\end{enumerate}
|
\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}
|
|
||||||
@ -22,26 +22,3 @@ Ingredients:
|
|||||||
\item scramble thoroughly
|
\item scramble thoroughly
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\end{itemize}
|
\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}
|
|
||||||
@ -5,11 +5,3 @@ unordered list (\code{latex}{itemize}) with sub-lists \emph{Ingredients}
|
|||||||
and \emph{Instructions}.
|
and \emph{Instructions}.
|
||||||
Within these, there shall be an unordered list of ingredients and an ordered list of
|
Within these, there shall be an unordered list of ingredients and an ordered list of
|
||||||
instructions, respectively.
|
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,9 +5,6 @@
|
|||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[english,ngerman]{babel}
|
\usepackage[english,ngerman]{babel}
|
||||||
|
|
||||||
% Headers and footers
|
|
||||||
\usepackage{fancyhdr}
|
|
||||||
|
|
||||||
% Special characters
|
% Special characters
|
||||||
\usepackage{eurosym, tipa, textcomp, textgreek, upgreek}
|
\usepackage{eurosym, tipa, textcomp, textgreek, upgreek}
|
||||||
|
|
||||||
@ -32,9 +29,6 @@
|
|||||||
% Compact lists
|
% Compact lists
|
||||||
\usepackage{paralist}
|
\usepackage{paralist}
|
||||||
|
|
||||||
% Lists with different bullet points
|
|
||||||
\usepackage{enumitem}
|
|
||||||
|
|
||||||
% Tables
|
% Tables
|
||||||
\usepackage{longtable, array, tabularx, booktabs, colortbl}
|
\usepackage{longtable, array, tabularx, booktabs, colortbl}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user