0

I wish to add placeholders into my disseration to ensure that all chapters begin on an odd page. These placeholders should contain ``This page was intentionally left blank.'' printed in the centre of the page. I'm using the document class:

\documentclass[a4paper,12pt,twoside]{report} 

and within my latex code preamble I have placed the following:

\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
    \hbox{}
    \vspace*{\fill}
    \begin{center}
        This page was intentionally left blank.
    \end{center}
    \vspace{\fill}
    \thispagestyle{empty}
    \newpage
    \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

which I found on a previous post https://latex.org/forum/viewtopic.php?t=20410. However, this code snippet doesn't appear to have the desired outcome. I've also tried the hack How do I make pages which were "intentionally left blank"? but this doesn't appear to work either.

4
  • .. to ensure that all chapters begin on an odd page ... Don't the book or scrbook classes do that automatically? What class are you using?
    – Ingmar
    Dec 6, 2020 at 15:35
  • what do you mean by "it doesn't work"? Can you make a failing example and describe what is against your expectation? Dec 6, 2020 at 15:45
  • @Ingmar - I'm using the twosided report class: \documentclass[a4paper,12pt,twoside]{report}
    – Bob1986
    Dec 6, 2020 at 17:00
  • Possible duplicate: tex.stackexchange.com/q/290802 May 2 at 2:31

1 Answer 1

0

Managed to get it to work, just had to change:

\documentclass[a4paper,12pt,twoside]{report}

to

\documentclass[a4paper,12pt,twoside]{book}
2
  • 1
    @Ingmar - many thanks for the suggestion!
    – Bob1986
    Dec 6, 2020 at 19:19
  • the question was bumped to front page recently, OP may want to accept the answer if they're still active.
    – user202729
    May 2 at 11:23

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.