Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I was just reading this question about using pdfpages to create twoup effects in memoir. This worked great for me, but I am wondering how I can get the page order to set up a booklet, so that it can be folded in half with correct pagination. I never got the booklet code to work. Any idea?

share|improve this question
add comment

4 Answers

up vote 6 down vote accepted

The pdfpages package provides an easy way to arrange the pages of a PDF file so that it can be printed as a booklet. For two A5 pages arranged on an A4 landscape paper, the correct choice of options is

\documentclass{scrartcl}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-,booklet,landscape]{document.pdf}
\end{document}

More information, e.g. on splitting the booklet into several signatures, can be found in the package documentation.

share|improve this answer
    
It didn't work the first few times I tried, and of course I set this up in a new tex file, but it worked like a charm. THank you! –  Paul Salomon Apr 30 '11 at 13:10
add comment

In case you want 4 on 1 layout with a booklet orientation, you can use pgfpages like this:

\documentclass{article}
% TEX.SE \url{}
\usepackage{lipsum}
\usepackage{pgfpages}


\pgfpagesdeclarelayout{4 on 1 booklet}
{
  \edef\pgfpageoptionheight{\the\paperheight} 
  \edef\pgfpageoptionwidth{\the\paperwidth}
  \edef\pgfpageoptionborder{0pt}
}
{
  \pgfpagesphysicalpageoptions
  {%
    logical pages=4,%
    physical height=\pgfpageoptionheight,%
    physical width=\pgfpageoptionwidth%
  }
  \pgfpageslogicalpageoptions{1}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.5\pgfphysicalwidth,%
    resized height=.5\pgfphysicalheight,%
    center=\pgfpoint{.75\pgfphysicalwidth}{.25\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{2}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.5\pgfphysicalwidth,%
    resized height=.5\pgfphysicalheight,%
    rotation=180,%
    center=\pgfpoint{.75\pgfphysicalwidth}{.75\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{3}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.5\pgfphysicalwidth,%
    resized height=.5\pgfphysicalheight,%
    rotation=180,%
    center=\pgfpoint{.25\pgfphysicalwidth}{.75\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{4}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.5\pgfphysicalwidth,%
    resized height=.5\pgfphysicalheight,%
    center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight}%
  }%
}

\pgfpagesuselayout{4 on 1 booklet}

\begin{document}
\lipsum
\lipsum
\lipsum
\end{document}

There is a bug in pgfpages with rotation that needs to be fixed first, though.

share|improve this answer
add comment

Try the booklet package.

share|improve this answer
    
I did. no good. –  Paul Salomon Apr 30 '11 at 0:20
add comment

say it is 4 pages, then the order would be (duplex on short edge I think)

2 3 4 1

so

\includepdf[pages={2,3,4,1},...]{file.pdf}

(or similar)

share|improve this answer
    
So that is just a code to custom order the pages, after I do the laying out? I was hoping there was something that could do it for me. –  Paul Salomon Apr 30 '11 at 0:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.