From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9898 Path: main.gmane.org!not-for-mail From: Rob van Swol Newsgroups: gmane.comp.tex.context Subject: Re: Some \definelayout troubles Date: Mon, 25 Nov 2002 10:09:42 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <3DE1E8D6.5D4C120A@nlr.nl> References: <5.1.0.14.1.20021122233241.02e89858@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1038215321 22730 80.91.224.249 (25 Nov 2002 09:08:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2002 09:08:41 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GFEO-0005uU-00 for ; Mon, 25 Nov 2002 10:08:40 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0B5E910AE8; Mon, 25 Nov 2002 10:10:43 +0100 (MET) Original-Received: from mail-gateway.nlr.nl (mail-gateway.nlr.nl [137.17.162.2]) by ref.ntg.nl (Postfix) with ESMTP id 3B3B310AE7 for ; Mon, 25 Nov 2002 10:09:44 +0100 (MET) Original-Received: from border (border-qfe3.nlr.nl [137.17.162.1]) by mail-gateway.nlr.nl with SMTP id gAP99hwg805282; (enveloppe sender address: vanswol@nlr.nl); Mon, 25 Nov 2002 10:09:43 +0100 (CET) Disclaimer: "The National Aerospace Laboratory NLR DOES NOT ACCEPT ANY FINANCIAL COMMITMENT derived from this message." Original-Received: from ([137.17.80.200]) by border; Mon, 25 Nov 2002 10:04:46 +0100 (MET) Original-Received: from nlr.nl (zwelbast.nlr.nl [137.17.228.46]) by smtp-server.nlr.nl with ESMTP id gAP99gD1127231; Mon, 25 Nov 2002 10:09:42 +0100 (CET) X-Mailer: Mozilla 4.77C-SGI [en] (X11; I; IRIX 6.5 IP32) X-Accept-Language: en Original-To: ntg-context@ntg.nl Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9898 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9898 Hans, The following document can be used as test document. If you comment out the line \enablemode[doublesided] you get 5 pages, otherwise 10! Rob \setupoutput[pdftex] \enablemode[doublesided] \setuppapersize[A4][A4] \defineoverlay [Header] [{\framed [width=\overlaywidth,height=\overlayheight, offset=overlay,align=right,frame=off] {\midaligned{-{\pagenumber}-}\\ \blackrule[height=0.05cm,width=15cm,depth=0pt] } }] \setupbackgrounds [state=repeat] \startstandardmakeup {A doublesided document with \ConTeXt} \stopstandardmakeup \setuplayout [backspace=4.0cm] \setupbackgrounds [header][text] [background={Header}] \setuppagenumbering[location=] \doifmode{doublesided} {\setuppagenumbering[alternative=doublesided] \definelayout[odd][backspace=4.0cm] \definelayout[even][backspace=2.5cm]} \startfrontmatter \page[yes,blank,empty] \completecontent \stopfrontmatter \starttext \startbodymatter \chapter[]{Chapter} This document ... \stopbodymatter \startappendices \chapter[]{Appendix} This is appendix ... \stopappendices \stoptext Hans Hagen wrote: > > At 04:09 PM 11/20/2002 +0100, Rob van Swol wrote: > >Hi, > > > >I want to set a different layout for even and odd pages; so I use > >something like: > > > >\setuppagenumbering[alternative=doublesided] > >\definelayout[odd][backspace=4.0cm] > >\definelayout[even][backspace=2.5cm] > > > >This works fine, except I get these extra pages again after > >\stopstandardmakeup, \stopfrontmatter, and \stopappendices > >[Note: I applied the following patch to cont-new.tex, Context ver: > >2002.10.23 > > > >\appendtoks > > \gdef\shipout{\dowithnextbox{\deadcycles\zerocount}}% > >\to \everylastshipout > >] > > > >Any suggestions? > > make the smalles possible test file > > Hans > > ------------------------------------------------------------------------- > Hans Hagen | PRAGMA ADE | pragma@wxs.nl > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com > ------------------------------------------------------------------------- > information: http://www.pragma-ade.com/roadmap.pdf > documentation: http://www.pragma-ade.com/showcase.pdf > ------------------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context -- _____________________________________________________________ Rob W. van Swol National Aerospace Laboratory NLR Tel. +31 527 248252 P.O. Box 153 Fax +31 527 248210 8300 AD Emmeloord E-Mail vanswol@nlr.nl The Netherlands http://www.neonet.nl/