I am using memoir
class for preparing a document. Here raises a problem with page numbering. For problem demonstration, consider the following MWE.
\documentclass{memoir}
\usepackage{lipsum}
\begin{document}
\frontmatter
\tableofcontents
\chapter{\centering Author Intro}
\lipsum[1-2]
\chapter{\centering Review committee}
\lipsum[1-2]
\chapter{\centering Preface}
\lipsum[1-5]
\mainmatter
\chapter{Intro}
\lipsum[3]
\section{Sec1}
\lipsum[3]
\chapter{Chap2}
\lipsum[3]
\section{Sec1}
\lipsum[3]
\chapter{Chap3}
\lipsum[3]
\section{Sec1}
\lipsum[3]
\chapter{Chap4}
\lipsum[3]
\section{Sec1}
\lipsum[3]
\end{document}
I want the page numbers in the frontmatter
not to show in header or footer. But they should continue the page counting. The page counter should start from the very beginning of the document. Now, it starts from 1 in \mainmatter
excluding \frontmatter
. Thats means it resets. I don't want that.
I restated my query:
The \mainmatter
page numbers should consider the \frontmatter
pages. It should not be reset to 0/1. But the \frontmatter
pages should not show any numbering, should be empty.
Thanks.
Note : I find a partial solution here: Italic roman page numbering in frontmatter Though it is not working accurately for me.
\thepage
to nothing, use theempty
page style.\mainmatter
always resets the page counter to 0 because\frontmatter
typesets it in roman numerals. Use\mainmatter*
to not have this reset. Additionally I would not use\chapter{\centering Preface}
as it gives an inconsistent design.\chapter{\centering Preface}
?\def\thepage{\empty}
?\mainmatter*
removes the page number.\def
. Pagestyles are issues using\pagestyle{name}
(affect the next page onward) and\thispagestyle{name}
onl;y currnet page.