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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I set up my toc to show parts in bold small caps, and then use a similar setup to show the beginning of references (such as bibliography and lists of figures etc.) and appendices. In the MWE, I use the same command (\addpart) for the two 'parts' Refefrences and Appendices, but only References is formatted as it should be. I cannot make Appendices be written in small caps and bold. Even when modifying the text directly locally, I can at most make it small caps, not in any way bold. Can anyone tell me how to do this?

Note: Before the Appendices in the actual document, I have a page like the one introducing parts, but not enumerated. It does not seem to influence the problem, as I cannot change the format of Appendices in the toc when this is not there, either. But if someone would come up with any solutions that influence this, you should know.

Most of the code is slightly modified versions of something that someone else were suggested here (I cannot find it now to give the writers credit...).

I use MiKTeX 2.7 for LaTeX

\documentclass[a4paper, 11pt, english]{report}
\usepackage{geometry, fancyhdr, fix-cm}

% Modifies chapters to appear like sections under parts that are added to the toc (a modified version of )
  \ifnum \c@secnumdepth >-2\relax
      Part \thepart: \textsc{#1}}%
   \interlinepenalty \@M
   \ifnum \c@secnumdepth >-2\relax
     \huge\bfseries \partname\nobreakspace\thepart
     \vskip 20\p@
   \Huge \bfseries \textsc{#2}\par}%

%Adds a ''part'' to the toc that is not numbered and does not have a page in the document


\part{First part}
\chapter{Chapter 1}


\chapter{First appendix}


enter image description here

share|improve this question
up vote 3 down vote accepted

The problem is with the line


which, since you are writing to the .toc file defines the "value" of \cftchapfont to the value of \cftsecfont. This causes the .toc file to contain

\renewcommand {\bfseries }{\normalfont }

So after incorporating the table of contents, all incantations to the "bold face" series becomes normal. I am not quite sure what you intended to do with your various incantations, but you probably also want to \protect\cftchapfont in the line I quoted above. (And likely similarly with the \setlength commands and their first arguments...)

But principally, I am quite confused as why you are passing all those formatting commands inside an \addtocontents; surely the whole point of loading tocloft is so you can configure the appearances without writing strange incantations into the .toc file?

It would be much cleaner if you replaced the definition of \addpart by


and separately invoke the formatting commands


which would compile to

enter image description here

share|improve this answer
Good reply: solved my specific problem and taught me something general I would not have figured out myself. Thanks – Camilla Jun 10 '13 at 12:55

Your Answer


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.