[texhax] Strange behavior of \mathop
Donald Arseneau
asnd at triumf.ca
Wed Nov 10 23:47:09 CET 2010
"Uwe Lueck" <uwe.lueck at web.de> writes:
> I discover that that bug report (whose original content I cannot see
> on the bugs database) seems not to be entirely correct.
> The bug occurs with \bf, \it, \sf, \tt, but not with \rm, try
The bug occurs with the loading of the font, for the first use. Since
rm fonts are pre-loaded (they are one of the main three math families)
the \rm command is immune.
The patch, which I eventually stuck in sansmath.sty, is
\def \@fontswitch #1#2{%
\ifmmode
\let \math at bgroup \relax
\def \math at egroup ##1{%
\let \math at bgroup \@@math at bgroup
\let \math at egroup \@@math at egroup
##1}%
#2\relax
\else
#1%
\fi
}
--
Donald Arseneau asnd at triumf.ca
More information about the texhax
mailing list