Document Structure
How to Add Sections and Subsections in LaTeX
Sections create a hierarchical structure in your document and are automatically numbered.
Section Hierarchy
LaTeX provides multiple levels of sections:
\section{First Level}
\subsection{Second Level}
\subsubsection{Third Level}
\paragraph{Fourth Level}
\subparagraph{Fifth Level}For Books/Reports
Book and report classes also have chapters:
\documentclass{book}
\chapter{Introduction}
\section{Background}
\subsection{History}Unnumbered Sections
Use asterisk for sections without numbers:
\section*{Acknowledgements}
\subsection*{Funding}Control Numbering Depth
Limit how deep numbering goes:
\setcounter{secnumdepth}{2} % number sections and subsections only💡 Tips
- •The article class starts with \section, book/report classes start with \chapter
- •Use \paragraph{} for named paragraphs within subsubsections
- •Sections create automatic bookmarks in PDFs
Try This in Bibby AI
Write LaTeX faster with AI auto-complete and instant compilation.
Start Writing Free