I'm writing a document in Spanish (with babel), but the name of \tableofcontents
is still "Contents". I've tried with \renewcommand{\contentsname}
, \addto\captionsspanish
and a lot of different combinations but it doesn't work.
I don't know what is happening, because the name of the bibliography is in Spanish, so babel is working properly there.
This is the code I'm using:
\documentclass[11pt,aps,prd,preprintnumbers,nofootinbibn,onecolumn]{revtex4}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{amssymb}
\usepackage[utf8x]{inputenc}
\usepackage[spanish]{babel}
\usepackage{shapepar}
\usepackage{amsmath}
\usepackage{array}
\usepackage{fancybox}
\usepackage{multirow}
\usepackage{appendix}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{caption}
\usepackage{float}
\usepackage{braket}
\usepackage{amsfonts}
\usepackage{mathrsfs,amsmath}
\usepackage{chemmacros}
\usepackage{bbold}
\usepackage{framed}
\usepackage[usestackEOL]{stackengine}
\usepackage{lipsum}
\usepackage{blindtext}
\usepackage{soul}
\newcommand*\dif{\mathop{}\!\mathrm{d}}
\newcommand*\Dif[1]{\mathop{}\!\mathrm{d^#1}}
\hyphenation{ALPGEN}
\hyphenation{EVTGEN}
\hyphenation{PYTHIA}
\addtolength{\textwidth}{0cm}
\addtolength{\hoffset}{0cm}
\addtolength{\textheight}{1.6cm}
\addtolength{\voffset}{0cm}
\DeclareMathOperator{\Tr}{Tr}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\usepackage{geometry}\geometry{a4paper, total={160mm,247mm}, left=25mm, top=25mm, }
\usepackage{setspace}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\title{\huge{Título}\\[0.4cm]}
\thispagestyle{empty}
\begin{abstract}
\begin{center}
\today\\
\vspace{1cm}
\hspace{1em}{\bf Autor:}\\
\vspace{0.1cm}
\hspace{1em}NAME $^\ddagger$\\
\vspace{0.8cm}
{\it Universidad}\vspace{2em}
\end{center}
\hline\vspace{1em}
{\bf Abstract:} \vspace{-0.5em}
\singlespacing
\small{...}\vspace{2em}\hline \vspace{1em}
\scriptsize{$^\ddagger$ E-mail: \texttt{...}
\end{abstract}
\clearpage
\maketitle
\newpage
\thispagestyle{empty}
\spacing{2}
\begin{quotation}
\tableofcontents
\end{quotation}
\section{Introducción}
\setcounter{page}{1}
\begin{thebibliography}{99}
\bibitem{1}
...
\end{thebibliography}
\end{document}
Thank you.
\usepackage{...}
at the beginning, that's awful.... You're loading some packages,epsfig
is outdated and why manipulating layout parameters whereas you usegeometry
already? – user31729 Jan 8 '17 at 10:16\small
andhuge
do not take an argument so\small ...
not\small{...}
commands\bf
and\it
are deprecated and don't loadepsfig
unless you need to emulate a document using a package from 1990. – David Carlisle Jan 8 '17 at 10:25