我在 OS X Sierra 上使用 XeLaTeX (XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015)),通过rubber
\documentclass[letterpaper, 11pt]{article}
\usepackage{geometry}
\usepackage{amsmath}
% rubber: set program xelatex
\usepackage{unicode-math}
\setmathfont{STIX Two Math}
\setmainfont{STIX Two Text}
\begin{document}
This is the problem $\frac{\left(asdf\right)}{\left(ghjk\right)}$
\[ \frac{\frac{\left(asdf\right)}{\left(ghjk\right)}}{\frac{\left(asdf\right)}{\left(ghjk\right)}} \]
\[ \frac{\left(asdf\right)}{\left(ghjk\right)} \]
\begin{align*}
\frac{\frac{\left(asdf\right)}{\left(ghjk\right)}}{\frac{\left(asdf\right)}{\left(ghjk\right)}} \\
\frac{\left(asdf\right)}{\left(ghjk\right)}
\end{align*}
\end{document}
\left(
将 STIX 2.0.0 字体与 unicode-math 和 XeLaTeX 结合使用会导致和的括号\right)
显示不正确(显示为带框的问号),而常规(
和字符则显示正确。和)
不会出现同样的问题。\left[
\right]
日志输出中唯一的区别是以下几行:
Missing character: There is no Ⴞ in font STIX Two Math/OT:script=math;language= DFLT;! Missing character: There is no Ⴟ in font STIX Two Math/OT:script=math;language= DFLT;!
有人能帮我解决这个问题吗?
非常简单的例子:
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}
\begin{document}
$\left(\right)$
$\scriptstyle\left(\right)$
$\scriptscriptstyle\left(\right)$
%\showoutput
\end{document}
Missing character: There is no Ⴞ in font STIX Two Math/OT:script=math;language=DFLT;!
Missing character: There is no Ⴟ in font STIX Two Math/OT:script=math;language=DFLT;!
Missing character: There is no ᆷ in font STIX Two Math/OT:script=math;language=DFLT;+ssty=0;!
Missing character: There is no ^^@ in font STIX Two Math/OT:script=math;language=DFLT;!
Missing character: There is no ᆸ in font STIX Two Math/OT:script=math;language=DFLT;+ssty=0;!
Missing character: There is no ^^@ in font STIX Two Math/OT:script=math;language=DFLT;!