我想使用双面 A4 打印机打印(几本)单面 A5 小册子。我使用的示例来自https://tex.stackexchange.com/a/150302/34993目前作为模板。但是,我完全不想剪裁打印件。也就是说,我想折叠打印件并将它们放在一起。最后,我会将所有页面在“书脊”处装订在一起。
如果我们想象一下合上小册子然后一页一页地翻动,我只希望在右手边的页面上打印。也就是说,左手边的页面应该始终是空白的。当然,封面应该放在首页上。
换句话说,我们翻阅这本书的页面应该是封面、空白、第 1 页、空白、第 2 页、空白、第 3 页等等。
这样,最终的页面就会打印在与封面同一张纸的反面。
有没有自动化的方法来实现这个稍微复杂的结果?
这是我开始使用的一个示例文档。
\documentclass{article}
\usepackage[osf]{garamondx}
\usepackage[T1]{fontenc}
\usepackage[cmyk,dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{lettrine}
\usepackage{lipsum}
%\setlength{\DefaultNindent}{0em}
\setcounter{DefaultLines}{4}
\input Zallman.fd
\newcommand*\initfamily{\usefont{U}{Zallman}{xl}{n}}
\renewcommand{\LettrineFontHook}{\initfamily}
\usepackage{bbding}
\pagestyle{empty}
\linespread{1.5}
\begin{document}
\newcommand{\pamphlet}{%
{\Huge\hfill\textsc{\textcolor{RoyalBlue}{T}he
\textcolor{RoyalBlue}{F}reedom} \textit{of} \textsc{the
\textcolor{RoyalBlue}{P}ress}\hfill} \vspace{\baselineskip}
\lettrine{\textcolor{RoyalBlue}{I}}{} am well acquainted with all
the arguments against freedom of thought and speech ---the
arguments which claim that it cannot exist, and the arguments
which claim that it ought not to. I answer simply that they don't
convince me and that our civilization over a period of four
hundred years has been founded on the opposite notice. For quite
a decade past I have believed that the existing Russian
\textit{r\'egime} is a mainly evil thing, and I claim the right to
say so, in spite of the fact that we are allies with the USSR in a
war which I want to see won. If I had to choose a text to justify
myself, I should choose the line from Milton:
\begin{quote}
\itshape By the known rules of ancient liberty.
\end{quote}
The word \textit{ancient} emphasizes the fact that intellectual
freedom is a deep--rooted tradition without which our
characteristic western culture could only doubtfully exist. From
that tradition many of our intellectuals are visibly turning away.
They have accepted the principle that a book should be published
or suppressed, praised or damned, not on its merits but according
to political expediency. And others who do not actually hold this
view assent to it from sheer cowardice. An example of this is the
failure of the numerous and vocal English pacifists to raise their
voices against the prevalent worship of Russian militarism.
According to those pacifists, all violence is evil, and they have
urged us at every stage of the war to give in or at least to make
a compromise peace. But how many of them have ever suggested that
war is also evil when it is waged by the Red Army? Apparently the
Russians have a right to defend themselves, whereas for us to do
[\textit{so}] is a deadly sin. One can only explain this
contradiction in one way: that is, by a cowardly desire to keep in
with the bulk of the intelligentsia, whose patriotism is directed
towards the USSR rather than towards Britain. I know that the
English intelligentsia have plenty of reason for their timidity
and dishonesty, indeed I know by heart the arguments by which they
justify themselves. But at least let us have no more nonsense
about defending liberty against Fascism. If liberty means
anything at all it means the right to tell people what they do not
want to hear. The common people still vaguely subscribe to that
doctrine and act on it. In our country ---it is not the same in
all countries: it was not so in republican France, and
it is not so in the USA today--- it is the liberals who fear
liberty and the intellectuals who want to do dirt on the
intellect: it is to draw attention to that fact that I have
written this preface.
\vspace{\baselineskip}
\noindent\textit{Extract from}
\textsc{The Freedom of the Press}\textit{, by
\textcolor{RoyalBlue}{George Orwell}.
Proposed Preface to `Animal Farm', 1945.
First published: The Times Literary Supplement,
September 15, 1972.}\par
} \pamphlet
\lipsum{100}
\end{document}
答案1
如果页面不是太多,也可以这样做。不过,这不是完全自动的,因为你需要指示pdfpages
插入空白页。
prebooklet.pdf
我们首先从使用的示例文件开始创建我之前的回答:
\documentclass[12pt]{article}
\usepackage[a5paper,verbose]{geometry}
\usepackage{lipsum} % this package is for creating filler text
\author{N.~N}
\title{The booklet}
\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}
这将生成一份 17 页的 A5 文档。然后我们使用pdfpages
以下命令制作小册子:
\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage{pdfpages}
\includepdfset{pages=-}
\author{N.~N}
\title{The booklet}
\pagestyle{empty}
\begin{document}
\includepdf[pages=-,booklet,landscape,pages={1,{},2,{},3,{},4,{},5,{},6,{},7,{},8,{},9,{},10,{},11,{},12,{},13,{},14,{},15,{},16,{},17}]{prebooklet.pdf}
\end{document}
{}
页面规范中的 指示插入pdfpages
空白页。由于页码已在原始.tex
文件中设置,因此这不会以任何方式影响可见的分页。
答案2
这是一个解决方案。
首先我们在每一页后面添加一个空白页
文件1.tex(假设原始文件是file.tex)
\documentclass{article}
%-------------------------------------------------
\usepackage{pdfpages}
\usepackage[a5paper]{geometry}
\geometry{scale=1,centering}
%-------------------------------------------------
\newcounter{mt}
\pagestyle{empty}
\begin{document}
\loop
\stepcounter{mt}%
\includepdf[pages={\themt}]{file.pdf}
\null\newpage
\ifnum\value{mt}<\the\pdflastximagepages
\repeat
\end{document}
然后我们把它做成一本带pdfpages
包装的小册子。
\documentclass{article}
%-------------------------------------------------
\usepackage{pdfpages}
\usepackage[a4paper]{geometry}
\geometry{scale=1,centering}
%-------------------------------------------------
\begin{document}
\includepdf[nup=1x2, landscape, booklet,
pages={-},
offset=3mm 3mm,
delta=2mm 10mm,frame]{file1.pdf}
\end{document}