0

I want to renew the command \section such that it automatically starts a new page as well. This is also my first time using the \renewcommand macro, and I'm not sure if what I'm doing is correct. It tried something like:

\renewcommand{\section{}}{\newpage\section{}}

And I suspect there is something that is supposed to go into the section arguments but I'm not sure. Can someone help me out?

user71207
  • 545
  • 2
    Kindly check out this one: https://tex.stackexchange.com/questions/9497/start-new-page-with-each-section . – MS-SPO Jul 28 '21 at 06:33
  • Your \renewcommand will lead to an endless recursion, you should do something like \let\oldsection\section to save the original section and then \renewcommand{\section}[1]{\clearpage\oldsection{#1}}. See also this question: https://tex.stackexchange.com/q/131015/237192 – Οὖτις Jul 28 '21 at 06:38
  • Thanks, I will look into them – user71207 Jul 28 '21 at 06:42
  • With an uptodate TeX distribution you can use \AddToHook{cmd/section/before}{\clearpage}. – esdd Jul 28 '21 at 15:00

0 Answers0