unicode-math
unicode-math copied to clipboard
math-style and version
trafficstars
Description
The optional argument math-style=upright also depends to another font, here XITS.
Is this the intended behaviour that the option is set global?
Check/indicate
- [x] Relevant for XeTeX
- [x] Relevant for LuaTeX
- [x] Issue tracker has been searched for similar issues?
- [ ] Links to <tex.stackexchange.com> discussion if appropriate
Minimal example demonstrating the issue
\documentclass{standalone}
\usepackage{unicode-math}
\setmathfont[math-style=upright,version=Euler]{euler.otf}
\setmathfont[version=XITS]{XITS Math}
\begin{document}
\mathversion{Euler}
$xy \sqrt[a]{b}$
\mathversion{XITS}
$xy \sqrt[a]{b}$
\end{document}
Further details
up-to-date TL2018

I would say not, thanks for the report. math-style predates version so I wouldn't have considered the interaction. (I think there are quite a few similar problems with the version feature.)
Unfortunately I won't have the chance to look into this until later in the year... I guess in the mean time that the math-style can be explicitly set each time? Alternatively in might work to run \unimathsetup{math-style=upright} after the final \setmathfont.