2

I'm using twoside,openright in my document class, and I'm wondering how to have "Page intentionally left blank" text on the pages that openright makes blank. I've seen people redefining \cleardoublepage however this looks like it only works if you're using \cleardoublepage explicitly in the document

EDIT Just found that that redefinition works fine actually! How would I add a page number into the following?

\makeatletter
\def\cleardoublepage{\clearpage\if@twoside%
    \ifodd\c@page\else
    \vspace*{\fill}
    \hfill
    \begin{center}
    This page intentionally left blank.
    \end{center}
    \vspace{\fill}
    \thispagestyle{empty}
    \newpage
    \if@twocolumn\hbox{}\newpage\fi\fi\fi
}
\makeatother
  • and what's the problem with using \cleardoublepage in a document ? – Sebastien Comtois Feb 2 '16 at 20:55
  • Becuase openright should automatically be creating those pages – Rob Feb 2 '16 at 20:56
  • May I refer this previous answer ... – Sebastien Comtois Feb 2 '16 at 20:58
  • 1
    \thispagestyle{empty}-->\thispagestyle{plain} – touhami Feb 2 '16 at 20:58
2

The following gives the expected result, use \thispagestle{plain} to get a pagenumber. Stolen from How to make intentionally left blank pages?

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

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.