ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: inmargin in doublesided documents
Date: Mon, 19 Jul 1999 12:45:55 +0200	[thread overview]
Message-ID: <379301E3.B8E480A2@wxs.nl> (raw)
In-Reply-To: <Pine.SGI.3.95.990719115627.4061B-100000@paju.oulu.fi>

Janne Riihijarvi wrote:

> I'm trying to create a doublesided document format that has wide outer
> margins for margin notes. The following simple approach seems to fail, but
> I would like to understand why.
> 
> \setuplayout[rightmargin=4cm,leftmargin=1cm,width=fit]
> \setuppagenumbering[alternative=doublesided]
> 
> \starttext
> \showframe
> 
> \inmargin{This is an example sentence}
> \page[yes]
> \inmargin{This is an example sentence}
> 
> \stoptext
> 
> At least on my system the first margin note comes out allright, but the
> second one (on the following page) seems to be still using the narrower
> margin width in linebreaking and positioning. Is there some other
> configuration option that needs to be set for doublesided typesetting?

Your problem is an add up. 

(1) \inmargin is anchored to some text, so to really test it you must
say something 

\inmargin {marginal text} some text 

(2) The margin dimensions only play a role in wrapping. When typesetting
doublesided, you can stick to setting margin=4cm (because margins are
mirrored anyway). The binding edge is set by backspace, so you get: 

\setuplayout[backspace=4cm,margin=3cm,width=middle]

(3) Marginal text placement is optimized in a second pass, so make sure
texutil is run (happens automatically when texexec is used). This is
even more important when aligment also depends on the left/right handed
page. Normally the default settings are used. 

(4) When using marginal texts as titles, use \margintext instead of
\inmargin, because it makes sure multi line texts is move to the next
page. That command also is able to handle stacked marginal notes. (One
can anchor marginal notes in several ways and access/position them by
tag). 

> By the way, is there a ConTeXt FAQ available?

No(t yet). 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


      reply	other threads:[~1999-07-19 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-19  9:32 Janne Riihijarvi
1999-07-19 10:45 ` Hans Hagen [this message]

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=379301E3.B8E480A2@wxs.nl \
    --to=pragma@wxs.nl \
    --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).