4

I am using \tableofcontents* to remove the page numbering from the ToC but it still continues to number the ToC. What I would like to happen is that there is no page numbering for the ToC and then when the next chapter begins, I would like to start off at the number 1.

Here is MWE:

\documentclass{memoir}

\usepackage{lipsum}

\begin{document}
\chapterstyle{bianchi}
\tableofcontents*

\chapter{Awesome}
\lipsum[1-5]

\chapter{awesome 2}
\lipsum[1-5]
\end{document}

If I add \pagenumbering{roman} before the chapter then the ToC numbering is gone but then the header is wrong (not in this MWE but in my actual file).

  • You need \tableofcontents*\clearpage\pagenumering{arabic} – Marco Daniel May 24 '13 at 15:08
  • @MarcoDaniel That does renumber my chapter correctly but that does not unnumber the ToC – Jeel Shah May 24 '13 at 15:13
  • YOu can only suppress the page number by thispagestyle{empty}. Every page needs a logical page number. – Marco Daniel May 24 '13 at 15:28
  • @MarcoDaniel For some reason the chapter heading doesn't change from "contents" to the chapter name. What could be the issue? – Jeel Shah May 24 '13 at 15:37
2

You can't disable page numbering. You can only suppress the printing. This can be achieved by \thispagestyle{empty} or \pagestyle{empty}.

The numbering scheme can be changed by \pagenumbering. Here an example:

\documentclass{memoir}

\usepackage{blindtext}

\begin{document}
\pagenumbering{roman}
\chapterstyle{bianchi}
\tableofcontents*
\thispagestyle{empty}
\clearpage
\pagenumbering{arabic}
\Blinddocument\Blinddocument
\end{document}
  • This won't work if the TOC has more than one page. – egreg May 24 '13 at 17:44
  • @egreg: I know. Should I add the information \bgroup\pagestyle{empty}\tableofcontents\egroup? – Marco Daniel May 24 '13 at 17:46
  • No; it's much easier with memoir. – egreg May 24 '13 at 17:51
1

The memoir class has many more facilities than the standard classes. One is that chapter starting pages use the chapter pagestyle that one can redefine at will.

With \aliaspagestyle{chapter}{empty}, all chapter starting pages will use the empty page style

\documentclass{memoir}

\usepackage{blindtext}

\chapterstyle{bianchi}

\begin{document}
\frontmatter

%%% in the front matter we want no number in the first page of the TOC
\aliaspagestyle{chapter}{empty}

\tableofcontents*

\mainmatter

%revert to normal
\aliaspagestyle{chapter}{plain}

\Blinddocument\Blinddocument

\end{document}
  • Does it have the same drawback like thispagestyle? – Marco Daniel May 24 '13 at 17:53
  • @MarcoDaniel It shouldn't. The \chapter command issues \thispagestyle{chapter}. – egreg May 24 '13 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.