Generalchanging the \contentsname

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
adhikarig
Posts: 12
Joined: Mon Apr 28, 2008 12:34 am

changing the \contentsname

Post by adhikarig »

Hi

I am writing a class file for my thesis using book class. when i rename the \contentsname to Table of Contents using \renewcommand inside the class file, no change is observed. but it does change when i use the same command in my tex file just above \tableofcontents. Is it possible to write inside the class file or i have to write inside the tex file.

thanks

gopal

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

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

changing the \contentsname

Post by Stefan Kottwitz »

Hi gopal,

welcome to the LaTeX Community board!
Do you use babel? Then it should work with the \addto command, see Changing the words babel uses in the UK TeX FAQ.

Stefan
LaTeX.org admin
adhikarig
Posts: 12
Joined: Mon Apr 28, 2008 12:34 am

Re: changing the \contentsname

Post by adhikarig »

Thanks Stefan
Post Reply