0

How to prevent pagebreaks between section/subsection titles and the multicolumn content of the document when using the paracol environment like this...

\renewcommand{\deutschertitel}{Dezimalsystem}
\renewcommand{\englischertitel}{Decimal System}

\subsection[\englischertitel]{}

\begin{paracol}{2}[]

\subsection*{\englischertitel}

\switchcolumn

\subsection*{\deutschertitel}

\switchcolumn*

The decimal system uses...

\switchcolumn

Das Dezimalsystem verwendet...

\end{paracol}

Here is one example that shows a page break where it should not happen:

An example that shows a page break where it should not happen

Another example that shows a page break where it should not happen:

Another example that shows a page break where it should not happen

Update (2019-01-23):

Added a better source code example and some screenshots that show the issue.

  • 1
    Please add an MWE to the question. – javadr Dec 11 '18 at 10:44
  • 2
    It's preferable to put the "Solution" into the answer box, so that it can be upvoted appropriately. – Teepeemm Jan 23 at 21:42
0

The solution that worked for me very well is using \Needspace which is described here very well. A \Needspace{1.9cm} before every \section command and a \Needspace{2.2cm} before every \subsection command fixed the issue for me without the need of inserting any \pagebreaks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.