[Tex/LaTex] Using the booklet package and the geometry package together

bookletgeometrylandscape

When I use the booklet package alone, it works just fine and produces the output I expect. However, when I combine it with the geometry package, it produces really bad output.

Here's my MWE. First, I comment out the geometry package:

\documentclass[11pt]{article}
%%\usepackage[landscape]{geometry}
\usepackage[print]{booklet}
\usepackage{lipsum}
\setpdftargetpages
\begin{document}
\lipsum[1]
\newpage
\lipsum[2]
\newpage
\lipsum[2]
\end{document}

which gives me the following output. Notice the results are in portrait format – I want landscape:

booklet w/o geometry package

Here are results from the same file with the geometry line uncommented. The orientation is in landscape format, but the margins are all wrong. Notice how the text clips on the first page and overlaps on the second:

booklet w/ geometry package

How can I make the geometry package work with the booklet package? I am using TeXLive 2012, by the way.

p.s. My apologies for the unscaled images.

Best Answer

I understand you want to print a booklet version of your original document which consists in several specially dimensioned pages defined with geometry package help.

As an example, our original document looks like:

enter image description here

which was made with next code. Page dimensions are 10cm x 8cm.

\documentclass{article}
\usepackage{lipsum}
\usepackage[papersize={10cm,8cm}]{geometry}
\usepackage[placement=center,angle=0,color=blue!95,scale=7]{background}
\backgroundsetup{contents={-\thepage-}}
\usepackage{pgffor}

\begin{document}

\foreach \i in {1,...,24}
{
    \ \newpage
}

\end{document} 

Now with pdfpages help it's easy to produce a booklet version. If original document was 66267a.pdf, next code will do it.

\documentclass[a4paper]{article}

\usepackage{pdfpages}

\begin{document}

\includepdf[pages=-, nup=2x1, noautoscale, 
            frame, signature*=8, landscape, 
            angle=180, delta=0 1cm]{66267a}
\end{document}

pdfpages options means:

  • pages=- include all original pages
  • nup=2x1 place two pages on a row
  • noautoscale keep original page dimensions, otherwise they will scale to fit new page
  • frame draw a frame around every original page
  • signature*=8 organize pages in 8 pages booklets
  • landscape new page will be landscape
  • angle=180 not sure what it means, but works.
  • delta=0 1cm introduces some separation between pages. If you don't need it, delete it.

As you can sse from next figure. It's supposed that you will use double side printing.

enter image description here

Related Question