[texhax] need certain amount of room on page

Oleg Katsitadze olegkat at gmail.com
Fri Jan 30 15:56:03 CET 2009


On Thu, Jan 29, 2009 at 05:18:54PM -0700, D. R. Evans wrote:
> In plain TeX I want to do the following:
>   if there is X amount of remaining space on the current page:
>     do A
>   else
>     do B

If B = "start new page and A", then you can do something like plain
TeX's \beginsection:

\outer\def\beginsection#1\par{\vskip\z@ plus.3\vsize\penalty-250
  \vskip\z@ plus-.3\vsize\bigskip\vskip\parskip
  ...
}

Oleg


More information about the texhax mailing list