unicode-math icon indicating copy to clipboard operation
unicode-math copied to clipboard

setting up a math version breaks the default math

Open u-fischer opened this issue 6 years ago • 1 comments

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}

image

u-fischer avatar Jul 18 '19 09:07 u-fischer

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

hvoss49 avatar Jul 18 '19 11:07 hvoss49