GeneralHow can I omit "Table of Contents" above the TOC?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How can I omit "Table of Contents" above the TOC?

Post by Montag »

Hello,

how can I make "Table of Contents" disappear when producing the TOC via \tableofcontents?
Last edited by Montag on Thu Jun 02, 2011 5:10 pm, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: How can I omit "Table of Contents" above the TOC?

Post by Stefan Kottwitz »

This depends on the class, since the classes define \tableofcontents. Check the definition in your class for an option or redefine it without printing out that heading. Or use a package such as tocloft or titletoc.

Stefan
LaTeX.org admin
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: How can I omit "Table of Contents" above the TOC?

Post by Montag »

Oh, ok, it is one of the KOMA classes. Still can't find what I must do. :/
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

How can I omit "Table of Contents" above the TOC?

Post by Stefan Kottwitz »

With a current KOMA class you can solve it by

Code: Select all

\deftocheading{toc}{}
That's a feature of tocbasic.

Stefan
LaTeX.org admin
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: How can I omit "Table of Contents" above the TOC?

Post by Montag »

Thank you, that's it.
I can promise I wouldn't have found it in this decade in the scrguide.pdf. :lol:
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: How can I omit "Table of Contents" above the TOC?

Post by Stefan Kottwitz »

I did not find in the documentation too. I read tocbasic.sty to find it - after reading a cls file to see that tocbasic is used. ;-)

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I omit "Table of Contents" above the TOC?

Post by localghost »

The feature is documented in Chapter 12 of the KOMA Script user guide. This chapter represents a documentation for the »tocbasic« package. The command is explained in Section 12.2 at the bottom of page 317 in the German version of the user guide.


Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: How can I omit "Table of Contents" above the TOC?

Post by Stefan Kottwitz »

Good to know! I had an outdated copy of the manual here, and the KOMA-Script book is at home while I'm elsewhere.

Stefan
LaTeX.org admin
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How can I omit "Table of Contents" above the TOC?

Post by Montag »

localghost wrote:The feature is documented in Chapter 12 of the KOMA Script user guide. This chapter represents a documentation for the »tocbasic« package. The command is explained in Section 12.2 at the bottom of page 317 in the German version of the user guide.


Thorsten
I just noticed this reply. Thank you for the hint, Thorsten!
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply