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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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