7

I need to change the way "Contents" appears in \tableofcontents in a revtex4-1 document.

Other answers indicate \renewcommand{\contentsname}{changes!}, however when I uncomment any of those in

\documentclass[]{revtex4-1}

\def\title{A title}
\def\author{Me}

%\renewcommand{\contentsname}{T\lowercase{able of} C\lowercase{ontents}}
%\renewcommand{\listfigurename}{L\lowercase{ist of} F\lowercase{igures}}
%\renewcommand{\contentsname}{T\lowercase{able of} C\lowercase{ontents}}

\begin{document}
\maketitle
\newpage

\section*{A\lowercase{cknowledgments}}
none!
\newpage

\section*{A\lowercase{bstract}}
\begin{center}
{``\title''}\\
\end{center}
\vspace{.3cm}
Some text.
\newpage

\setlength{\baselineskip}{12pt}
\tableofcontents
\clearpage
\setlength{\baselineskip}{20pt}

\makeatletter
\let\toc@pre\relax
\let\toc@post\relax
\makeatother 

\listoffigures
\newpage

\listoftables
\clearpage

\section{\label{sec_defs}D\lowercase{efinitions}}
\end{document}

I get "Latex Error: \contentsname undefined" (or similar for \listfigurename).

Help?

8

The revtex4-1 class uses the non-standard macros \tocname, \lofname, and \lotname to name the Table of Contents and the related lists, so you have to redefine these macros.

1
  • works like a charm, thanks; apparently, I can accept in 4 minutes! – Carl Jan 13 '12 at 21:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.