# How can I keep an environment all on one page? [duplicate]

In other words, how can I forbid pagination between \myenv and \endmyenv? I thought at first to make the whole thing a box; if I'm not mistaken---this would prevent TeX from breaking it up---but I don't know how to do that in an environment...environment.
• wrap it in a minipage, e.g \newenvironment{myenvironmnet}{\begin{minipage}{<width>}}{\endminipage} – cmhughes Jun 29 '13 at 23:02