unicode-math
unicode-math copied to clipboard
setting up a math version breaks the default math
Short description
When defining only a math version, the default math breaks. It works again if it is setup explicitly.
- Relevant for XeTeX
- Relevant for LuaTeX
- Issue tracker has been searched for similar issues
Minimal example demonstrating the issue
\documentclass{article}
\usepackage{unicode-math}
%\setmathfont{Latin Modern Math} %solves the problem.
\setmathfont{TeX Gyre Pagella Math}[version=bold]
\begin{document}
$ \hat f(t) = \int_0^t \hat f'(x)\, dx$
\mathversion{bold}
$ \hat f(t) = \int_0^t \hat f'(x)\, dx$
\end{document}

That is the default behavior since the last update. If you define anything else than the default math font you have to define first the default:
\setmathfont[range=it]{Latin Modern Math}
will also through an error.
\setmathfont{XITS Math}
\setmathfont[range=it]{Latin Modern Math}
will work