Can anyone help me? I need to be able to
\clearpage
if say the current position is 0.9\textheight
to stop content being split across pages. I've attached a minimal working example minimal.tex to illustrate the problem ... when it is rendered in MiKTex the record header (\basicRecordHeader) is split over page 1 and 2. I need to be able to insert a \clearpage
or \newpage
so the second record moves to the beginning of the second page. I've tried using \widowpenalty=10000
and \clubpenalty=10000
but this doesn't work.What I really need to be able to do is programmatically 'test' and see if the current position is say
0.95\textheight
(or whatever the position is relative to the \textheight
) and add a \clearpage
Any help would be really appreciated.