> ## Documentation Index
> Fetch the complete documentation index at: https://resources.latex-cloud-studio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sections and Chapters in LaTeX

> Structure LaTeX documents with parts, chapters, sections, and subsections using consistent numbering and hierarchy.

Use heading levels to build a clear document hierarchy.## Basic Hierarchy```latex hierarchy.tex theme={null}
\part{Part I}
\chapter{Introduction}
\section{Background}
\subsection{Motivation}
\subsubsection{Scope}
\paragraph{Note}
```<details><summary>Expected effect</summary>
      \> \\[!NOTE]
\>
\> This code is a contextual or intentionally partial LaTeX excerpt, not a self-contained compilable document. Its visible result depends on the surrounding document, so the documentation shows the expected role without inventing a standalone preview.</details>## Numbered vs Unnumbered Headings```latex numbered-unnumbered.tex theme={null}
\section{Numbered Section}
\section*{Unnumbered Section}
\addcontentsline{toc}{section}{Unnumbered Section}
```<details>
  <summary>Rendered output</summary>
  Open zoomable preview: Compiled PDF page 1 from numbered-unnumbered.tex

  Generated from the shown source with pdfLaTeX in the pinned LaTeXCloud TeX Live 2026 environment. The visible fragment is compiled inside the documented minimal article wrapper.

  [Open SVG](https://resources.latex-cloud-studio.com/images/rendered/learn-latex-document-structure-sections-and-chapters-02/page-1.svg)
</details>**Ready to use this syntax?** Continue in the browser editor when you want to adapt the example in a real project.[Open LaTeX Cloud Studio](https://app.latex-cloud-studio.com/start?utm_source=resources\&utm_medium=rendered_output\&utm_campaign=docs_open_app\&utm_content=learn_latex_document_structure_sections_and_chapters)## Is There a `\subsubsubsection`?No. The standard classes stop at `\subsubsection`, and the next level down is
`\paragraph`, followed by `\subparagraph`.`\paragraph{Title}` is a genuine sectioning command, not a paragraph break. By
default it is a run-in heading — the text starts on the same line — which surprises
people expecting another numbered level.By default `\paragraph` is also unnumbered and absent from the table of contents,
because `secnumdepth` and `tocdepth` stop above it. To number it and list it, raise
both counters in the preamble:`\setcounter{secnumdepth}{4}` and `\setcounter{tocdepth}{4}`If you genuinely need five levels of nesting, that is usually a sign the document
wants restructuring rather than another heading level. The `titlesec` package can
define deeper levels if you truly need them.## Best Practices- Keep heading depth consistent across chapters.
- Avoid skipping levels (for example chapter directly to subsubsection).
- Use unnumbered headings only for front/back matter sections.## Related Pages- [Table of contents](https://resources.latex-cloud-studio.com/learn/latex/document-structure/table-of-contents.md)
- [Multi-file projects](https://resources.latex-cloud-studio.com/learn/latex/document-structure/multi-file-projects.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.