[Tex/LaTex] Changing the font in the ToC

fontstable of contents

I am using the package memoir and I redefined the fonts related to the chapters headings:


But altough I am using a sans-serif font for the chapters, the ToC use a serif version of LM. That's not a major problem except that I have this warning:

LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined

So Latex is complaining that it can't find a small-caps and bold version of LM sans-serif.

alt text

And the table of content:

alt text

So I am a bit confused:

  • My chapters appear as I want (sans serif font)
  • The ToC looks like it is using serifed fonts
  • Yet it is complaining not to find a SS font
  • I have this strange problem with viii
  • LM SS seems to have a SC bold version: Latex font catalogue

It seems that I don't know enough about Latex and fonts …

Best Answer

LaTeX tells you that it is find a font. It also tells you which font it uses instead:

 LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined
 (Font)              using `T1/lmss/bx/n' instead on input line 8.

Substituations are normal. As you can see here a sans serif font is used as substitute.

\chapnamefont defines the font of the vertical chapter beside the large "2" not the font in the toc.

For the problem with "viii": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft

Related Question