LaTeX Basics

8. Document Structure

Chapters, sections, and table of contents.

5 min read Share

Large documents need hierarchy. LaTeX provides deep nesting levels.

Level 1: The Hierarchy

  • \part (Books only)
  • \chapter (Books/Reports only)
  • \section
  • \subsection
  • \subsubsection
  • \paragraph

Level 2: Table of Contents

Generating a Table of Contents is trivial. LaTeX collects all your numbered sections automatically.

LaTeX
\tableofcontents
\listoffigures
\listoftables
\newpage

Level 3: Cross-Referencing

Never type "See page 5". Use labels.

LaTeX
\section{Introduction} \label{sec:intro}

As mentioned in Section \ref{sec:intro} on page \pageref{sec:intro}...