3

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?

  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Jul 8 '15 at 18:12
  • 1
    You kill many trees, you know, regarding empty pages ;-) – user31729 Jul 8 '15 at 18:12
  • 1
    I would split the documeent into two completely different volumes, One for the actual thesis, one volum for the supplementatry material (appendix). Might be a bit hard, if a lot of crossreferencing should be done. – Johannes_B Jul 8 '15 at 18:17
  • related tex.stackexchange.com/questions/96343/… – touhami Jul 8 '15 at 19:34
  • 2
    Should the blank page numbers 'count'? That is, should the 2nd odd page be page 2 or page 3? – cfr Jul 8 '15 at 20:52
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}
  • 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 9 '15 at 0:24
2

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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