Search found 1 match

by songuke
Wed Jul 28, 2010 7:58 am
Forum: General
Topic: Add newpage at end of section automatically
Replies: 5
Views: 7673

Add newpage at end of section automatically

For those who copy and paste, this is the code that works for me (merging from two pieces of code) above:

Code: Select all

\makeatletter
\let\stdsection\section
\renewcommand\section{\ifnum\c@section>0{\clearpage}\else\fi\stdsection}
\makeatother
Thanks.