1

How would I modify the following MWE, which gives an intentionally blank page, to work always (i.e. not only for odd number of pages)?:

\documentclass[twoside=false]{scrbook}

\newcommand*{\blankpage}{%
\par\vspace*{\fill}%
{\centering This Page Is Left Blank Intentionally\par}
\vspace{\fill}%
}

\AtEndDocument{\clearpage%
\ifodd\value{page}\else%
\blankpage
\thispagestyle{empty}%
\newpage
\vfill
\fi}

\begin{document}

\chapter{Chapter}

\chapter{Chapter}

\end{document}

Note: I appreciate this is probably quite easy to do - but I'm very new to LaTeX and everything I've tried is throwing up errors.

  • 3
    do you just mean remove the ifodd test? \AtEndDocument{\clearpage\blankpage} ? – David Carlisle Oct 18 '17 at 21:06
  • \AtEndDocument{\clearpage\blankpage} works, but how do I keep the empty page style (so there's no header/footer)? – E. McLean Oct 18 '17 at 22:46
1

Just remove the \ifodd with its \else and \fi

\documentclass[twoside=false]{scrbook}
\usepackage{lipsum}
\newcommand*{\blankpage}{%
\par\vspace*{\fill}%
}


\AtEndDocument{\clearpage%%
\blankpage
\thispagestyle{empty}}

\begin{document}
\tableofcontents
\chapter{Chapter}
\lipsum[1-5]
\chapter{Chapter}
\lipsum[1-20]
\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.