unicode-math 및 lualatex를 사용하는 제곱근의 높이가 잘못되었습니다.

unicode-math 및 lualatex를 사용하는 제곱근의 높이가 잘못되었습니다.

이것이 내가 보고 있는 것입니다:여기에 이미지 설명을 입력하세요 \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}

(이렇게 값을 하나씩 설정하는 것은 당연히 좋은 방법이 아니며 egreg의 솔루션이 더 좋지만 이 값이 출력에 어떤 영향을 미치는지 보는 것은 흥미롭습니다.)

관련 정보