I use two side book
document class. I have a problem with page numbering. I would have gone some pages counted and I do not actually want it to be counted as part of the book.there are some one side page.I want every paper of them get only one number,mean it to be counted one time.
1 Answer
This uses the \SuspendCounters
feature of (my) package assoccnt
, which prevents specific counters to be increased until \ResumeSuspendedCounters
is used.
I additionally 'killed' the page number formatting to prevent the page numbers to appear.
\documentclass[twoside]{book}
\usepackage[globalsuspend=true]{assoccnt}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\chapter{First}
\blindtext[20]
\clearpage
\SuspendCounters{page}
\let\thepageorig\thepage
\renewcommand{\thepage}{}
\chapter{Second}
\blindtext[20]
\ResumeSuspendedCounters%
\let\thepage\thepageorig
\chapter{Third}
\blindtext[20]
\end{document}
Edit -- Now the 'same' document without suspending the page counter
\documentclass[twoside]{book}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\chapter{First}
\blindtext[20]
\clearpage
\chapter{Second}
\blindtext[20]
\chapter{Third}
\blindtext[20]
\end{document}
And now without suspension -- Chapter 2 is used with page number 9
\documentclass{...}
and ending with\end{document}
.