ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] [ errors imposition example ]
@ 2024-11-24 21:09 vm via ntg-context
  0 siblings, 0 replies; only message in thread
From: vm via ntg-context @ 2024-11-24 21:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: vm

while trying the "Getting the last page of a Booklet" example on the 
wiki page https://wiki.contextgarden.net/Imposition
context complains:

open source     > level 1, order 2, name './imposition_test2.tex'
! Control sequence expected instead of undefined.
<argument>
     \v!nextquadruple
<macro> \installpagebreakhandler
     #1#2->\defcsname \??pagebreakmethod #1
     \endcsname {#2}
<line 3.18>
        \fi}
You injected something that confused the parser, maybe by using some Lua 
call.




this is the example code:

8<---
\unprotect

\startvariables    all
     nextquadruple: nextquadruple
\stopvariables

\installpagebreakhandler \v!nextquadruple
   {\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]

\starttext

\subject{Front Cover}

\dorecurse{10}{\input tufte \par}

\page[nextquadruple]

Back Cover

\stoptext
--->8



most likely there is a reason for the error...


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

only message in thread, other threads:[~2024-11-24 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-24 21:09 [NTG-context] [ errors imposition example ] vm via ntg-context

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