From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41308 Path: news.gmane.org!not-for-mail From: John Devereux Newsgroups: gmane.comp.tex.context Subject: Re: Specifying last page when using imposition Date: Mon, 02 Jun 2008 10:33:56 +0100 Message-ID: <87y75o89kr.fsf@cordelia.devereux.me.uk> 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> 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 1212399323 20990 80.91.229.12 (2 Jun 2008 09:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 09:35:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 02 11:36:05 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 1K36ST-0001uH-Ef for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jun 2008 11:36:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F1C81FCE8; Mon, 2 Jun 2008 11:35:13 +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 02900-01-3; Mon, 2 Jun 2008 11:34:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5D7971FC72; Mon, 2 Jun 2008 11:34:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 453AA1FC72 for ; Mon, 2 Jun 2008 11:34:30 +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 01430-02-4 for ; Mon, 2 Jun 2008 11:33:57 +0200 (CEST) Original-Received: from cordelia.devereux.me.uk (cordelia.devereux.me.uk [217.169.15.178]) by ronja.ntg.nl (Postfix) with ESMTP id 238271FB29 for ; Mon, 2 Jun 2008 11:33:57 +0200 (CEST) Original-Received: from [217.169.15.178] (helo=cordelia.devereux.me.uk ident=jd) by cordelia.devereux.me.uk with esmtp (Exim 4.69) (envelope-from ) id 1K36QO-0003Dm-Qm for ntg-context@ntg.nl; Mon, 02 Jun 2008 10:33:56 +0100 In-Reply-To: <115224fb0806020144p4c05baf8n982fdafc541dac73@mail.gmail.com> (Wolfgang Schuster's message of "Mon\, 2 Jun 2008 10\:44\:43 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) 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:41308 Archived-At: "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. > >>> 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. -- John Devereux ___________________________________________________________________________________ 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 ___________________________________________________________________________________