Hi, I use the \tableofcontents command to insert the TOC. No definitions, no options, just that.
But it includes the word "Contents" at the beginning, and I would like to remove that -- (my TOC runs one line onto the next page).
Is there an option to do this? Many thanks.
Page Layout ⇒ Remove "Contents" from TOC?
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Remove "Contents" from TOC?
It depends on the document class you are using.
There's another way, enlarging the page a bit, such as:
Stefan
There's another way, enlarging the page a bit, such as:
Code: Select all
\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}
LaTeX.org admin
-
- Posts: 8
- Joined: Fri Apr 25, 2008 5:50 pm
Re: Remove "Contents" from TOC?
Thanks for the reply. Adding that line after \tableofcontents didn't remove it.
I'm using the aastex document class, if that helps.
Can I get around it by manually adding sections/subsections to a generic Table of Contents (that avoids using the \tableofcontents command)? Not sure that is the command that produces "Contents" at the top, though.
I'm using the aastex document class, if that helps.
Can I get around it by manually adding sections/subsections to a generic Table of Contents (that avoids using the \tableofcontents command)? Not sure that is the command that produces "Contents" at the top, though.
-
- Posts: 8
- Joined: Fri Apr 25, 2008 5:50 pm
Remove "Contents" from TOC?
Scratch that. I see that I can use:
along with \vspace to get around it.
Thanks.
Code: Select all
\renewcommand{\contentsname}{}
Thanks.