Guy Worthington
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? % headerdistance=\footerdistance, headerdistance=\dimexpr( (\makeupheight-37\lineheight-\headerheight-\footerheight) /2), backspace=\dimexpr(\makeupwidth/7), topspace=\dimexpr(\makeupwidth/7)] \showlayout \showframe \starttext \startlinenumbering \dorecurse{5}{\input knuth} \stoplinenumbering \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: t %%% End: But: I have two questions: why does \headerdistance=\footerdistance not work the way I'd expect (making 'em equal)? Why is there a difference between knuth.tex and tufte.tex in the example (try \input tufte instead of \input knuth). Patrick