[XeTeX] How to mix math fonts?

Ulrike Fischer news3 at nililand.de
Thu Jul 7 15:08:38 CEST 2011

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

While testing I found out that \Cap and Cup give different results.
I would say XITS is wrong:


\setmathfont{Asana Math}
$\Cap \Cup$
\setmathfont{XITS Math}
$\Cap \Cup$

Ulrike Fischer 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unimath-symbols-two-fonts-uf.ltx
Type: application/octet-string
Size: 7595 bytes
Desc: Attached file: unimath-symbols-two-fonts-uf.ltx
URL: <http://tug.org/pipermail/xetex/attachments/20110707/e77aa83b/attachment-0001.bin>

More information about the XeTeX mailing list