Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question

marked as duplicate by Gonzalo Medina, Caramdir, lockstep, tohecz, Jake Mar 30 '12 at 7:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 5 down vote accepted

Replace \tableofcontents by

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

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

\tableofcontents*
share|improve this answer

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