From: Jan Pohanka <xhpohanka@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: back cover of booklet
Date: Wed, 12 Jun 2013 09:01:16 +0200 [thread overview]
Message-ID: <51B81CBC.8020201@gmail.com> (raw)
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 ...
<argument> \??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
___________________________________________________________________________________
reply other threads:[~2013-06-12 7:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51B81CBC.8020201@gmail.com \
--to=xhpohanka@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).