LaTeX Sections
LaTeX documents are divided into a hierarchy of sections. The LaTeX ecosystem builds around these for tables of contents, etc.
Section Hierarchy
- Parts
- Chapters
- Sections
- Sub-sections
- Sub-sub-sections
- Paragraphs
- Sub-paragraphs
Sections are the most commonly used form. Parts and chapters themselves are only available in report and book documents.
Usage
\documentclass{book} % ... \begin{document} \maketitle \tableofcontents \part{First Part of this document} \chapter{First} \section{Introduction} This is section 1.0 \subsection{Sample subsection} This is section 1.1 \subsubsection{Sample subsubsection} This is section 1.2 % ...
Unnumbered Sections
To suppress the enumeration on sections, include an asterisk (i.e. \section*{Introduction}). This section title will also be suppressed from the table of contents. To suppress enumeration but not inclusion in the table of contents, try:
\addcontentsline{toc}{section}{Introduction}
Table Of Contents
The table of contents is generated with \tableofcontents, as seen above.