ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* back cover of booklet
@ 2013-06-12  7:01 Jan Pohanka
  0 siblings, 0 replies; only message in thread
From: Jan Pohanka @ 2013-06-12  7:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-12  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-12  7:01 back cover of booklet Jan Pohanka

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).