I'm confused on how to do the following: The first 50 Pages (except the cover) should be printed only on the right side of my two page document. The last 100 Pages (Appendix) should be printed front and back. I also would like to see those empty left pages in the generated pdf, so i cant hand it over to the printer. Any suggestions?
Asked
Active
Viewed 537 times
4
2 Answers
5
here is a solution
\documentclass{book}
\usepackage{lipsum}
\makeatletter
\let\old@outputpage\@outputpage
\def\@outputpage{\old@outputpage\shipout\vbox{}}
\@twosidefalse \@mparswitchfalse
\makeatother
\begin{document}
\lipsum[1-70]
\makeatletter
\let\@outputpage\old@outputpage
\@twosidetrue \@mparswitchtrue
\makeatother
\lipsum[1-70]
\end{document}
touhami
- 19,520
-
1+1. I guess we still need to find out from the OP what to do about the blank ("verso") pages: Should they be numbered (maybe invisibly) or not? Put differently, should the first fifty nonblank pages be numbered "1, 2, 3, ..." or "1, 3, 5, ..."? Let's hope he/she clarifies this matter. – Mico Jul 09 '15 at 00:24
3
Here is version that uses @touhami's hook, but provides more automation:
\documentclass{report}
\usepackage{lipsum}
\makeatletter
\newif\if@appendix
\g@addto@macro\appendix{\@appendixtrue}
\let\ltx@outputpage\@outputpage
\def\@outputpage{%
\if@appendix
\@twosidetrue\@mparswitchtrue
\ltx@outputpage
\else
\@twosidefalse\@mparswitchfalse
\ltx@outputpage\shipout\vbox{}% or \vbox{\stepcounter{page}} if you want to have the empy pages "silently" numbered
\fi}
\makeatother
\begin{document}
\lipsum
\newpage
\appendix
\lipsum
\end{document}
Ruben
- 13,448
\documentclass{...}and ending with\end{document}. – Jul 08 '15 at 18:12