# [NTG-context] duplicate booklet arrangement

Willi Egger context at boede.nl
Tue Feb 24 15:29:34 CET 2015

Hi Pablo,

We had this discussion in earlier threads. For me as a bookbinder, your issue is not really something for impositioning in a restricted sense. The thing is, that the machinery for imposition is looping over the number of pages and puts them in the defined place. So if one wants to achieve what you describe, the machinery would have to set up in a different way. I run into this issue myself and I would suggest, that you are ging to use for this special purpose some code like this:

\def\Myfilename{quotes-1}
\def\Mypages{22}

\setuplayout
[topspace=0mm,
backspace=0mm,
margin=0pt,
footer=0pt,
height=middle,
width=middle,]

\definelayer[Draw][width=\paperwidth,height=\paperheight]
\setuplayer[Draw][preset=lefttop]
\setupmakeup[standard][top=,bottom=,page=yes,doublesided=no]

\starttext

\dorecurse
{\Mypages}
{\setlayerframed
[Draw]
[x=0mm,y=0mm]
[offset=overlay,frame=off,rightframe=on]
{\externalfigure[\Myfilename][page=\recurselevel]}
\setlayerframed
[Draw]
[x=0mm,y=\dimexpr\paperheight/2]
[offset=overlay,frame=off]
{\externalfigure[\Myfilename][page=\recurselevel]}

\startstandardmakeup
\placelayer[Draw]
\stopstandardmakeup}
\stop

What this code does is to pick up the pages from the pdf which is made with e.g. 2UP arranging on A5_landscape. It puts then each page two times on a sheet of paper.

Willi

p.s. I am curious about how your booklet looks like after assembly. You put 142 pages in it with arranging 2UP.  Folding this amount of paper makes a rather thick booklet and I expect, that the outer margins are very small after cutting it square…?

> On 22 feb. 2015, at 09:26, Pablo Rodriguez <oinos at gmx.es> wrote:
>
> Hans,
>
> I need to generate a duplicate booklet from a PDF file.
>
> It would be like \setuparrange[2UP, singlesided]. But I need an extra
> imposition (this is what I have to do now), repeating the same booklet
> imposition one above each other.
>
> This would require a \setuppaper such as [A6][A4].
>
> The first four pages would be:
>
>  last|first  last-1|first+1  last-2|first+2  last+3|first+3
>  last|first  last-1|first+1  last-2|first+2  last+3|first+3
>
> Just in case I haven’t explained myself, here you have a sample:
>
> ConTeXt was used to typeset the book and arrange the booklet. But I
> needed to use another tool for the final imposition.
>
> I think it might be useful for other users also.
>
> Could this 2UPrepeated arrangement be included in ConTeXt?
>
> Many thanks for your help,
>
>
> Pablo
> --
> http://www.ousia.tk
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________