How to Add a Page Break After Every Subsubsection in LaTeX
At a glance
- 1. Load titlesec
Add the titlesec package to your preamble.
- 2. Set the heading format
Use titleformat’s after-code argument to run clearpage after each subsubsection title.
- 3. Check the result
Compile and confirm that the next text starts on a new page.
To make LaTeX start a new page after every \subsubsection heading, use the titlesec package and add \clearpage as the heading’s after-code. This places a page break immediately after the heading—not after the text belonging to that subsubsection.
Minimal working example
\documentclass{article}
\usepackage{titlesec}
\titleformat{\subsubsection}[hang]
{\normalfont\normalsize\bfseries}
{\thesubsubsection}
{1em}
{}
[\clearpage]
\begin{document}
\section{First section}
\subsection{First subsection}
\subsubsection{First heading}
This text starts on the next page.
\subsubsection{Second heading}
This text also starts on the next page.
\end{document}
The last, bracketed argument, [\clearpage], is the titlesec after-code: it runs after the heading has been typeset. The earlier arguments specify the heading’s shape, formatting, number, spacing, and code before the title. The example uses a bold, normal-size, hanging heading style, similar to the standard article class style.
What the page break does
The break happens as soon as LaTeX finishes the heading. As a result, the heading stays on the page where it was typeset, while the text that follows starts on a later page. If no floats are pending, that will be the next page. This may leave a heading stranded without its text. Review the output carefully, especially when a heading appears near the bottom of a page.
\clearpage ends the current page and outputs pending floating figures and tables before continuing with the following text. If you want a page break without forcing pending floats to appear, use \newpage instead:
[\newpage]
Both commands break the page; \clearpage additionally flushes pending floats.
If you want the break after the subsubsection’s text
A heading command marks the start of a subsubsection, not its end. LaTeX has no built-in way to know where that subsubsection’s text finishes. Therefore, placing \clearpage in the heading format cannot put a break after the text while keeping that text together with its heading.
For that layout, insert \clearpage manually at each boundary, after the text and before the next heading:
\subsubsection{First heading}
Text belonging to the first subsubsection.
\clearpage
\subsubsection{Second heading}
Text belonging to the second subsubsection.
This approach also avoids separating a heading from its own text. If you want every subsubsection to start on a fresh page, use a page break before each heading instead; account for the first heading so you do not create an unwanted blank page at the start.
Adapting an existing format
If your document already customizes \subsubsection with titlesec, do not replace that formatting blindly. Keep its existing \titleformat settings and add [\clearpage] as the final optional after-code argument. If the final optional argument is already present, add \clearpage to that code, for example [\someexistingcommand\clearpage].
The same idea applies to numbered and starred subsubsection headings when they use the titlesec format. Check any special heading definitions in your class or other packages, since they may change how sectioning commands are formatted.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.