LaTeX Sections

LaTeX documents are divided into a hierarchy of sections. The LaTeX ecosystem builds around these for tables of contents, etc.


Section Hierarchy

  1. Parts
  2. Chapters
  3. Sections
  4. Sub-sections
  5. Sub-sub-sections
  6. Paragraphs
  7. 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.


CategoryRicottone

LaTeX/Sections (last edited 2022-05-11 17:43:35 by DominicRicottone)