# How to make \section start automatically in new page, except first in a chapter

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.

-

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}

-
might you want \clearpage instead? –  cmhughes Mar 6 '12 at 22:16
@cmhughes: yes, if floats are involved, it could be safer; thanks. –  Gonzalo Medina Mar 6 '12 at 22:20
\preto is simpler –  egreg Mar 6 '12 at 22:27
That works very well for me. Thank you! –  rafaelm Mar 6 '12 at 23:32
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9252057075500488, "perplexity": 3065.835309061677}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-27/segments/1435375097546.28/warc/CC-MAIN-20150627031817-00192-ip-10-179-60-89.ec2.internal.warc.gz"}