[Tex/LaTex] How to make \section start automatically in new page, except first in a chapter

conditionalspage-breakingsectioning

I am working in report class. I would like to redefine \section so that it starts on a new page, except for the first section in every chapter.

It seems I should just put code from this answer Start new page with each section together with some conditional like \if not firstsection then... but I do not know how to do that properly.

Any help is very appreciated.

Best Answer

Here's one possible solution using the etoolbox package and a conditional :

\documentclass{report}
\usepackage{etoolbox}

\pretocmd{\section}{%
  \ifnum\value{section}=0 \else\clearpage\fi
}{}{}

\begin{document}

\chapter{First Chapter}
\section{Section One One}
\section{Section One Two}
\section{Section One Three}

\end{document}