Consider the following MWE:





\chapter{$1+1=2$} % normal face everywhere
\chapter{$\mathbf{1+1=2}$} % bold face everywhere
\chapter[$4+4=8$]{$\mathbf{4+4=8}$} % bold face in title, normal face in toc and header


The three chapters all have math in their titles. Naturally, I want them to behave nicely, that is,

  • bold face when printed on the chapter title page,
  • bold face when printed in the table of contents,
  • normal face when printed in the header.

The first two conditions are easy to meet by using \mathbf in the chapter titles (as done for the second chapter), but then, the bold face also appears in the header. When using normal face in the optional argument title, it also disappears from the line in the table of contents.

How can I have the correct boldface/normalface behavior for math in chapter titles when using the book document class and fancyhdr?

  • You can use \boldmath; e.g., \chapter{\boldmath Chapter $1+1=2$}
    – user94293
    Jan 25, 2017 at 1:15

1 Answer 1


Use \protect\boldmath in your \chaper title (since it's a moving argument) and set \let\boldmath\relax as part of your fancyhdr construction:

enter image description here



\fancyhf{}% Clear header/footer
\renewcommand{\headrulewidth}{0pt}% Remove header rule





You must log in to answer this question.

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