latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
243 stars 28 forks source link

Code-level function for `\setmathfont` #403

Closed stone-zeng closed 6 years ago

stone-zeng commented 7 years ago

For some reasons (writing a new package), I need to redefine \setmathfont. However, at present \setmathfont is an xparse defined function and does not have a simple internal function.

fontspec package, however, gives a good example of using a code-level function:

\DeclareDocumentCommand \setmainfont { O{} m O{} }
  {
    \__fontspec_main_setmainfont:nnn {#1} {#2} {#3}
  }

Could you please add something like \__um__setmathfont:nnn?

stone-zeng commented 6 years ago

I have made a PR (#405).