# "Page intentionally left blank" with twoside openright

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}
\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 ? Feb 2, 2016 at 20:55
• Becuase openright should automatically be creating those pages Feb 2, 2016 at 20:56
• May I refer this previous answer ... Feb 2, 2016 at 20:58
• \thispagestyle{empty}-->\thispagestyle{plain} Feb 2, 2016 at 20:58

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}