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'm using the memoir document class and the babel package and I need to change the size of the "Table of Contents" heading or at least to make it bold. Is it possible?

share|improve this question
    
The title of \tableofcontents in memoir is formatted as chapter title, that means the font size is larger and bold. –  Heiko Oberdiek Sep 16 '12 at 18:52
    
@HeikoOberdiek not necessarily; if one uses some of the predefined chapterstyles the chapter titles won't, for example, be bold. –  Gonzalo Medina Sep 17 '12 at 2:46

2 Answers 2

The ToC, LoF and LoT titles use the same format as the chapter titles, and will be typeset according to the current chapterstyle. This implies that the ToC, LoF, LoT titles might not be boldfaced and in a larger font for some chapterstyles; for example, using the dash style:

\documentclass{memoir}

\chapterstyle{dash}

\begin{document}

\tableofcontents*
\chapter{Test Chapter}
\section{Test Section}

\end{document}

one gets

enter image description here

You can modify the appearance of the ToC, LoT, LoF titles either by using a different chapterstyle for them, or by changing \printtoctitle, \printlottitle, \printloftitle. A little example with the dash style and a redefinition of \printtoctitle to use \huge and boldfaced font for the ToC title would be:

\documentclass{memoir}

\renewcommand\printtoctitle[1]{\huge\bfseries #1}
\chapterstyle{dash}

\begin{document}

\tableofcontents*
\chapter{Test Chapter}
\section{Test Section}

\end{document}

enter image description here

share|improve this answer

If you don't mind to add few extra lines, this would also do:

\documentclass{memoir}
\chapterstyle{dash}

\let\oldchaptitlefont\chaptitlefont
\def\contentstitlefont{\bfseries\Large}

\begin{document}

\renewcommand*{\chaptitlefont}{\contentstitlefont}
\tableofcontents*
\renewcommand*{\chaptitlefont}{\oldchaptitlefont}

\chapter{Test Chapter}
\section{Test Section}

\end{document}

Altough, not as clean as Gonzalo Medinas answer.

share|improve this answer

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.