GeneralUnable to change title of ToC using babel

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
touches
Posts: 1
Joined: Thu Dec 02, 2021 8:04 am

Unable to change title of ToC using babel

Post by touches »

Hello everyone,

I am new to Latex and have submitted my dissertation, however the guidelines require the title of toc to be "Table of Contents" instead of "Contents". I have looked at similar problems in this forum and found that the class file uses babel and found the following command being used in the class file

Code: Select all

\addto\captionsenglish{\renewcommand{\contentsname}{{\large TABLE OF CONTENTS}}}

\newcommand{\tocgeometry}{\newgeometry{left=1.5in,right=1in,top=98pt,bottom=1.4in,headheight=23pt,headsep=13pt,footskip=.5in}}
\addtodef{\tableofcontents}%
  {\clearpage\pagestyle{toc}\begin{KeepFromToc}\tocgeometry\SingleSpacing}%
  {\restoregeometry\end{KeepFromToc}\restoregeometry\clearpage\DoubleSpacing}
\renewcommand*{\tocheadstart}{\vspace*{\topbfiddle}}
\renewcommand*{\aftertoctitle}{\vspace*{2\baselineskip}\thispagestyle{plain}%
  \par\nobreak {\normalfont\large Chapter \hfill Page}\par\nobreak}

\renewcommand*{\cftchapterfont}{\normalfont\large}
\renewcommand*{\cftchapterpagefont}{\normalfont\large}
\renewcommand\cftsectionfont{\normalfont\large}
\renewcommand\cftsectionpagefont{\normalfont\large}
\renewcommand\cftsubsectionfont{\normalfont\large}
\renewcommand\cftsubsectionpagefont{\normalfont\large}
\renewcommand*{\cftchapterleader}{%
  \cftchapterfont\cftdotfill{\cftchapterdotsep}}
\renewcommand*{\cftchapterdotsep}{\cftdotsep}
\setlength{\cftbeforechapterskip}{1\onelineskip \@plus\p@}
\renewcommand*{\insertchapterspace}{}
table of contents
table of contents
toc_error.png (5.14 KiB) Viewed 2968 times

However, despite this being in the file, the toc title does not display "Table of Contents". Should I look anywhere else in the class file?

Edit: Added full definition

Recommended reading 2024:

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

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

Post Reply