3

I am using the document class memoir and would like to have the "Content"-title of the \tableofcontents in the style of a section instead of a chapter. Is that possible?

To be precise, I would like to do the same for \listoffigures, \listoftables and \listoftheorems (from the thmtools package). But I guess the answer for \tableofcontents can simply be adjusted for these.

Here is an MWE that generates a table of contents with the chapter style heading.

\documentclass{memoir}

\begin{document}

    \tableofcontents

    \chapter{My}
    \section{Awesome}
    \section{Table}
    \chapter{Of}
    \section{Contents}
    \section{Is}
    \section{Here}

\end{document}

EDIT: I would like to have the title style of \tableofcontents or \listoffigures to be in the style of a section. But the appearance within the table of contents (i.e. the words "Content" or "List of Figures") should be normally as a chapter (without numbering). I hope this clarifies any confusion.

1 Answer 1

4

If it is just the appearence of the title of \tableofcontents, then you can redefine \@tocmaketitle:

\makeatletter
\renewcommand\@tocmaketitle{%
  \section*{\contentsname}
  \tocmark%
  \@afterheading}
\makeatother

Similar for \listoffigures (lof) etc. Remember \listoftheorems use \listoffigures internally.

4
  • Oh. I think we're solving different problems. Is the OP's question the style of the Contents title or the style (i.e., level) of the Contents entry in the actual TOC list...
    – Jon
    Commented Oct 30, 2017 at 14:07
  • @jon hmm, might be. Then it is even easier in memoir
    – daleif
    Commented Oct 30, 2017 at 14:25
  • I added an EDIT to my question to clarify that. @daleif's solution seems to do exactly what I want.
    – Tim
    Commented Oct 31, 2017 at 8:00
  • 1
    @daleif If this is very easy (short) in memoir, it might be nice to document how this is done, since people may land on this page looking for just that information. Commented Dec 19, 2017 at 7:46

You must log in to answer this question.

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