quantixed / manuscript-templates

LaTeX templates for manuscripts. bioRxiv preprint and journal submission templates. For use on Overleaf.
GNU General Public License v3.0
61 stars 39 forks source link

How to prevent page break after every section? #2

Closed jmichaelegana closed 1 year ago

jmichaelegana commented 1 year ago

If a section is created, it forces a new page to be created. I have tried methods suggested in this thread: https://groups.google.com/g/comp.text.tex/c/ciatXgOObpM e.g. unbreakable and \filbreak but to no avail.

Thanks in advance!

quantixed commented 1 year ago

Hi @jmichaelegana, In bioRxiv mode (twocolumn), a new section doesn't force a new page to be created. In submit mode, section*{} does indeed force a new page.

If you comment lines 277-280 in bioRxiv.cls:

% \if@submit
%   \let\oldsection\section
%   \renewcommand\section{\clearpage\oldsection}
% \fi

It should give you the behaviour you want. Let me know if that fixes your problem.

jmichaelegana commented 1 year ago

This works. Thank you very much.