Forum digitalis

1.7 Additional packages

fancyhdr

With fancyhdr, you can define variable headers and footers. All you need is the following template with sample entries, which must be included in the preamble.

\pagestyle{fancy} \fancyhf{} \lhead{School / University} \rhead{Title} \lfoot{Name} \rfoot{Page \thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt}

xcolor

As the name suggests, you need xcolor to change the font colour. The following colours can be used: white black red green blue cyan magenta yellow gray darkgray lightgray brown lime olive orange pink purple teal violet. The following code is required for this.

\textcolor{COLOR}{Text}

enumitem

With enumitem, you can vary and/or format bullet points.

% itemize % Any symbols can be used here. \begin{itemize}[label=!] \item First item \end{itemize} % enumerate % Here, you can start with any number. \begin{enumerate}[start=4] \item Fourth item \end{enumerate} % Here, the numbers can be formatted as desired. \begin{enumerate}[label=\textbf{\arabic*.}] \item Thick item \end{enumerate} % Text can also be placed here. \begin{enumerate}[label=\textbf{Aufgabe \arabic*:}] \item Thick Item \end{enumerate} % Here, the numbers are Roman (small). \begin{enumerate}[label=(\roman*)] \item Roman item \end{enumerate} % Here, the numbers are Roman (capital). \begin{enumerate}[label=\Roman*] \item ROMAN item \end{enumerate}

hyperref

With hyperref, references to other chapters, pages, images, etc. can be created.

\section{Section} \label{sec:section} % important A marked equation: \begin{equation} E = mc^2 \label{eq:demo} % important \end{equation} \section{List with hyperlinks} \begin{enumerate}[label=\arabic*.] \item Link to section \ref{sec:section} \item Link to equation \ref{eq:demo} \item External link: \href{https://google.ch}{Google} \item External link with visible URL: \url{https://www.wikipedia.org} \end{enumerate}

float

With float, you can basically have floating environments placed automatically. This change only affects the first line of the floating environments. Here is an example using figures:

\begin{figure}[H] % The H now ensures the optimal placement of the sliding environment.

titlepage

Using titlepage, you can create custom title pages with images, for example, which is not possible with the normal \maketitle command. Below is a sample title page for an academic paper:

\begin{titlepage} \centering \vspace*{1cm} \includegraphics[width=1\textwidth]{example-image} \vfill {\LARGE \textbf{Title} \\ Subtitle}\\[0.5cm] \vfill \begin{center} {\large \textbf{Author:} John Doe \\ [0.3cm] \textbf{Type of work:} investigation \\ [0.3cm] \textbf{Instutition:} Bündner Kantonsschule Chur, Gymnasium} \end{center} \end{titlepage}