latex3 / unicode-math

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

setting up a math version breaks the default math #526

Open u-fischer opened 4 years ago

u-fischer commented 4 years ago

Short description

When defining only a math version, the default math breaks. It works again if it is setup explicitly.

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}

image

hvoss49 commented 4 years ago

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