From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41309 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Specifying last page when using imposition Date: Mon, 2 Jun 2008 11:59:12 +0200 Message-ID: <115224fb0806020259r5dadc6dy735115e63f7bb762@mail.gmail.com> References: <6faad9f00710021636i6898d8a8n47c5a93e55751928@mail.gmail.com> <20071129201410.ef3f13d3.schuster.wolfgang@googlemail.com> <87d4n19fn5.fsf_-_@cordelia.devereux.me.uk> <115224fb0806012306x6317dd4fse0ed87d4952900d3@mail.gmail.com> <873anw9ryo.fsf@cordelia.devereux.me.uk> <115224fb0806020122w52e4a1cfl659a1c3a8a312793@mail.gmail.com> <115224fb0806020144p4c05baf8n982fdafc541dac73@mail.gmail.com> <87y75o89kr.fsf@cordelia.devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212402743 32376 80.91.229.12 (2 Jun 2008 10:32:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 10:32:23 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 02 12:33:04 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1K37Lb-0002QY-MV for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jun 2008 12:33:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2BE61FC90; Mon, 2 Jun 2008 12:32:15 +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 08694-02-19; Mon, 2 Jun 2008 12:31:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BB0FE1FC45; Mon, 2 Jun 2008 11:59:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BB6691FC45 for ; Mon, 2 Jun 2008 11:59:53 +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 05169-02-9 for ; Mon, 2 Jun 2008 11:59:19 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by ronja.ntg.nl (Postfix) with ESMTP id 1F7781FB72 for ; Mon, 2 Jun 2008 11:59:18 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so848757ywm.74 for ; Mon, 02 Jun 2008 02:59:13 -0700 (PDT) Original-Received: by 10.150.153.3 with SMTP id a3mr5330511ybe.150.1212400752975; Mon, 02 Jun 2008 02:59:12 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Mon, 2 Jun 2008 02:59:12 -0700 (PDT) In-Reply-To: <87y75o89kr.fsf@cordelia.devereux.me.uk> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:41309 Archived-At: On Mon, Jun 2, 2008 at 11:33 AM, John Devereux wrote: > "Wolfgang Schuster" writes: > >> Hi John, >> >>>> Wolfgang, thanks - but this does not seem to fix the problem. The >>>> "last page" appears opposite page 3 instead of opposite page 1. >>>> >>>> To be clear, I am looking for a way to specify that content is to be >>>> placed on the outside of the cover, i.e. printed on the same side of >>>> the same sheet as page 1, when "arranged". >> >> Could you try the following page brake method. >> >> \unprotect >> >> \installpagebreakhandler {newquadruple}% >> {\ifdoublesided >> \!!counta\realpageno >> \!!countb\realpageno >> \advance\!!counta 4 >> \divide\!!counta 4 >> \multiply\!!counta 4 >> \advance\!!countb 1 >> \advance\!!counta-\!!countb >> \executepagebreakhandler\v!yes >> \dorecurse\!!counta{\executepagebreakhandler\v!empty}% >> \fi} >> >> \protect >> >>>> \setuppapersize[A5][A4] >>>> \setuparranging[2UP,rotated,doublesided] >>>> \setuppagenumbering[alternative=doublesided] >>>> >>>> \setuplayout[margin=0pt,width=fit] >>>> \setupbodyfont[16pt] >>>> >>>> \starttext >>>> >>>> \dorecurse{11}{\input tufte \par \input knuth \par} >>>> >>>> \page[8] >>> >>> \page[8] is useless in this example because you're already beyound >>> the eight page and the argument is useless in this case. >>> >>> \page[quadruple] >> >> \page[newquadruple] > > Well, this worked, thank you! > > I can safely say I would not have found that on my own... > > Could I trouble you for a version to take me to the page *before*, > i.e. the inside back cover? I now realise I may need to put content > there too, and if not I can just do another \page to get to the > outside back cover. \unprotect \installpagebreakhandler {beforequadruple}% {\ifdoublesided \!!counta\realpageno \!!countb\realpageno \advance\!!counta 5 \divide\!!counta 4 \multiply\!!counta 4 \advance\!!countb 2 \advance\!!counta-\!!countb \executepagebreakhandler\v!yes \dorecurse\!!counta{\executepagebreakhandler\v!empty}% \fi} \protect \setuppagenumbering[alternative=doublesided] \starttext \showframe \subject Front Cover \dorecurse{10}{\input tufte \par} %\dorecurse{8}{\input tufte \par} \page[beforequadruple] Imprint \page Back Cover \stoptext >>>> texexec --arrange --paperformat=a5a4 --printformat=up test2.tex >>> >>> texexec test2 >>> >>> you need --arrange only for documents with a table of content, indices ... > > OK, but my real document *will* have these - this was just a minimal > example. Originally I wanted to put the arrangment commands outside > the document, but I then put them inside too in case it helped. You could use modes for a imposed and a normal document. \startmode[fold] \setuppapersize[A5][A4] \setuparranging[2UP,rotated,doublesided] \stopmode \startnotmode[fold] \setuppapersize[A5][A5] \stopnotmode and process it with texexec --arrange --mode=fold mydocument and texexec mydocument 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 ___________________________________________________________________________________