![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
Taco Hoekwater wrote:
Mojca Miklavec wrote:
It doesn't need to automatically determine the subsection boundaries automatically (although this would be great), so I can write something like this:
\startmaterialforonepage \subsection{split only if too long for one page} \dorecurse{10}{whatever comes here \dots } \stopmaterialforonepage
Do you want something like this?
\long\def\startmaterialforonepage#1\stopmaterialforonepage% {\setbox0\vbox{#1}\ifdim\ht0<\textheight \page\fi #1}
Thak you, Taco. Yes, this is almost exactly what I wanted to do, except that I would substitute \ifdim\ht0<\textheight with \ifdim\ht0<\theremainingpageheight How/where can I get \theremainingpageheight? I saw some strange "keywords" like \pagegoal, \pagetotal spread through the source, ... but I have no clue what they are for and if they have anyting to do with what I'm looking for. Thans a lot, Mojca