Generalbabel | Changing ToC Name fails

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lhrooh
Posts: 2
Joined: Sat Sep 01, 2012 7:01 pm

babel | Changing ToC Name fails

Post by lhrooh »

Hi,

I'm doing my masters thesis, and I'm using this template (made on my University in Portugal):

http://code.google.com/p/thesisdifct...7.zip&can=2&q=

But I need to change the name of the Table of Contents. It uses babel, so I tried

Code: Select all

\addto\captionsportuges{%
  \renewcommand{\contentsname}%
  {Indice de Materias}%
}
But this doesn't change anything. Can anybody help me? (cause I'm getting desperate, and I'm a novice using LaTeX)

Thanks

Diana
Last edited by Stefan Kottwitz on Sat Sep 01, 2012 7:46 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.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

babel | Changing ToC Name fails

Post by kaiserkarl13 »

What happens if you just put \renewcommand{\contentsname}{blah} in the preamble (without the enclosing command you used, which seems like it is made for captions or something)?

It might take a couple of runs of LaTeX to update the name, by the way---the table of contents is read in as a separate file, which is created only after LaTeX runs the first time.
lhrooh
Posts: 2
Joined: Sat Sep 01, 2012 7:01 pm

babel | Changing ToC Name fails

Post by lhrooh »

By just putting \renewcommand{\contentsname}{blah} it doesn't change anything. So i solved the problem this way:

Code: Select all

\addto\captionsportuguese{\renewcommand\contentsname{Rename}}
and it was updated at the first run.

Thanks
Last edited by Stefan Kottwitz on Sun Sep 02, 2012 12:43 am, edited 1 time in total.
Post Reply