TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

In this answer, I set the \skewchar of a font, but I think I don't do it in the right way. The problem is that it's a math font, and those seem to get initialized only when they are used, namely when the first $, \( etc. occurs. (Is this correct?) So for example, just putting

\skewchar\csname OT1/cmss/m/it/10.95\endcsname=127

in the preamble doesn't work; I get

! Missing font identifier.
<to be read again>

I just played around a bit and used \check@mathfonts to initialize the fonts before the \skewchar command, but this seems like cheating to me. Moreover, this only initialized the sizes 6, 8 and 10.95.

My feeling is that the \skewchar command should be invoked at initialization time. Is this the correct approach, and yes, how do I implement that?

share|improve this question
up vote 5 down vote accepted
\DeclareFontFamily{OML}{cmss}{\skewchar\font127 }

should work. You can also put \skewchar\font127 into the last parameter of the \DeclareFontShape macro.

\DeclareFontShape{OML}{cmss}{m}{it}{<-> cmss8t}{\skewchar\font127}
share|improve this answer

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.