[texhax] how to use \pagefillstretch and its relatives

Donald Arseneau asnd at triumf.ca
Wed Apr 20 07:31:30 CEST 2011

Stan <texforeverything at att.net> writes:

> On Sun, 17 Apr 2011 15:49:00 -0500, Donald Arseneau <asnd at triumf.ca> wrote:
> >
> > I thought this might be confusing you!  \pagefillstretch IS INDEED
> > "1" after an occurrence of \vfill, but it is "1pt".  All you need
> > to do is convert the "pt" to the corresponding filllllllevel.
> Excellent!  Thank you.  Is there a nice way to assign that number to a
> control sequence (without the trailing "pt")?

LaTeX has the internal commands \strip at pt and \rem at pt, but you could
also define your own.

\vskip \pagestretch
\vskip \strip at pt\pagefilstretch fil
\vskip \strip at pt\pagefillstretch fill

(except you probably want to be taking the values from skip registers
that hold previously-measured values).

It is too bad there is no \boxfillstretch command to measure the 
total stretch of a box's contents.


Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list