I have a file bookletdemo.tex with the following code
\documentclass[12pt]{article}
\usepackage[a5paper]{geometry}
\usepackage{lipsum} % this package is for creating filler text
\author{N.~N}
\title{The booklet}
% \usepackage[print,1to1]{booklet} \nofiles
% \target{\magstep0}{297mm}{210mm}
\begin{document}
\maketitle
\tableofcontents
\section{Europe}
\subsection{Berlin}
\lipsum[4]
\subsection{Paris}
\lipsum[1-3]
\subsection{Vienna}
\lipsum[10]
\subsection{Rome}
\lipsum[15]
\section{Africa}
\lipsum[1-4]
\subsection{Accra}
\lipsum[5-8]
\subsection{Johannesburg}
\lipsum[9-11]
\subsection{Casablanca}
\lipsum[11-12]
\lipsum[5-6]
\section{Asia}
\lipsum[1-4]
\subsection{Tokyo}
\lipsum[5-8]
\subsection{Beijing}
\lipsum[9-11]
\subsection{Mumbai}
\lipsum[11-12]
\lipsum[5-6]
\end{document}
Fist I run
latex bookletdemo.tex
two times. The pdf formatting of the document with A5 pages is fine.
Then I uncomment
\usepackage[print,1to1]{booklet} \nofiles
\target{\magstep0}{297mm}{210mm}
and run
latex bookletdemo.tex
to create a booklet. It produces something which resembles a booklet but the title page and the TOC are missing.
How does an example which does this properly look like?
Reference
http://mirror.isoc.org.il/pub/ctan/macros/latex/contrib/booklet/booklet.pdf
Best Answer
I am far from expert and I am hoping that somebody will have a better answer. However, I have spent quite some time on this problem and, as far as I can tell, the use of
geometry
just does not agree with the use ofbooklet
no matter what. I know the documentation explains how to work around this usingnoprint
and thenprint
with\nofiles
but it has never worked for me. I therefore cannot answer your question since I have no idea how to do this 'properly' if that means 'in a way which both works and uses the method inbooklet
's documentation.In fact, I can't even answer it if you mean 'in a way which uses
booklet
'. I used to have a solution which did that but unfortunately it broke some time ago and things don't seem to have changed since. In case it is useful, I'll explain that solution before explaining what I have found works now. This solution, unfortunately, dispenses withbooklet
altogether. But it does work.Solution 1: Use
booklet
withoutgeometry
Currently broken - used to work
The way I did this was to initially load
geometry
with theverbose
option and then retrieve the settings it used from the output when I compiled. (These should also be in the log I expect.) I then tookgeometry
out and set the dimensions manually. Thenbooklet
worked fine.Running your code, for example, the output from
geometry
you would be looking for would be:I would then explicitly define the relevant dimensions, dispense with
geometry
, adda5paper
to the class options and proceed. However, this no longer seems to work and last time I needed to do this I could not make it work no matter what. (Right now, the compilation just seems to ignore the paper size settings. So I think you could do it on A4 and then havebooklet
scale the pages but I haven't tried. I gave up onbooklet
.)Solution 2: Use
pdfpages
- avoidbooklet
This solution is dead simple. The only downside is that you need a second file. All you do is prepare your initial file on A5 paper, ignoring for now the fact that you plan to make a booklet:
Let's say that the pdf produced is
prebooklet.pdf
. Then you just need this:This works perfectly with no trouble at all:
The only problem is the pages are not arranged correctly for printing the booklet. But this is easily fixed: just add the
signature
option:produces, for example:
I used 20 since you presumably want some multiple of 4 and have 17 actual pages of text.