Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start each section on a new page in PDF #1214

Open
espwangning opened this issue Aug 7, 2024 · 0 comments
Open

Start each section on a new page in PDF #1214

espwangning opened this issue Aug 7, 2024 · 0 comments
Labels

Comments

@espwangning
Copy link

For LaTeX PDF, how can I add a page break before each \section{} globally?

I have tried \newcommand{\sectionbreak}{\clearpage}, but this does not take effect.

I have also tried

% Add a new page before each section
\let\oldsection\section
\renewcommand{\section}[1]{\clearpage\oldsection{#1}}

but this will automatically adds an empty section at the beginning with the heading "*".

Could you provide some hint how can I set this? Should I set in the preamble, or there is a configuration option for this?

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants