4

Possible Duplicate:
Hiding the “Table of Contents” page from Table of Contents
How to remove the self-reference of the ToC from the ToC?

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.

For some reason, the Contents page is including the line "Contents" with page number "i". How do I remove this useless line from the table of contents?

\documentclass{memoir}

\begin{document}

\frontmatter
\tableofcontents

\mainmatter

\phantomsection
\addcontentsline{toc}{part}{Topic 1}

\chapter{Chapter 1}

This is the first chapter.

\chapter{Chapter 2}

This is the second chapter.

\phantomsection
\addcontentsline{toc}{part}{Topic 2}

\chapter{Chapter 3}

This is the third chapter.

\chapter{Chapter 4}

This is the fourth chapter.

\end{document}
6

Replace \tableofcontents by

\begin{KeepFromToc}
  \tableofcontents
\end{KeepFromToc}
| improve this answer | |
21

To prevent adding the title to the ToC, use the starred version

\tableofcontents*
| improve this answer | |

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