From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/664 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: inmargin in doublesided documents Date: Mon, 19 Jul 1999 12:45:55 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <379301E3.B8E480A2@wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391513 25990 80.91.224.250 (23 Oct 2002 16:45:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:45:13 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Janne Riihijarvi Xref: main.gmane.org gmane.comp.tex.context:664 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:664 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 -----------------------------------------------------------------