At 12:49 PM 2/6/2003 +0100, you wrote:
Guy Worthington
writes: Hello again,
If you look at the output, you'll see, at the bottom of the main text area, whitespace. The whitespace exists because there isn't enough room to fit another line in the text area. My question is, can I specify an integer number of lines in the text area, and have the excess whitespace distributed evenly in my \headerdistance and \footerdistance.
%output=pdf
\setuppapersize[A4][A4] \setupencoding[default=texnansi] \setupbodyfont[cmr,14.4pt]
\def\GoldenRatio{1.61803} \setbox0\hbox{\dorecurse{26}{\character\recurselevel}}
\setuplayout[width=2.5\wd0, header=\lineheight, footer=\lineheight, height=\GoldenRatio\makeupwidth, footerdistance=\dimexpr( (\makeupheight-37\lineheight-\headerheight-\footerheight) /2), % does not work, why?
there is some order in calculations; the header is calculated before the footer -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------