Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

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.

share|improve this answer
    
works like a charm, thanks; apparently, I can accept in 4 minutes! –  Carl Jan 13 '12 at 21:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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