使用 Libertinus Math 和 XeTeX,二项式系数在内联模式下无法正确显示

使用 Libertinus Math 和 XeTeX,二项式系数在内联模式下无法正确显示

我在 XeTeX 中使用 Libertinus Math 作为数学字体,$\binom{n}{k}$ 给出一个二项式系数,其中下部项 (k) 突出于括号下方。显示数学运算效果很好 [ \binom{n}{k} ] 看起来很完美。

切换到另一种字体(例如,Tex Gyre Pagella Math)可以解决问题,但我不想要 Pagella,我想要 Libertinus。

关于如何解决此问题,您有什么想法吗?我尝试使用 \genfrac 命令重新定义 \binom,但得到了相同的结果:

\renewcommand{\binom}{\genfrac{(}{)}{0pt}{}} %This looks identical to standard \binom.

梅威瑟:

\documentclass{article}

\usepackage{amsmath}
\usepackage{fontspec}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
\defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle}
\setmainfont{Libertinus Serif}
\setsansfont{Libertinus Sans}
\setmathfont{Libertinus Math}
\setmonofont{Libertinus Mono}


\begin{document}

This  $\binom{n}{k}$ looks goofy, while \[\binom{n}{k}\] looks perfect. 

\end{document}

答案1

文本或显示数学模式中使用的括号\atopwithdelims(二项式系数打印时使用的基元)是字体设计师决定的结果。Libertine Math 的字体设计师在这里决定了一个比某些人预期的更小的括号。

你可以使用不同于 的 TeX 基元来解决这个问题\atopwithdelims。这意味着:

\def\binom#1#2{\left(\!{#1\atop#2}\!\right)}

test: $\binom{n}{k}$ looks OK in Libertine Math.

\bye

相关内容