4

I want to publish a document in both printed and electronic versions. I use twoside,open=right for the printed version and oneside for the electronic version.

Due to the empty pages which are inserted in the twoside layout, the page numbers are going to diverge between the two layouts (see example below). Is there a sensible way to keep the page numbers in sync?

Solutions I can think of:

  • Insert empty pages in the oneside layout. [Maybe this could be done by using the twoside layout and shifting the type area back to the center (ugly).]
  • Use another layout for the electronic version. What is the 'best practice'? Publish the electronic version (for use in PDF reader) with the twoside layout?

Here is a simple example demonstrating the issue (I use the KOMA classes, but the same thing happens with book). The twoside layout has 10 pages while the oneside layout has 9 pages.

\documentclass[twoside,open=right]{scrbook}
% \documentclass[oneside]{scrbook}

\usepackage{blindtext}

\begin{document}

\blinddocument
\Blindtext
\blinddocument

\end{document}
  • 2
    it depends what you want to do. Apart from the possibilities you mention, another is to use oneside but define \cleardoublepage to set the page count to odd without throwing a blank page. – David Carlisle May 19 '15 at 19:06
  • Why use the different layouts when you want them to look the same? Is the main problem the headers/footers? If that's the case, it may be easier to adjust them rather than the layout. – Werner May 19 '15 at 19:18
  • @Werner The headers/footers are a minor issue, yes. But I would like the electronic/PDF version to have a centered type area instead of the left/right-shifted layout of the printed version. – shark.dp May 19 '15 at 19:22
  • @DavidCarlisle In this case, I would rather prefer to have empty pages included in the oneside layout. Missing page numbers might confuse the readers. – shark.dp May 19 '15 at 19:24
  • 1
    I would either just use exactly the same layout, or give up page numbers being the same, apart from one/two side distinction ideally the electronic version shouldn't be set for A4 aspect ratio either.... – David Carlisle May 19 '15 at 19:27
2

With a KOMA-Script class you could set twoside=semi and use scrlayer-scrpage to change the header and footer to oneside-layout.

\documentclass[twoside=semi,open=right]{scrbook}
\usepackage[automark]{scrlayer-scrpage}
\clearpairofpagestyles
\chead{\leftmark}
\cfoot{\pagemark}

\usepackage{blindtext}
\begin{document}
\blinddocument
\Blindtext
\blinddocument
\end{document}
  • Exactly what I was looking for... thank you! – shark.dp May 20 '15 at 13:46
2

If the only issue is that of blank pages, then you could redefine prepend some code to \chapter to achieve this (first suggested solution):

%\documentclass[twoside,open=right]{scrbook}
\documentclass[oneside]{scrbook}

\usepackage{blindtext}

\let\oldchapter\chapter
\renewcommand{\chapter}{%
  \clearpage% Move to next page
  \ifodd\value{page}\else% If this page is not odd/even...
  \mbox{}\thispagestyle{empty}\clearpage% ...insert a blank page and move to next page
  \fi
  \oldchapter
}

\begin{document}

\blinddocument
\Blindtext
\blinddocument

\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.