I have a twocolumn
document with many sections. I want to allow sections to break across columns of the same page, but not allow sections to break across pages.
The most closely related previously asked question I can find is this. But it won't solve the problem I have.
In the MWE I have a long section that needs to break across a column in order to fit onto a page. The minipage environment doesn't allow this, and starts the long section in a new column but overruns the page. See here for piccy.
I also want to prevent the section title being separated from the section text.
\documentclass[12pt,oneside,twocolumn]{article}
\columnsep=2.5cm
\raggedbottom
\newcommand{\textbox}[1]{
\framebox{\begin{minipage}{\columnwidth}\mbox{}\vspace{#1}\end{minipage}}}
\begin{document}
\section{small-length section}
\textbox{1in}
\section{epic-length section}
\textbox{12in}
\section{mid-length section}
\textbox{3in}
\section{big-length section}
\textbox{6in}
\end{document}