Saturday, January 9, 2010

Starting a new page with every section in LaTeX

A \section in LaTeX doesn't insert a page break and start a new page automatically.

To insert a section in a new page, you would normally do the following:

\newpage
\section{new section}

But there is a better way to do this if you want every \section to start on a new page:

\let\stdsection\section
\renewcommand\section{\newpage\stdsection}

The above redefines the \section command to include the \newpage when using the \section.