ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: Setting up a project
Date: Sun, 23 Dec 2007 13:39:49 +0100	[thread overview]
Message-ID: <20071223133949.b124758d.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <7871fcf50712221630i13774270l420ac0c8f1316f3b@mail.gmail.com>

On Sat, 22 Dec 2007 19:30:13 -0500
"Joel C. Salomon" <joelcsalomon@gmail.com> wrote:

> On Dec 21, 2007 4:08 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> 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	other threads:[~2007-12-23 12:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 23:04 Joel C. Salomon
2007-12-21  8:19 ` Hans Hagen
2007-12-21 17:08   ` Joel C. Salomon
2007-12-21 17:29     ` Hans Hagen
2007-12-21 17:49       ` Joel C. Salomon
2007-12-21 18:05         ` Wolfgang Schuster
2007-12-21 18:15         ` Joel C. Salomon
2007-12-21 19:01           ` Wolfgang Schuster
2007-12-21 20:09             ` Joel C. Salomon
2007-12-21 21:08               ` Wolfgang Schuster
2007-12-23  0:30                 ` Joel C. Salomon
2007-12-23 12:39                   ` Wolfgang Schuster [this message]
2007-12-21  8:55 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2002-09-11 10:07 Piotr Kopszak
2002-09-11 17:53 ` Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071223133949.b124758d.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).