needspace

A page break unless so much room is left.

Loading

\usepackage{needspace}

A module of its own, compiled into mLaTeX: the package's commands are defined over mLaTeX's primitives.

Commands

\baselineskip, \Needspace, \needspace.

Example

A document that uses it, from mLaTeX's own tests, so it compiles as written, and below it what mLaTeX sets from it in your browser:

needspace.tex
\documentclass{article}
\usepackage{needspace}
\begin{document}
Text. \needspace{5\baselineskip} A block kept together.
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX

Limits

Ignored; pages break where room runs out.