Structuring a Long Document
\section{Introduction}
\subsection{Background}
\subsubsection{Prior Work}
A table of contents
\tableofcontents
Placed right after \begin{document}, this automatically builds a table of contents from every \section/\subsection in the document -- no manual page numbers to keep updated as the document grows.
Why This Matters for Your Exams
This is what makes a long write-up (a project, a thesis chapter) navigable -- structure it in sections from the start rather than retrofitting headings onto one long undivided block at the end.

