GeneralCannot access \contentsname...

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Origin
Posts: 1
Joined: Sun Feb 15, 2009 3:12 am

Cannot access \contentsname...

Post by Origin »

I want to change the name of the Table of Contents, and I am not able to:

Code: Select all

\renewcommand{\contentsname}
since \contentsname does not exist. The same is true for \bibname.

I assume this has something to do with where the files are located, as my article.cls is in a far off directory under MikTeX.

Any ideas?

Thank you very much for the help.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Cannot access \contentsname...

Post by localghost »

Renaming the ToC should work like you tried when not using babel. The bibliography name in the article class has another command.

Code: Select all

\renewcommand{\contentsname}{Contents name}
\renewcommand{\refname}{References name}
If that doesn't work for you, build a minimal working example (MWE) to show the problem.


Best regards and welcome to the board
Thorsten¹
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Cannot access \contentsname...

Post by daleif »

Origin wrote:I want to change the name of the Table of Contents, and I am not able to:

Code: Select all

\renewcommand{\contentsname}
since \contentsname does not exist. The same is true for \bibname.

I assume this has something to do with where the files are located, as my article.cls is in a far off directory under MikTeX.

Any ideas?

Thank you very much for the help.
a minimal example would have helped
Post Reply