[XeTeX] 2 pages in a single page

Nickkk nickkk at phonecoop.coop
Mon Jan 4 11:34:29 CET 2010


On Friday 01 Jan 2010 19:37:41 Vafa Khalighi wrote:
> Say, I have typeset 40 pages in order from page 1 up to page 40, now I like
> to put two pages in a single page side by side in landscape, but I want to
> put page 1 and 40 into a single page, page 2 and 39 into another single
> page, page 3 and 38 into another single page and so on. Is there any TeX
> package that would allow me do this?

Do you specifically want a TeX package?

I find pdfbklt invaluable - it modifies pdf files.

I set up my pages like you, sequentially numbered 1 to 40, as A5 portrait.

Then I generate the pdf via xelatex.

Then I run, for example,

pdfbklt -b a4 -p 2 my_file_name.pdf

That changes the pdf to a landscape file with pages 1 and 40 on one page, 2 
and 39 on the next etc.

I run the above pdfbklt command as a build tool with a shortcut key 
combination in kile.  Then <alt+3> automatically converts the pdf to a 
booklet.

I use pdfbklt in (debian) Linux.  It comes as part of the package libtext-pdf-
perl.deb  This is the text::pdf perl module packaged for debian, and I'm sure 
would be avaliable in some shape or form for other distributions / operating 
systems:

http://search.cpan.org/dist/Text-PDF/lib/Text/PDF.pm


Nickkk


More information about the XeTeX mailing list