5

I've been searching the web for some time now, trying to find an answer as to why this doesn't work. I'm trying to change the title of the Table of Contents, using the memoir class. Below is a MWE

\documentclass[11pt,a4paper]{memoir}

\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}

\addto\captions\english{%
  \renewcommand\contentsname{Table of Contents}%
}

\begin{document}

\tableofcontents*

\chapter{Test}
\lipsum[1]
\chapter{Test}
\lipsum[1]
\chapter{Test}
\lipsum[1]

\end{document}

As far as I understand the above will change the title of \tableofcontents* from Contents to Table of Contents. Yet nothing happens. No error or change happens. The output can be seen here. What am I doing wrong? I simply can not find the error.

Version is:

rbnielsen@wopr ~/Desktop $ apt-cache show texlive-full
Package: texlive-full
Source: texlive-base
Version: 2012.20120611-5
{snip}
3
  • 1
    Why not use only \renewcommand\contentsname{Table of Contents}?
    – Sigur
    Nov 4, 2013 at 16:00
  • @Sigur because of babel
    – daleif
    Nov 4, 2013 at 16:04
  • Use \addto\captionsenglish{\renewcommand\contentsname{Table of Contents}}. § 3.1 Basic Macros of the babel manual describes a command in the form of \captions<lang>.
    – jon
    Nov 4, 2013 at 16:12

1 Answer 1

5

Typo: it is called \captionsenglish not \captions\english

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .