# skip page count on blank pages in openright, twoside style [duplicate]

How to skip page counting on blank pages created automatically by openright option? I have tried two solutions [1], [2], but none works for me.

Let's say page 9 is the last page of chapter 1 and page 10 is a blank page. The chapter 2 is starting with page 11 on the right currently which is correct except for the page number which should be 10. I want to modify the page numbers only and not to remove the blank page or change the openright. Hope that it's clear now.

## marked as duplicate by David Carlisle, CarLaTeX, Kurt, Sebastiano, barbara beetonJan 17 '18 at 20:43

• is what you want (1) to omit the printing of the page number, but keep the right-hand pages with odd numbers, or (2) to have right-handed pages after blank pages numbered consecutively (= even number) after an odd-numbered page preceding the blank? – barbara beeton Jan 17 '18 at 18:01
• Let's say page 9 is the last page of chapter 1 and page 10 is a blank page. The chapter 2 is starting with page 11 on the right now which is correct except for the page number which should be 10. I want to modify the page numbers only and not to remove the blank page or change the openright. Hope that it's clear now. – R. Toward Jan 17 '18 at 18:45
• it's clear but rather weird. You would need to display a counter other than page as you need to keep the page counter with the real page numbers as latex chooses the left or right page style and whether a blank page is needed just by checking if the page counter is odd or even. Isn't the reader going to be very confused by such a numbering? – David Carlisle Jan 17 '18 at 19:01
• @DavidCarlisle That's how they have asked me to do. – R. Toward Jan 17 '18 at 19:05
• Isn't politely saying no an option? – David Carlisle Jan 17 '18 at 19:07

You can probably do this to change the parity of all the pagestyle related things, but I don't think I would ever do this.

\documentclass[twoside,openright]{report}

\usepackage[a6paper]{geometry}

\makeatletter
\let\zzoddsidemargin\oddsidemargin
\let\zzevensidemargin\evensidemargin
\let\zzcleardoublepage\cleardoublepage

\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\thispagestyle{empty}%
\global\let\oddsidemargin\zzevensidemargin
\global\let\evensidemargin\zzoddsidemargin
\global\let\cleardoublepage\yycleardoublepage
\thispagestyle{empty}%
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}

\def\yycleardoublepage{\clearpage\if@twoside \ifodd\c@page
\global\let\oddsidemargin\zzoddsidemargin
\global\let\evensidemargin\zzevensidemargin
\global\let\cleardoublepage\zzcleardoublepage
\thispagestyle{empty}%
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}

\let\zzcleardoublepage\cleardoublepage

\begin{document}

\chapter{zzzzzz}
\section{Zzzz}
\subsection{Z Z}
abc

\newpage

zzzaiaiai

\chapter{zzzzz z}
\section{Zzz zz}
\subsection{Z zzZ}
abc xyz

\chapter{zzzzz zz}
\section{Zzz zzz}
\subsection{Z zzZzz}
abc xyz 123

\end{document}