# Suppress page numbers when using \addcontentsline

I have a table of contents in my memoir book. I want there to be one line for each chapter, in addition to headings for each set of similar chapters.

However, I do not want any page numbers to be displayed across from the "headings" (for which I am using the command \addcontentsline).

In the following MWE, for example, I do not want a page number for "Topic 1" or "Topic 2".

\documentclass{memoir}
\begin{document}

\frontmatter
\tableofcontents*

\mainmatter

\phantomsection

\chapter{Chapter 1}

This is the first chapter.

\phantomsection

\chapter{Chapter 2}
This is the second chapter.

\chapter{Chapter 3}
This is the third chapter.

\end{document}
• Just a suggestion: I guess that \part is a proper way to do this. It typesets "Part" page and adds a ToC line. It might be a bit strange to have something in ToC that is not in the main document. The presence of parts does not affect chapter numbering at all. – yo' Mar 30 '12 at 6:50
• @tohecz Thanks! Would you mind please explaining what the exact command would be, if I want to use \part to accomplish this in my MWE? – jamaicanworm Mar 30 '12 at 15:06
• See daleif's answer below... – yo' Apr 1 '12 at 21:55

to write a \contentsline entry of type <kind> into the file with extension <ext>; this line will typeset <text> and will use <page> as the page number. A little example:

\documentclass{memoir}

\begin{document}

\tableofcontents*