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.

I'm using the memoir class, and it adds the Table of Contents page to the TOC. It is... well... pretty redundant...

Any quick way to eliminate this?

\documentclass{memoir}

\begin{document}
\frontmatter
\tableofcontents

\mainmatter
\chapter{A Chapter}
\end{document}

Demonstration of contents in contents.

share|improve this question
    
possible duplicate of How to remove the self-reference of the ToC from the ToC? –  Caramdir Mar 30 '12 at 1:59
    
@Caramdir Doesn't this question predate the one you refer to? (Implying that the other one is the duplicate). –  mforbes Mar 30 '12 at 2:02
    
@mforbes: The other had a MWE and both ways to solve the problem as answers, so I thought it better to keep that one. (I see that you improved lockstep's answer here.) –  Caramdir Mar 30 '12 at 2:07
    
@Caramdir I figured it was best to go with the earliest example. I will add a MWE if this one should be kept. –  mforbes Mar 30 '12 at 2:08
1  
@ Caramdir Okay. I've suggested updates to this question and answer giving MWE's and both solutions. I would vote to close all other duplicates: 10943, [47225](tex.stackexchange.com/questions/47225], and the latest 50031. –  mforbes Mar 30 '12 at 2:26

1 Answer 1

up vote 15 down vote accepted

Use the starred command version \tableofcontents* instead of \tableofcontents. This effectively places the command in a KeepFromToc environment, providing an alternate verbose solution (see pages 151 and 158 of the memoir manual):

\documentclass{memoir}

\begin{document}
\frontmatter
\begin{KeepFromToc}        % or simply \tableofcontents* 
  \tableofcontents
\end{KeepFromToc}

\mainmatter
\chapter{A Chapter}
\end{document}

Working solution.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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