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}
\pagestyle{headings}
\usepackage{marvosym}
\usepackage[pdftex]{graphicx}
\usepackage[margin=2.5cm]{geometry}
\usepackage{rotating}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{url}
\usepackage{natbib}
\usepackage{setspace}
\linespread{1.5}
\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}
\usepackage[colorlinks=true, a4paper=true, pdfstartview=FitV,
linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
\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{hyperref} \hypersetup{ hidelinks, }
\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[nottoc]{tocbibind} %Adds "References" to toc
\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} \newcommand\Text{c\quad o\quad n\quad f\quad i\quad d\quad e\quad n\quad t\quad i\quad a\quad l} \SetBgColor{textcolor}\SetBgOpacity{0.3}\SetBgAngle{90} \SetBgPosition{current page.center} \SetBgVshift{-0.33\textwidth} \SetBgScale{1.8} \SetBgContents{\sffamily\Text} %for confidential
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.
Best Answer
I tried to correct some issues, but not all of course.
The commands
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. fromtocbibind
, I did not use that here!