2

I am using

\documentclass{amsart}
\usepackage{microtype}
\usepackage[bitstream-charter,cal=cmcal]{mathdesign}

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:


\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[bitstream-charter]{mathdesign}

\begin{document}
    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.
\end{document}

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

DCh
  • 268
  • 1
    Welcome to TeX.sx! Could you please extend your code snippet into a minimal working example (MWE) that reproduces the error? – cgnieder 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) – cgnieder 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
  • 1
    this looks like you should update microtype. – cgnieder 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
  • here is a full .log file http://dl.dropboxusercontent.com/u/4534615/min.log – DCh Apr 22 '13 at 21:22
  • I don't see any significant differences between your log and mine except for the error message. Someone else will have to help... – cgnieder Apr 22 '13 at 21:37
  • @David: Seems like your font setup is broken. You could try to remove and reinstall the charter package: tlmgr remove charter; tlmgr install charter. – Martin Schröder Apr 23 '13 at 17:43
  • Being Debian based, I can't really use tlmgr, http://tex.stackexchange.com/q/73116/29470
    Re-installing the corresponding package (http://packages.ubuntu.com/quantal/texlive-fonts-recommended) did not help.
    – DCh Apr 23 '13 at 18:00
  • Tried a different machine, same error. https://dl.dropboxusercontent.com/u/4534615/min2.log – DCh Apr 23 '13 at 20:57
  • That log shows the different machine using an even older microtype from 2007. You need to upgrade. – Andrew Swann Apr 24 '13 at 12:26

1 Answers1

1

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.

DCh
  • 268
  • 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 08: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