9 Table of Contents
To add a table of contents, that summarizes all the sections and subsections of your document in an orderly manner, along with corresponding page numbers, simply use the \tableofcontents markup tag. The table of contents will appear in the place you decide to put the tag, regardless if it’s the beginning, middle or end of your document.
\begin{document}
\tableofcontents
\newpage
\section{Introduction}
Today we'll learn a bit about sections in LaTeX.
\subsection{Smaller section}
Dividing your LaTeX document into sections is very easy and intuitive. It helps you structure your document.
\subsubsection{An even smaller section}
Content of the subsubsection.
\newpage