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

`a` and `\symnormal{a}` make differrent result #617

Closed FlatLanguage closed 8 months ago

FlatLanguage commented 11 months ago

Description

When set font with range option, \symnormal{a} follows this setting, but behavior of a is strange.

Minimal example demonstrating the issue

\documentclass{article}

\usepackage{amsmath, unicode-math}

\setmathfont{latinmodern-math.otf}
\setmathfont[range={`𝜕}]{STIXTwoMath-Regular.otf}
\setmathfont[range={`𝑎}]{FiraMath-Regular.otf}

\begin{document}
\[a\symnormal{a}\partial\symnormal{\partial}\]
\end{document}

バグ1

\documentclass{article}

\usepackage{amsmath, unicode-math}

\setmathfont{latinmodern-math}
\setmathfont[range={`∂, `𝜕}]{STIXTwoMath-Regular}
\setmathfont[range={`a, `𝑎}]{FiraMath-Regular}

\begin{document}
\[a\symnormal{a}\partial\symnormal{\partial}\]
\end{document}

バグ2