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

\section{Document structure and sections}

A document is (depending on the class) divided in \emph{parts}, \emph{chapters}, \emph{sections}, \emph{subsections}, etc. These number automatically (left column). You can also add a heading without a number or it adding to the count for that heading type (right column).

%\clearpage
\begin{multicols}{2}
\begin{lstlisting}
% With numbers
\part{Part Name}
\chapter{Chapter Name} % Only book/report classes
\section{Section}
\subsection{Subsection}
\subsubsection{Subsubsection}
\paragraph{Paragraph}
\subparagraph{Subparagraph} % Doesn't appear in some classes
\end{lstlisting}
\columnbreak
\begin{lstlisting}
% Without numbers
\part*{Part Name}
\chapter*{Chapter Name} % Only book/report classes
\section*{Section}
\subsection*{Subsection}
\subsubsection*{Subsubsection}
\paragraph*{Paragraph}
\subparagraph*{Subparagraph} % Doesn't appear in some classes
\end{lstlisting}
\end{multicols}

This structure is apparent when you print the table of contents:
\begin{lstlisting}
\tableofcontents
\end{lstlisting}
(The result is visible on page~\pageref{toc})
