I have an environment for which I want a few things to happen:
If I can fit 2+ on the same page, then they both go on that page, with a certain amount of space between them (say one inch).
If two can't fit on the same page, then the second is bumped down onto the next page. And lastly,
If one environment is longer than a single page then it just overflows into the next page.
What I originally had looked like:
\newenvironment{env}{
\begin{minipage}{\textwidth}
}{
\end{minipage}
\vspace{1in}
}
But I ran into problems here with environments that were longer than one page, with the minipage
simply continuing into the bottom margin and off the end of the page, then the next page starting with with the extra \vspace
.
I also had troubles with the minipage
messing up spacing within the environment — specifically space between text and the top of a table — but I imagine that I could solve that later if needed.