Document ClassesTable of contents links to itself

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
athel
Posts: 5
Joined: Wed Mar 11, 2009 5:43 pm

Table of contents links to itself

Post by athel »

I am preparing a long (300+ pages) document using the memoir class. Obviously it needs a table of contents, but until today I didn't try to use the \tableofcontents command. Now that I have done so it does a good job _except_ that it starts with a link to itself, i.e. as well as the header "Contents", which is OK, it has another line that says "Contents .... .... 2", and as the reader is already on p. 2 there is no point in that, but I can't find any way to suppress it.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Table of contents links to itself

Post by frabjous »

According to page 151 of the memoir manual, the \tableofcontents command adds itself to the table of contents, but the starred version \tableofcontents* does not. I assume it's accurate, but am too lazy to test right now.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Table of contents links to itself

Post by localghost »

As frabjous already pointed out, it is quite gainful to consult the concerned manual if a problem occurs with a special class or package. Manuals are not only for decoration or filling disk space.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
athel
Posts: 5
Joined: Wed Mar 11, 2009 5:43 pm

Re: Table of contents links to itself

Post by athel »

Thanks. Adding the * works fine.

Sorry about the manual: I was looking in the wrong manual, as it didn't occur to me that this was something specific to the class memoir.
Post Reply