multicols
environment of multicol package
produces page break in starred version. How can we prevent this page break?
\documentclass{book}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{multicol}
\begin{document}
\begin{proof}
\begin{enumerate}
\begin{multicols*}{4}
\item First
\columnbreak
\item Second
\columnbreak
\item Third
\columnbreak
\item Fourth
\end{multicols*}
\end{enumerate}
\end{proof}
Can you help me to stay in the same page?
\end{document}
multicols*
environment inside a nested list environment. Moving it out helps a bit, but not much. Really, I don't think you should be trying to use multiple columns here. It really doesn't make any sense. What are you actually trying to do?\begin{multicols}{4} \begin{proof} \begin{enumerate} \item First \item Second \item Third \item Fourth \end{enumerate} \end{proof} \end{multicols} Can you help me to stay in the same page?
?multicols
.\columnbreak
, why do you need the*
? Anyway, I really wouldn't use multiple columns here.enumerate
andproof
are list environments which allow a page break after the environment somulticols
(which was never designed to be nested in such a place anyway) really has very little control over the page breaking after\end{proof}
You could always put all the text that needs to stay together in aminipage