On Sat, 22 Dec 2007 19:30:13 -0500
"Joel C. Salomon" <[EMAIL PROTECTED]> wrote:

> On Dec 21, 2007 4:08 PM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
> > >       textwidth=288pt, textheight=432pt,
> >
> > replace these two lines with
> >
> > width=288pt and height=432pt
> >
> > don't use textwidth and textheight in \setuplayout.
> 
> Actually, "width=288pt, textheight=432pt," gives me exactly the result
> I wanted.  I'd just like to be able to set the distance between the
> top of the paper and the top of the text area directly, as in
>       header=12pt, headerdistance=12pt, something=72pt
> rather than what I'm currently using:
>       header=12pt, headerdistance=12pt, topspace=48pt, % 48 = 72 - (12+12)
> Is this possible, and what is the something's name?
> 
> > leftmargindistance is only the distance between the textarea and the
> > left box for the left margin, the layout concept could be a little bit
> > confusing.
> 
> Ya think maybe? ;)
> 
> Thanks for the help,
> --Joel

\setuplayout
  [marking=on,
   location=middle,
   width=288pt,
   height=432pt,
   header=12pt,
   headerdistance=12pt,
   topspace=\dimexpr72pt-\headerheight-\headerdistance\relax,
   footer=\headerheight,
   footerdistance=\headerdistance,
   %bottomspace=144pt, % calculated by ConTeXt
   leftmargindistance=12pt,
   leftmargin=24pt,
   backspace=48pt,
   rightmargindistance=\leftmargindistance,
   rightmargin=\leftmarginwidth]

You should also avoid to use set the headerdistance, the textheight and
the bottomdistances at the same time, try to set only two dimension and
let TeX calculate the third dimension itself.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to