GeneralChange table of contents title

LaTeX specific issues not fitting into one of the other forums of this category.
jolle
Posts: 3
Joined: Tue Nov 11, 2008 9:02 pm

Change table of contents title

Post by jolle »

Hi,

I'm writing a non-english document in LaTeX, so I would like to change the title of the table of contents generated by the \tableofcontents command. I'm failry inexperienced with LaTeX and have no clue how to do that, so any help would be appreciated.

- Jolle
Last edited by jolle on Tue Nov 11, 2008 9:21 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Change table of contents title

Post by localghost »

Regardless of the language you want to write in, you should take a look at the babel package for multilingual documents. It redefines such names according to the given language and provides the correct hyphenation. Refer to its documentation and choose your language.


Best regards
Thorsten¹
jolle
Posts: 3
Joined: Tue Nov 11, 2008 9:02 pm

Re: Change table of contents title

Post by jolle »

Thanks for the suggestion; I will definitely use that package in the future. However, this document is already finished except for the toc title and a few other details, and I would like to keep everything as is. So in this case, I'd prefer to just change the toc title.

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

Change table of contents title

Post by Stefan Kottwitz »

Hi,

without babel you could just use

Code: Select all

\renewcommand*\contentsname{new name}
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change table of contents title

Post by localghost »

Inserting babel will not cause any changes in your document concerning paper and pages dimensions or the general layout of your document. So, this is the preferable way of changing the ToC name. But, if you insist.

Code: Select all

\renewcommand{\contentsname}{Inhaltsverzeichnis}
Note that wrong hyphenation for your chosen language will be kept. Hence using babel is strongly recommend.
jolle
Posts: 3
Joined: Tue Nov 11, 2008 9:02 pm

Re: Change table of contents title

Post by jolle »

Ah, that's exactly what I was looking for! Thanks!
c.mafla
Posts: 19
Joined: Sat Aug 02, 2008 1:20 am

Re: [Solved] Change table of contents title

Post by c.mafla »

Hi....how can i do the same thing for the 'List of Figures' and the 'List of Tables'


Thanks
c.mafla
Posts: 19
Joined: Sat Aug 02, 2008 1:20 am

Change table of contents title

Post by c.mafla »

Hi...sorry..I just found the answer in a previous post..

thanks..

the answer was:

Code: Select all

\renewcommand*\listfigurename{List of figures}
Just that
Last edited by cgnieder on Sat Dec 15, 2012 2:49 pm, edited 1 time in total.
troelslp
Posts: 2
Joined: Fri Dec 14, 2012 7:05 pm

Re: [Solved] Change table of contents title

Post by troelslp »

I've tried these methods in Lyx without luck. But via 'Insert TeX Code' and the Documents - Settings Latex Preamble.

For some reason my documents keeps calling the table of contents for 'Contents' .. :roll:

Any ideas?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Change table of contents title

Post by Stefan Kottwitz »

Welcome to the board!

If you use babel, use this, modify corresponding to your language:

Code: Select all

\addto{\captionsenglish}{\renewcommand*{\contentsname}{Table of contents}}
Stefan
LaTeX.org admin
Post Reply