latex3 / unicode-math

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

math-style and version #475

Open hvoss49 opened 6 years ago

hvoss49 commented 6 years ago

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

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

euler

wspr commented 6 years ago

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.