From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30422 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: layout question Date: Mon, 21 Aug 2006 10:17:42 -0700 Message-ID: <36B0EF38-FA8E-4DFE-826B-34CF4BE95163@cox.net> References: <44E5DBA0.5010300@mevis.de> <44E5ED75.3050006@wxs.nl> <44E98708.9050504@mevis.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156180815 24953 80.91.229.2 (21 Aug 2006 17:20:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2006 17:20:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 21 19:20:09 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFDQy-0008Rd-Mu for gctc-ntg-context-518@m.gmane.org; Mon, 21 Aug 2006 19:19:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAA151FDF6; Mon, 21 Aug 2006 19:19:31 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25436-03; Mon, 21 Aug 2006 19:19:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFDB51FDEA; Mon, 21 Aug 2006 19:19:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3BD81FDEA for ; Mon, 21 Aug 2006 19:19:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25998-03 for ; Mon, 21 Aug 2006 19:19:14 +0200 (CEST) Original-Received: from fed1rmmtao01.cox.net (fed1rmmtao01.cox.net [68.230.241.38]) by ronja.ntg.nl (Postfix) with SMTP id C6CC01FDE7 for ; Mon, 21 Aug 2006 19:19:12 +0200 (CEST) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao01.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060821171911.VGZD6077.fed1rmmtao01.cox.net@[10.0.1.2]> for ; Mon, 21 Aug 2006 13:19:11 -0400 In-Reply-To: <44E98708.9050504@mevis.de> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30422 Archived-At: curspace=2.55in should be cutspace=2.55in On Aug 21, 2006, at 3:12 AM, richard rascher-friesenhausen wrote: > Hans Hagen schrieb: >> richard rascher-friesenhausen wrote: >> >>> Hello, >>> >>> i have a simple (?) layout question. I want to typeset a doublesided >>> text with a larger margin on one side. This margin will be filled >>> with >>> 'margin images' or 'margin remarks'. But sometimes, larger images >>> have >>> to be placed in the text+margin. >>> >>> Which commands, options or setups are correct, to get the same >>> results >>> on odd and even pages? In the attached pdf file, odd and even pages >>> behave different, using a simple setup (see tex file). >>> >> >> it's dangerous to use dimensions in \setuplayout that get set >> themselves >> >> also, textwidth is for special purposed and special effects, not >> to be >> used here (spoils things) >> >> \setuppapersize[A4][A4] >> >> \setuplayout >> [width=middle, >> backspace=.75in, >> curspace=2.55in, >> leftmargin=.50in, >> margindistance=.25in, >> rightmargin=2.3in] >> >> \setuppagenumbering[alternative={singlesided,doublesided}] >> >> \starttext >> >> The very first page with a small image in the (bigger) margin. >> >> \placefigure >> [inright]{a margin image} >> {\framed[width=\marginwidth,height=3cm]{image}} >> >> \input tufte >> >> An now a larger image in the text and margin are >> >> \placefigure >> [here,inright]{a text+margin image} >> {\framed[width=1.2\textwidth,height=3cm]{image}} >> >> \inmargin{Tufte text} \input tufte \page >> >> The second page with a small image in the (bigger) margin. >> >> \placefigure >> [inright] >> {a margin image} >> {\framed[width=\rightmarginwidth,height=3cm]{image}} >> >> \input tufte >> >> An now a larger image in the text and margin are >> >> \placefigure >> [here,inright] >> {a text+margin image} >> {\framed[width=1.2\textwidth,height=3cm]{image}} >> >> \inmargin{Tufte text} \input tufte \page >> >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com >> | www.pragma-pod.nl >> ----------------------------------------------------------------- >> > Thanks for the quick response. > > I have some questions about your code, because it does not fullfill > all > my wishes. > > The command \inmargin now correctly puts its text on the correct > side on > even and odd pages. But i would like to have the same behaviour for > the > figures too. In a longer script, TeX should know, if the margin image > has to be placed left or right. So 'inright' or 'inleft' is not an > option. And 'margin' does not work ... (the image is placed mostly > outside the page). > In your code, the long image on the second page does not start in the > left margin, as desired. > > %-------- > % output=pdf > \setuppapersize[A4][A4] > > \setuplayout > [%width=middle, > backspace=.75in, > curspace=2.55in, > leftmargin=.50in, > margindistance=.25in, > rightmargin=2.3in] > > \setuppagenumbering[alternative={doublesided}] > > \starttext > > The very first page with a small image in the (bigger) margin. > > \placefigure > [margin]{a margin image} > {\framed[width=\marginwidth,height=3cm]{image}} > > \input tufte > > And now a larger image in the text and margin > > \placefigure > [here,inright]{a text+margin image} > {\framed[width=1.2\textwidth,height=3cm]{image}} > > \inmargin{Tufte text} \input tufte \page > > The second page with a small image in the (bigger) margin. > > \placefigure > [margin] > {a margin image} > {\framed[width=\marginwidth,height=3cm]{image}} > > \input tufte > > And now a larger image in the text and margin > > \placefigure > [here,inleft] > {a text+margin image} > {\framed[width=1.2\textwidth,height=3cm]{image}} > > \inmargin{Tufte text} \input tufte \page > %-------- > > > > Any help appreciated > richard > > -- > > ====================================================================== > ======== > Richard Rascher-Friesenhausen > MeVis -- Centrum fuer Medizinische Diagnosesysteme und > Visualisierung GmbH > Universitaetsallee 29 > D-28359 Bremen > > email: richard@mevis.de, richard.rascher-friesenhausen@hs- > bremerhaven.de > www : http://www.mevis.de/, http://www.hs-bremerhaven.de/ > fon : +49 - 421 - 218 7707 (mevis) > fax : +49 - 421 - 218 4236 (mevis) > ====================================================================== > ======== > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context