I want to prevent a page break between a paragraph and a multicol
environment that comes right after.
I do not mind a page break inside the paragraph or inside the multicol
.
I also don't mind if the text doesn't fill the page completely, so I use \raggedbottom
My MWE:
\documentclass{article}
\usepackage{geometry}
\geometry{showframe}
\usepackage{multicol}
\usepackage{enumitem}
\usepackage{lipsum}
\raggedbottom
\begin{document}
\lipsum[1-6]
Some text. Some text. Some text. Some text.
Some text. Some text. Some text. Some text.
\begin{multicols}{2}
\begin{enumerate}
\item Some dummy text
\item Some dummy text
\item Some dummy text
\item Some dummy text
\item Some dummy text
\item Some dummy text
\item Some dummy text
\item Some dummy text
\end{enumerate}
\end{multicols}
\end{document}
The result:
\enlargethispage
or theneedspace
package?multicol
then you need space for 4 (maybe 5) lines. It is up to you how you want things to look.\premulticols=0pt
.