I'm using the standard
book class. One version of the book will be printed two-sided, but there will also be a PDF version that does nice things like use the hyperref package and has color diagrams etc.Code: Select all
\newif\ifprintdoc
\newif\ifcolor
%\printdoctrue
\ifprintdoc
\documentclass[12pt,letterpaper,twoside]{book}
\else
\documentclass[12pt,letterpaper,oneside]{book}
\colortrue
\fi
...
\ifprintdoc
\newcommand{\href}[2]{#2}
\newcommand{\texorpdfstring}[2]{#1}
\else
\usepackage[unicode,colorlinks,linkcolor=blue,urlcolor=blue]{hyperref}
\fi
twoside option, LaTeX correctly always starts a chapter on an odd page, inserting a blank page if the previous chapter ended on a odd page. With oneside it doesn't.Is there a way to tell the
oneside option to behave like twoside for things like \chapter{foo} and \cleardoublepage or do I need to use twoside for the PDF version and then alter the margins somehow so the page is centered (I don't want print ready margins in the PDF)?Thank you for suggestions.