wspr/fontspec — Issue #122: corrupted NFSS tables with siunitx
Author: leingang
Created: 2011-12-30 20:03:57+00:00
State: open

I'm using the `siunitx` package for typesetting units. All has been going well until I used my first micrometer, which normally is abbreviated with a lowercase Greek mu.

Here is the minimal example I have found:

\documentclass{article}
\usepackage{siunitx}
\usepackage{fontspec}
%\setmainfont{Arial} % error line
\begin{document}
\SI{200}{\micro\meter}
\SI{10}{\square\micro\meter\per\hour}
\end{document}

If I un-comment-out line 4, I get this warning and error:

LaTeX Font Info: Try loading font information for TS1+Arial(0) on input line
6.
LaTeX Font Info: No file TS1Arial(0).fd. on input line 6.
LaTeX Font Info: Font shape `TS1/Arial(0)/m/n' undefined
(Font) using `TS1/cmr/m/n' instead
(Font) for symbol `c_siunitx_mu_tl' on input line 6.
LaTeX Font Info: Try loading font information for TS1+cmr on input line 6.

(/usr/local/texlive/2010/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
! Corrupted NFSS tables.
wrong@fontshape ...message {Corrupted NFSS tables}
error@fontshape else let f...
l.7 \SI{10}{\square\micro\meter\per\hour}

If I ignore the error the document still compiles and looks as I expected, although I'm not sure if the proper Greek font is used (I'm haven't specified one in the document). The really weird thing is that if I comment out *either one* of the two invocations of `\SI` the document compiles without error.