From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82942 Path: news.gmane.org!not-for-mail From: Jan Pohanka Newsgroups: gmane.comp.tex.context Subject: back cover of booklet Date: Wed, 12 Jun 2013 09:01:16 +0200 Message-ID: <51B81CBC.8020201@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1371020484 16943 80.91.229.3 (12 Jun 2013 07:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2013 07:01:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 12 09:01:26 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Umf3c-0003f3-CR for gctc-ntg-context-518@m.gmane.org; Wed, 12 Jun 2013 09:01:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4F5D101E6; Wed, 12 Jun 2013 09:01:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Bez3JGOckpjf; Wed, 12 Jun 2013 09:01:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E889D101E7; Wed, 12 Jun 2013 09:01:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32E0B101E7 for ; Wed, 12 Jun 2013 09:01:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qpxP2WF1rcID for ; Wed, 12 Jun 2013 09:01:19 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 274E9101E6 for ; Wed, 12 Jun 2013 09:01:19 +0200 (CEST) Original-Received: from mail-ee0-x235.google.com (mail-ee0-x235.google.com [IPv6:2a00:1450:4013:c00::235]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5C71IHI028557 for ; Wed, 12 Jun 2013 09:01:18 +0200 Original-Received: by mail-ee0-f53.google.com with SMTP id c41so4210068eek.12 for ; Wed, 12 Jun 2013 00:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=P5bi0VnnYTFi5iQAE1Ht5aVjC7Rh3jZ9XrfJKVtATig=; b=PV4NMBM2EDs0PzxH3I2mpBLA48viFBQMUqT3d3/iOAxjAgRAb2ZsShOC8/neKBGnaB NWqNK31xvIBoY21VuQYm4IDq9jZYgYado87PBko376RZZydjCg6LWEKCN/YMgeL3Wc2H 1db9l0fBmCBzn/d/p2/qgQa0QyAy5V5tULJg2+GIg6CA9/8UFKnlDyIgYb3kNvtviMyT Wr8kGgkt/V56Ut+rS0D9T9uXdhpYgNUhkNHYXtFZt02uvPyZ1CGMaBf0OqHBCUcpesXy MOFObKrqtSzLYzChvkqQkzEfHX/3qy6sM5G9ncp5lkTecxwABVTwKHbx1g8Y2q5l4pWu 6XqQ== X-Received: by 10.15.83.69 with SMTP id b45mr6807159eez.150.1371020478360; Wed, 12 Jun 2013 00:01:18 -0700 (PDT) Original-Received: from [192.168.240.97] (190.183.broadband14.iol.cz. [90.181.183.190]) by mx.google.com with ESMTPSA id s8sm34849601eeo.4.2013.06.12.00.01.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 00:01:17 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJLj1i3j - ce32e4d50151 - 20130612 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82942 Archived-At: Hi, I have found following example to set back cover of a booklet using imposition on the wiki \unprotect \startvariables all beforequadruple: beforequadruple \stopvariables \installpagebreakhandler \v!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 \setuppapersize[A5][A4] \setuparranging[2UP,rotated,doublesided] \setuppagenumbering[alternative=doublesided] \starttext \subject Front Cover \dorecurse{10}{\input tufte \par} \page[beforequadruple] Imprint \page Back Cover \stoptext Unfortunately this does not work anymore nor in MKII or MKIV. Can please someone give me some actual solution? Thanks. mtx-context | run 1: luatex --fmt="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test" --lua="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.75.0-2013031401 (rev 4589) \write18 enabled. (/home/honza/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.17 13:59 MKIV fmt: 2013.3.19 int: english/english system > 'cont-new.mkiv' loaded (/home/honza/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > files > jobname 'test', input 'test', result 'test' fonts > latin modern fonts are not preloaded languages > language 'en' is active (test.tex ! Undefined control sequence. log system > tex > error on line 18 in file test.tex: Undefined control sequence ... \??pagebreakmethod \v!beforequadruple \setvalue #1->\expandafter \def \csname #1 \endcsname \installpagebreakhandler ...\??pagebreakmethod #1} {#2} l.18 \fi} ? x With best regards Jan ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________