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 using


Sometimes \mathsf{...} produces

 pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.

Appears when the \mathsf is typeset in the end of a line and only with certain characters (e.g. P,..).

So, which fonts does mathdesign use for \mathsf? Should I replace it with other font? Suggestions? Solutions?

minimal 'working' example:


    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sdf$\mathsf P$ elementum, elit in varius viverra, mauris augue cursus purus, vel ullamcorper nisi orci pretium nunc.

This example is minimal, i.e. dropping \usepackage[T1]{fontenc} avoids the error.

share|improve this question

closed as too localized by lockstep, Andrew Swann, Martin Schröder, Claudio Fiandrino, zeroth Apr 24 '13 at 14:05

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! Could you please extend your code snippet into a minimal working example (MWE) that reproduces the error? – clemens Apr 22 '13 at 17:33
Your MWE runs without errors on my machine (microtype 2013/03/13 v2.5 and mathdesign 2006/01/29 v1.55) – clemens Apr 22 '13 at 18:30
Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=pdflatex 2012.12.23), fontenc 2005/09/27 v1.99g, microtype 2010/01/10 v2.4, mathdesign 2006/01/29 v1.55 – DCh Apr 22 '13 at 18:50
this looks like you should update microtype. – clemens Apr 22 '13 at 19:25
fontenc 2005/09/27 v1.99g, microtype 2013/03/13 v2.5, mathdesign 2006/01/29 v1.55 - the same error massage – DCh Apr 22 '13 at 21:07
up vote 1 down vote accepted

Although closed, I still think this question may be helpful.

This has nothing to do with microtype.

\usepackage[bitstream-charter]{mathdesign} does not provide sans serif font and the default is used. Type1 version of default font may not be installed (this seems to be the case in standard TeX setup), it is in cm-super

See also Sans font to go with Bitstream Charter and Custom typeface for sans serif in math mode.

share|improve this answer
I don't think that moving around the call of fontenc does anything. The fact is that you don't have the Type1 version of the default sans serif font, which is available with the CM-Super fonts (to be installed). – egreg Apr 24 '13 at 8:33
I can not confirm that. \usepackage[T1]{fontenc} \usepackage[bitstream-charter]{mathdesign} ... S\textsf{S}$\mathsf{S}$ gives this \usepackage[bitstream-charter]{mathdesign} \usepackage[T1]{fontenc} ... this Installing cm-super solves the issue though. (But the sans serif font is still in wrong scale.) Seems like cm-super font is not included in 'standard' TeX setup.. Could someone explain what is going on and how to properly use sans serif fonts with mathdesign? – DCh Apr 24 '13 at 13:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.