4

Is there a way to remove the chapter numbers from a memoir class table of contents? I would like to have the name of the chapter followed by the page number on which it occurs. It would be nice to have dot leaders as well. The memoir manual says:

In the default ToC typesetting only the more minor entries have dotted leader lines between the sectioning title and the page number. The class provides for general leaders for all entries. The 'dot' in a leader is given by the value of \cftdot. Its default definition is \newcommand{\cftdot}{.} which gives the default dotted leader. By changing \cftdot you can use symbols other than a period in the leader. For example

\renewcommand{\cftdot}{\ensuremath{\ast}}

will result in a dotted leader using asterisks as the symbol.

Putting the command \cftdot in the preamble does nothing; putting it before \tableofcontents does nothing; putting it after \tableofcontents does nothing.

  • What about the chapter numbers on the actual chapter page? – Werner Jun 15 '15 at 20:15
  • They can stay. (added text to meet requirement that "Comments must be at least 15 characters in length.) – GM Jones Jun 15 '15 at 20:26
6

You should update two macros in order to achieve your desired output:

enter image description here

\documentclass{memoir}

\renewcommand{\chapternumberline}[1]{}% Gobble chapter number in ToC
\renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapter dots in ToC
\begin{document}

\tableofcontents

\chapter{A chapter}

\end{document}

\chapternumberline formats the number associated with the \chapter entry in the ToC, while \cftchapterdotsep (default is \cftnodots) should default to \cftdotsep.

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.