1

I have a basic article class document with headings to four numbered levels.

I wish to force a new page for every 1.X level heading.

I have tried the following at the end of each and every 1.X section

\clearpage

This works, but is there a way to automate this?

1
  • The assumption is that 1.X represents a \subsection within the article class, so it should be sufficient to add \let\oldsubsection\subsection \renewcommand{\subsection}{\clearpage\oldsubsection} to your preamble.
    – Werner
    Mar 8, 2021 at 23:12

1 Answer 1

1

This should work:

\usepackage{etoolbox}
\pretocmd{\subsection}{\clearpage}{}{}
1
  • it is such a sweet feeling when concise code works perfectly! I can imagine trying to do that in MS Word, think of the time that would have been lost!
    – Prolle
    Mar 9, 2021 at 10:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .