# Rename ToC, List of Figures, References

I would like to know how to rename the standard list of figures, table of contents, and references. What I saw so far relying on \renewcommand{\contentsname}{name} did not work so far.

Here's the list of preambles I use:

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{fourier}
\usepackage{marvosym}
\usepackage[pdftex]{graphicx}
\usepackage[margin=2.5cm]{geometry}
\usepackage{rotating}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{url}
\usepackage{natbib}
\usepackage{setspace}
\newenvironment{remark}{\par\mbox{}\par\noindent{\bfseries             \emph{Remark}\/}:\normalfont}{\par}
\newenvironment{defin}{\par\mbox{}\par\noindent\bfseries \emph{\Pointinghand\     }\normalfont}{\par}
\setcounter{toc**strong text**depth}{2}
\pdfcompresslevel=9
\setstretch{1.0} %vertical stretch
\usepackage{fontspec}
\setmainfont[BoldFont       = AvenirNextRoundedPro-Bold.otf , ItalicFont     =AvenirNextRoundedPro-Italic.otf]{AvenirNextRoundedPro-Reg.otf}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{multirow}
\usepackage{array}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{euler}
\usepackage[euler-digits,euler-hat-accent]{eulervm}
\usepackage[labelfont=bf]{caption}
\usepackage{wrapfig}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[english]{babel}
\usepackage{titlesec} \titleformat{\chapter}[display]{\bfseries\huge}{\filleft\Large\chaptertitlename~\thechapter}{1ex}{\vspace{1ex}\filright}[\vspace{0.5ex}\titlerule]
\usepackage{float}
\usepackage{etoolbox} \makeatletter \patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{} \renewcommand*\l@figure{\@dottedtocline{1}{2em}{6em}} \let\l@table\l@figure  \makeatother % default for 3rd arg: 2.3em - for list of figures and tables


I also use TexMaker. I do not know how relevant it is, but here my document language is set to English (even if it's not the language I write in, in that document, but it isn't a problem seemingly). What I also saw is that, if I remove babel and the references, I can rename my ToC and LoF, LoT. But I need the references though. Any tip would be very welcome!

Edit: I cannot provide text data from my project, because it is confidential. Here's what I can provide from the main document. Here is what I can include more.

\begin{document}
\include{02_front}
\setcounter{page}{0}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\listoftables
\newpage
\setcounter{page}{0}
\pagenumbering{arabic}
\chapter{blabla} \section{test é è åøæ î}
\appendix
\bibliographystyle{plain}
\bibliography{80_refs}
\end{document}


Also, I actually finished writing my thesis but I need to summarize it briefly in another language, am would be extremely unwilling to test and remove packages that "might be" not very useful. I literally only have to change these names of ToC, LoF, ToF and references.

• You show a bunch of packages but not a line of real code ...
– user31729
Nov 1 '15 at 16:19
• See this answer: tex.stackexchange.com/questions/28516/… And I suggest that you show us a code example that has only the packages necessacry to reproduce the problem. Nov 1 '15 at 16:24
• hi, I already saw that example, doesn't work :S. I tried to include some more code but I can't include much more than that Nov 1 '15 at 16:39
• @alexanzi: Your snippets are to be glued together by us, I assume? \include statements are useless unless we don't have the relevant file :-(
– user31729
Nov 1 '15 at 16:42
• @alexanzi -- instead of showing an \include statement, you could input dummy text with a \chapter and a \section that would produce a toc. Nov 1 '15 at 16:43

I tried to correct some issues, but not all of course.

The commands

\renewcommand{\contentsname}{My nice list of contents}
\renewcommand{\listfigurename}{My nice list of figures}
\renewcommand{\listtablename}{My nice list of table}


work, regardless whether babel is used or not, at best used right before \begin{document} or wrapped in \AtBeginDocument{...}.

Another option could be using \settocname etc. from tocbibind, I did not use that here!

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{fourier}
\usepackage{marvosym}
\usepackage{graphicx}
\usepackage[margin=2.5cm]{geometry}
\usepackage{rotating}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{url}
\usepackage{natbib}
\usepackage{setspace}
\newenvironment{remark}{\par\mbox{}\par\noindent{\bfseries             \emph{Remark}\/}:\normalfont}{\par}
\newenvironment{defin}{\par\mbox{}\par\noindent\bfseries \emph{\Pointinghand\     }\normalfont}{\par}
\setcounter{tocdepth}{2}
%\pdfcompresslevel=9
\setstretch{1.0} %vertical stretch
\usepackage{fontspec}
%\setmainfont[BoldFont       = AvenirNextRoundedPro-Bold.otf , ItalicFont     =AvenirNextRoundedPro-Italic.otf]{AvenirNextRoundedPro-Reg.otf}
%\defaultfontfeatures{Mapping=tex-text}
\usepackage{multirow}
\usepackage{array}
\usepackage{booktabs}

\usepackage{ragged2e}
\usepackage{euler}
\usepackage[euler-digits,euler-hat-accent]{eulervm}
\usepackage[labelfont=bf]{caption}
\usepackage{wrapfig}
\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage[english]{babel}
\usepackage{titlesec} \titleformat{\chapter}[display]{\bfseries\huge}{\filleft\Large\chaptertitlename~\thechapter}{1ex}{\vspace{1ex}\filright}[\vspace{0.5ex}\titlerule]
\usepackage{float}
\usepackage{etoolbox}

\makeatletter \patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{} \renewcommand*\l@figure{\@dottedtocline{1}{2em}{6em}} \let\l@table\l@figure  \makeatother % default for 3rd arg: 2.3em - for list of figures and tables
\usepackage{background}
\definecolor{textcolor}{HTML}{000000}
\SetBgColor{textcolor}
\SetBgOpacity{0.3}\SetBgAngle{90}
\SetBgPosition{current page.center}
\SetBgVshift{-0.33\textwidth}
\SetBgScale{1.8}
\SetBgContents{\sffamily\Text} %for confidential

\renewcommand{\contentsname}{My nice list of contents}
\renewcommand{\listfigurename}{My nice list of figures}
\renewcommand{\listtablename}{My nice list of table}

\begin{document}
%\include{02_front}
\setcounter{page}{0}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\listoftables
\newpage
\setcounter{page}{0}
\pagenumbering{arabic}
\chapter{blabla} \section{test é è åøæ î}
\appendix
\bibliographystyle{plain}
\bibliography{80_refs}
\end{document}

• actually it worked, thanks ! Installing and changing the language package to babel worked as well, but well :p Thanks a lot ! Nov 1 '15 at 17:00
• The commands should be placed before calling \tableofcontents or \listoffiguresfor example, not after.
– s.k
Jun 25 '17 at 18:10
• @s.k: Which commands?
– user31729
Jun 25 '17 at 19:41
• The 3 first \renewcommand{} on top of your post.
– s.k
Jun 25 '17 at 20:08
• @s.k: You can see, that they are placed before \tableofcontents, can't you?
– user31729
Jun 25 '17 at 20:10
\renewcommand{\listfigurename}{Abbildungsverzeichnis}
\listoffigures


did the trick for me

• The accepted answer already mentions that. Jun 7 '19 at 7:38
• If all you want to do is use a different language: \usepackage[german]{babel} Apr 21 '20 at 11:10