[XeTeX] How to mix math fonts?

George N. White III gnwiii at gmail.com
Fri Jul 8 16:21:29 CEST 2011


On Thu, Jul 7, 2011 at 10:08 AM, Ulrike Fischer <news3 at nililand.de> wrote:

> Am Thu, 7 Jul 2011 12:13:21 +0200 schrieb Mojca Miklavec:
>
>
>> Thanks a lot for the answer. Actually, the looping itself is not a
>> problem. I was trying to modify Will Robertson's document
>> (http://mirrors.ctan.org/macros/latex/contrib/unicode-math/unimath-symbols.pdf)
>
>> I'm still trying to decipher Ulrike's answer (bearing in mind that I
>> don't speak any latex 3 at all).
>
> You don't need to much about latex 3, only that you activate the
> catcodes with \ExplSyntaxOn. The more important knowledge you need
> is how to define a mathversion. I just tried my code with
> unimath-symbols. It seems to work fine. I attach the new version.
>
> The glyphs of the second font are inserted with \SYMBUF. Attention:
> if you want to change the definition of command you must do it in
> two places (in the \mathaccent section it has a different
> definition).
>
> While testing I found out that \Cap and Cup give different results.
> I would say XITS is wrong:

Yes, in a charmap tool like babelmap, U+22D3 DOUBLE UNION and
U+22D2 DOUBLE INTERSECTION are confused (standing upside down?),
but blame STIXGeneral -- XITS just inherits the mistake.

> \documentclass{article}
> \usepackage{unicode-math}
>
> \begin{document}
> \setmathfont{Asana Math}
> $\Cap \Cup$
> \setmathfont{XITS Math}
> $\Cap \Cup$
> \end{document}
>

-- 
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia


More information about the XeTeX mailing list