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 am using the package memoir and I redefined the fonts related to the chapters headings:

\renewcommand\chapnamefont{\normalfont\Large\sffamily\scshape\raggedleft\so} 
\renewcommand\chaptitlefont{\normalfont\huge\sffamily\bfseries\scshape\color{darkBlue}}   

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 ...

share|improve this question
    
Very nice chapter headings by the way. What do you use for that? –  ℝaphink Sep 2 '11 at 13:53
    
It's one of the available style in memoir –  Cedric H. Oct 12 '11 at 7:10

3 Answers 3

up vote 6 down vote accepted

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

share|improve this answer

The commands for the TOC entries are different to the commands for the headings. To get sans serif fonts in the TOC, redefine the \cftXfont commands, where X stands for chapter, section etc.

This will achieve sans serif chapter and section entries in the TOC:

\renewcommand{\cftchapterfont}{\normalfont\sffamily}   
\renewcommand{\cftsectionfont}{\normalfont\sffamily}   
share|improve this answer

To make the TOC sans serif, just add the command \textsf, like this: \textsf{\tableofcontents}}

share|improve this answer
1  
The font might be reset inside \tableofcontents by memoir. Anyway, I would recommend to use {\sffamily\tableofcontents}` instead. –  Martin Scharrer Oct 12 '11 at 0:21

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.