\small이 그룹(Lualatex)에 적용될 때 Stix Math Two의 왼쪽(\오른쪽) 문제

\small이 그룹(Lualatex)에 적용될 때 Stix Math Two의 왼쪽(\오른쪽) 문제

다음 MWE를 고려하십시오.

\documentclass[12pt]{article}
\usepackage{unicode-math}
\setmathfont{STIX2Math.otf}

\begin{document}
{\small Small size
\[
    \left(\frac{a}{b}\right)   \left(\frac{\frac{a}{b}}{\frac{a}{b}}\right)
\]
}

Normal size
\[
    \left(\frac{a}{b}\right) \left(\frac{\frac{a}{b}}{\frac{a}{b}}\right)
\]

\end{document}

여기에 이미지 설명을 입력하세요

컴파일하면 지시어가 포함된 첫 번째 구문에서 괄호가 올바르게 확장되지 않음을 알 수 있습니다 \small. 주석을 달면 \setmathfont{Stix Two Math}작동합니다. 따라서 이것은 stix 2 문제인 것 같습니다. 저는 완전히 업데이트된 LuaLatex(MacTeX 2017) 시스템을 사용합니다.

내 질문 a) 이것이 알려진 문제입니까? b) 이 문제를 투명하게 해결하려면 어떻게 해야 합니까?

(일부 lua 코드를 가지고 놀 계획이므로 XeLaTex로 전환할 수 없습니다.)

답변1

문제는 +ssty기본 크기보다 작은 크기에 사용되는 옵션에 있는 것 같습니다. ㅏ버그 보고서이미 Sourceforge에 제출되었습니다.

xetex다음은 or 로 컴파일하여 luatex다른 결과를 산출하는 예입니다 .

\input ifxetex.sty

\ifxetex
  \font\extsymbolsA="STIX Two Math/OT:script=math;language=DFLT;"
  \font\extsymbolsB="STIX Two Math/OT:script=math;language=DFLT;+ssty=0;"
\else
  \input luaotfload.sty
  \font\extsymbolsA="STIX Two Math:mode=base;script=math;language=DFLT;"
  \font\extsymbolsB="STIX Two Math:mode=base;script=math;language=DFLT;+ssty=0;"
\fi

\Udelcode`(="3 `(
\Udelcode`)="3 `)

\textfont3=\extsymbolsA
$$
\left(a\over b\right)
$$

\textfont3=\extsymbolsB
$$
\left(a\over b\right)
$$

\bye

출력xetex

여기에 이미지 설명을 입력하세요

출력luatex

여기에 이미지 설명을 입력하세요

문제는 옵션과 LuaTeX 또는 luaotfload.

그러나 이는 괄호에만 영향을 미치고 다른 구분 기호에는 영향을 미치지 않는 것 같습니다.

\documentclass[10pt]{article}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}

\begin{document}
{\small Small size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]
}

Normal size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]

\end{document}

여기에 이미지 설명을 입력하세요

가능한 해결 방법:

\documentclass[10pt]{article}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}
\setmathfont[range={\(,\)}]{XITS Math}

\AtBeginDocument{%
  \Udelcode`(="4 `(
  \Udelcode`)="4 `)
}

\begin{document}
{\small Small size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]
}

Normal size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보