Page LayoutRemove "Contents" from TOC?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
astroryan7
Posts: 8
Joined: Fri Apr 25, 2008 5:50 pm

Remove "Contents" from TOC?

Post by astroryan7 »

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.

Recommended reading 2024:

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

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

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

Remove "Contents" from TOC?

Post by Stefan Kottwitz »

It depends on the document class you are using.

There's another way, enlarging the page a bit, such as:

Code: Select all

\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}
Stefan
LaTeX.org admin
astroryan7
Posts: 8
Joined: Fri Apr 25, 2008 5:50 pm

Re: Remove "Contents" from TOC?

Post by astroryan7 »

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.
astroryan7
Posts: 8
Joined: Fri Apr 25, 2008 5:50 pm

Remove "Contents" from TOC?

Post by astroryan7 »

Scratch that. I see that I can use:

Code: Select all

\renewcommand{\contentsname}{}
along with \vspace to get around it.

Thanks.
Post Reply