% !TEX root = ../manual.tex
% !TEX program = xelatexmk
% !TEX spellcheck = en_GB

\section{The Preamble}
A \LaTeX\ document is usually structured as follows:

\begin{lstlisting}
\documentclass{...}
% This is the preamble
\begin{document}
% This is your content
\end{document}
\end{lstlisting}

Everything before |\begin{document}| is called the \emph{preamble}. In the preamble you usually set up your packages and document settings. More generally: in your preamble you determine the look and feel of your document.

The first line, |\documentclass{...}|, determines your \emph{document class}, where |...| is replaced by the name of your document class. The most popular document classes are:

\begin{itemize}
	\item \textbf{article}: for writing simple articles, without chapters.
	\item \textbf{report}: for writing reports, divided in chapters.
	\item \textbf{letter}: specifically for writings letters.
	\item \textbf{book}: for properly writing books.
\end{itemize}

You can load the document class with options. This document has the following:
\begin{lstlisting}
\documentclass[a4paper,12pt,english,titlepage]{report}
\end{lstlisting}

Some common options are:

\begin{tabular}{l p{10cm}}
	|a4paper|, |letterpaper| & Paper size \\
	|11pt|, |12pt|, |13pt| & Default font size \\
	|oneside|, |twoside| & One or two sided paper. This makes the outer and inner margins flip every page.\\
	|onecolumn|, |twocolumn| & Change the default number of columns on every page. \\
	|landscape| & Paper orientation \\
	|titlepage| & Let the title take up an entire page \\
	|english|, |dutch| & Pick the main language.
\end{tabular}
