Philip Stubbs wrote:
> I have an element that I don't want to appear at the bottom of a page.
> Therefore, I need to test to find out how far down the page I am, and
> if more than 75% of the page is used, insert a \newpage.
One possibility:
--------------------------------------------------------
% Conditional pagebreak
\def\condbreak#1{%
\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}
\newcommand*\condbr[1]{\condbreak{#1\baselineskip}}
---------------------------------------------------------
Then you can use either
\condbr{3}
which will insert a page break if less then 3 lines of text follow
or
\condbreak{<any value>}
e.g.
\condbreak{.25\textheight}
HTH,
Jürgen