I have a memoir
document with introductory material (title page, table of contents, etc.) in the \frontmatter
section. How do I prevent page numbers from automatically being put on these pages (currently they are roman numerals)? I still want normal arabic page numbers on every page in the \mainmatter
section.
\documentclass{memoir}
\begin{document}
\frontmatter
\title{My Book}
\author{Me}
\maketitle
\mainmatter
Some text.
\end{document}
I am aware that I can switch page numbers on and off with \pagenumbering{gobble}
and \pagenumbergin{arabic}
. But I'm looking for a memoir
setting which will automatically turn off page numbering for the \frontmatter
section. (I'm asking because main document has lots of settings which seem to conflict with \pagenumbering{gobble}
and generate warnings.)
EDIT:
As egreg pointed out, these warnings in my main document are generated by a conflict with the hyperref
package.
EDIT 2:
If possible, I would like to remove the numbers from all pages in \frontmatter
, but keep the page numbers in \mainmatter
using my custom header and fooder settings:
% Headers and Footers
\nouppercaseheads
\makepagestyle{mystyle}
\setlength{\headwidth}{\dimexpr\textwidth+\marginparsep+\marginparwidth\relax}
\makerunningwidth{mystyle}{\headwidth}
\makeevenhead{mystyle}{\itshape\leftmark}{}{}
\makeoddhead{mystyle}{}{}{\itshape\leftmark}
\makeevenfoot{mystyle}{\thepage}{}{}
\makeoddfoot{mystyle}{}{}{\thepage}
\makepsmarks{mystyle}{\createmark{chapter}{left}{}{}{}}
\makeatletter
\makepsmarks{mystyle}{\createmark{chapter}{left}{shownumber}{\@chapapp\ }{:\ }}
\makeatother
\makepagestyle{plain}
\makerunningwidth{plain}{\headwidth}
\makeevenfoot{plain}{\thepage}{}{}
\makeoddfoot{plain}{}{}{\thepage}
\pagestyle{mystyle}