[Tex/LaTex] How to change the title of ToC

babelnamingtable of contents

I need to change default title of ToC. Is it possible with titlesec package?
Here is my MWE:

\documentclass{book}

\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\Large\scshape}{\thechapter}{1em}{} \vspace{6pt}]

\usepackage{lipsum}


%-------------------------------------------------------------------------

\begin{document}


\newpage
\thispagestyle{empty}
\tableofcontents
\thispagestyle{empty}
\newpage
\thispagestyle{empty}

\setcounter{footnote} {0}\chapter*{{\fontsize{11}{14}\selectfont\normalfont{Author1} \\
{\scshape\Large Title}}}
\addcontentsline{toc}{chapter}{\normalsize\normalfont{Author1} \\ \normalfont\scshape{Title}}
\thispagestyle{empty}
\Author{Author1}
\Title{Title}
\lipsum
\newpage
\thispagestyle{empty}



\end{document}

Best Answer

How you change the title of the table of contents depends on if you're using the babel package or not.

Without babel or polyglossia

You can change the name of the table of contents by redefining \contentsname as the following illustrates:

\documentclass{article}

\renewcommand{\contentsname}{Whatever}

\begin{document}

\tableofcontents

\section{Section}

\subsection{Subsection}

\end{document}

With babel or polyglossia

If you use either the babel or polyglossia package you'll have to change the name for the particular language you use with babel or polyglossia. Say that you load babel or polyglossia with english, then you do the following:

\documentclass{article}

\usepackage[english]{babel}

\addto\captionsenglish{% Replace "english" with the language you use
  \renewcommand{\contentsname}%
    {Whatever}%
}

\begin{document}

\tableofcontents

\section{Section}

\subsection{Subsection}

\end{document}

Either way you'll end up with the following result:

Title of table of contents changed to "Whatever"