[NTG-context] imposition 2UP = empty pages

Hans Hagen pragma at wxs.nl
Fri May 18 18:00:07 CEST 2012


On 18-5-2012 16:59, Marco Pessotto wrote:
> Hans Hagen<pragma at wxs.nl>  writes:
>
>> is there a simple test file
>>
>
> Sure:
>
> %% start
> \setuppapersize[A5][A4,landscape]
> \setuparranging[2UP]
> \setuppagenumbering[alternative=doublesided]
>
> \starttext
>
> \dorecurse{20}{
>    \input knuth
> }
>
> \stoptext
> % stop
>
> This produces 6 white pages with the latest beta (while output correctly
> with 2011.11.29 23:11).

quick hack that you can put in cont-new.mkiv

\def\handlearrangedpageTWOUP
   {\splitoffarrangedpagesTWO
    \ifconditional\arrangedswapstate
      \global\setbox\arrangedpageA\hbox
        {\box\arrangedpageA
         \box\arrangedpageB}%
      \setfalse\arrangedswapstate
    \else
      \global\setbox\arrangedpageA\hbox
        {\box\arrangedpageB
         \box\arrangedpageA}%
      \settrue\arrangedswapstate
    \fi
    \ht\arrangedpageA\paperheight
    \global\setbox\arrangedpageB\box\scratchbox}




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list