21

When I try to do something like \section{Heading with \textsc{small caps}}, the compiler complains with "LaTeX Font Warning: Some font shapes were not available, defaults substituted." and replaces the small-caps with normal test.

Any suggestions on how to fix this?

1
  • Which document class are you using? Are you loading any special font packages? The warning means that small caps are not available for the section font. You might try to use {\normalfont\scshape text} instead, but it might not look good. Commented May 9, 2011 at 22:28

1 Answer 1

20

The standard Computer Modern fonts don't contain bold small caps. You could use the CM-Super fonts instead; add to the preamble

\usepackage[T1]{fontenc}
4
  • 2
    AFAIK, to use the CM-Super what you actually need to do is install cm-super, and you don't really need \usepackage[T1]{fontenc} to use cm-super AFAIK, although it's a good idea for other reasons, and with T1 fontenc the fonts being used are not CM fonts but actually EC fonts. (I may be wrong, please correct me.) Commented May 10, 2011 at 6:42
  • @ShreevatsaR: my system (TeX Live2010) comes with cm-super installed. And \usepackage[T1]{fontenc} changes from cm to cm-super. I don't know what's the situation with other distributions (MiKTeX). Commented May 10, 2011 at 11:17
  • 2
    cm-super was not bundled with my distribution and the solution did not work for me. Says T1/cmss/bx/sc is undefined.
    – MaPePeR
    Commented Jul 18, 2013 at 12:24
  • It seems like CM-Super is not installed with my distribution either (MacTeX-2013, which includes the complete TeX Live 2013 distribution). When trying to use \textsc in a section header, I get a similar warning: Font shape 'T1/lmr/bx/sc' undefined.
    – Nagel
    Commented Jun 7, 2014 at 7:18

You must log in to answer this question.

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