
私が見ているのは次のようなものです:
\sqrt{11} の平方根記号の高さの不一致に注意してください。これは、 でコンパイルした場合にのみ発生するようです
lualatex
。
これが私の MWE です:
\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont[]{TeX Gyre Pagella Math}
\setmathfont[range={cal}]{Latin Modern Math}
\begin{document}
Note well:
\begin{equation*}
x = \sqrt{11}\sqrt{19}
\qquad
y = \frac{\sqrt{11}\sqrt{19}}{26}
\end{equation*}
\end{document}
これはバグだと思いますが、実際にそうなのか、またそうであればどのように報告すればよいのかわかりません。
答え1
これはオプションの既知の「機能」ですrange
。メインのフォントを最後の数学フォントとして再設定し、それをいくつかの記号の範囲に選択することで、これを修正できます。
の著者はunicode-math
それを認識しています。
\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont[]{TeX Gyre Pagella Math}
\setmathfont[range={cal}]{Latin Modern Math}
\setmathfont[range=\int]{TeX Gyre Pagella Math}
\begin{document}
Note well:
\begin{equation*}
x = \sqrt{11}\sqrt{19}
\qquad
y = \frac{\sqrt{11}\sqrt{19}}{26}
\end{equation*}
\end{document}
答え2
ルートの高さに問題があるだけでなく、よく見るとルートの水平線が間違っており、分数線も細すぎることがわかります。egreg が書いたように、範囲オプションに問題があります。最後の数式フォントは重要な数式定数を設定します。この場合、問題は次の例でわかるように\Umathradicalrule
、にあります。\Umathfractionrule
\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont[]{TeX Gyre Pagella Math}
\makeatletter\check@mathfonts \makeatother
\edef\textstylerulewidth{\the\Umathradicalrule\textstyle}
\edef\displaystylerulewidth{\the\Umathradicalrule\displaystyle}
\edef\displaystylefraction{\the\Umathfractionrule\displaystyle}
\setmathfont[range={cal}]{Latin Modern Math}
\begin{document}
\makeatletter\check@mathfonts \makeatother
\Umathradicalrule\textstyle=\textstylerulewidth
\Umathradicalrule\displaystyle=\textstylerulewidth
\Umathfractionrule\displaystyle=\displaystylefraction
Note well:
\begin{equation*}
x = \sqrt{11}\sqrt{19}
\qquad
y = \frac{\sqrt{11}\sqrt{19}}{26}
\end{equation*}
\end{document}
(このように値を 1 つずつ設定するのは当然ながら適切な方法ではなく、egreg のソリューションの方が優れていますが、この値が出力にどのように影響するかを確認するのは興味深いと思います。)