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 am getting the following font warning using memoir:

LaTeX Font Warning: Font shapre `T1/cmss/bx/sc`undefined (Font) using `T1/cmss/bx/n'instead on input line 14

where line 14 points to where I have \mainmatter in my source file.

Here is the source code






which should select the Palatino font.


If I use the sniplet below from egreg's answer:

\sbox0{\sffamily x}

the warning goes away, but I get some font artifacts:

      enter image description here

With this, is there a way to force \chapterstyle{madsen} to use palatino?

share|improve this question
You're requesting somewhere a small caps boldface sans serif font which doesn't exist in the Computer Modern Sans Serif family. It's a glitch of the chapter style, it seems. – egreg Mar 25 '12 at 22:22
Moreover, \fontfamily{ppl} is not the correct way to define Palatino as the default font: \usepackage{mathpazo} is the right way. – egreg Mar 25 '12 at 22:29
Thanks @egreg. The warning goes away when I comment out the line \chapterstyle{madsen}, so I guess, from your comment, that the glitch is on that style. In your experience, is this something that may require a big fix? – Amelio Vazquez-Reina Mar 25 '12 at 23:00
why would it select the palatino font without calling the palatino package? When compiling it with \usepackage{palatino}, it only yells some Overfull \hbox warnings. – henrique Mar 26 '12 at 2:02
up vote 5 down vote accepted

It's an innocuous warning. If you really want it to disappear, then write

\sbox0{\sffamily x}

The first line loads the sans serif family, the second one declares that the substitution which triggers the warning should be silent.

Note that in order to get Palatino as the main text font you should load


(texdoc psnfss will shed some light on this).

For getting the chapter heading all in Palatino, use this code:



\makechapterstyle{madsenserif}{% requires graphicx package
    \chapnamefont \phantom{\printchaptername \chapternamenum%
          \chapnamefont\bfseries 1}%
    \afterchapternum %

share|improve this answer
Thanks @egreg! The warning went away. Is there a way to force \chapterstyle{madsen} to use palatino? – Amelio Vazquez-Reina Mar 26 '12 at 13:50
@roseck Yes: say \usepackage{mathpazo} in the document preamble. – egreg Mar 26 '12 at 13:54
Thanks @egreg, I did that already (my code above reflects that change) but somehow the font of the chapter title didn't change. – Amelio Vazquez-Reina Mar 26 '12 at 13:55
@roseck That's what the style is supposed to do: the title is typeset in a sans serif font. – egreg Mar 26 '12 at 13:58
I see, so if I understand correctly, there is no easy way to make it look like the regular body text in my picture (i.e. make the chapter title use the serif palatino font). Is that correct? – Amelio Vazquez-Reina Mar 26 '12 at 14:02

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.