Here's an example that uses the mathdesign package to implement the Charter fonts:
\documentclass{standalone}
\usepackage[T1]{fontenc}
\usepackage[charter]{mathdesign}
\begin{document}
$H \quad \mathcal H \quad \mathscr H$
\end{document}
which produces this output:
According to this answer, I expected \mathcal
and \mathscr
to yield different results. How do I get fonts similar to these
while also using the Charter fonts. (This last image is borrowed from the answer cited above.)
Best Answer
The answer you cite is not specific to
mathdesign
and essentially shows the default for\mathcal
. Font packages may change it.With
mathdesign
,\mathcal
and\mathscr
are synonyms, unless the (undocumented) optioncal=cmcal
is passed to the package.Avoid
\mathcal H
and prefer\mathcal{H}
. Trust me.How to find the undocumented option?
The Charter font is managed with the subpackage
mdbch.sty
, which hasNot how I'd write it, but that's a different matter. It seems reasonable that
xmdcmsy
refers to the Computer Modern\mathcal
. Indeed,mdfont.def
haswhich essentially means the
cmsy
font is subject to a suitable scaling for making it compatible with the main font.OK, not it's a matter to look how to make
\if@MD@cmcal
return true. If we look for it inmathdesign.sty
, we findThis means that if the option
cal=cmcal
is passed, the conditional will return true. With nothing orcal=absolutelywhatever
the conditional will return false with\mathcal
and\mathscr
becoming synonyms.Actually also typing just
cal
would do, so you can save some keystrokes and sayWhy isn't this option mentioned in the manual? Who knows?