![使用 kpfonts-otf 时 `\vdots` 的位置看起来很奇怪](https://linux22.com/image/451268/%E4%BD%BF%E7%94%A8%20kpfonts-otf%20%E6%97%B6%20%60%5Cvdots%60%20%E7%9A%84%E4%BD%8D%E7%BD%AE%E7%9C%8B%E8%B5%B7%E6%9D%A5%E5%BE%88%E5%A5%87%E6%80%AA.png)
答案1
让我们尝试以下操作:
\documentclass{article}
\NewCommandCopy\originalvdots\vdots
\usepackage{kpfonts-otf}
\begin{document}
\[
\begin{pmatrix}
\mu_1\\
\vdots\\
\mu_n
\end{pmatrix}
\begin{pmatrix}
\mu_1\\
\originalvdots\\
\mu_n
\end{pmatrix}
\]
\end{document}
该\originalvdots
命令使用了 Computer Modern 中的时期,但这是一个不太重要的细节。
通过一些测量……
\documentclass{article}
\NewCommandCopy\originalvdots\vdots
% \usepackage{kpfonts}
\usepackage{kpfonts-otf}
\AtBeginDocument{%
\NewCommandCopy\unicodevdots\vdots
\RenewDocumentCommand{\vdots}{}{\mathrel{\loweredvdots}}%
}
\makeatletter
\newcommand{\loweredvdots}{\mathpalette\loweredvdots@\relax}
\newcommand{\loweredvdots@}[2]{%
\begingroup
\sbox\z@{$\m@th#1\unicodevdots$}%
\vrule width \z@ height 2.25\ht\z@ depth 0.012\ht\z@
\raisebox{0.25\height}{\usebox\z@}%
\endgroup
}
\makeatother
\begin{document}
\[
\begin{pmatrix}
\mu_1\\
\vdots\\
\mu_n
\end{pmatrix}
\begin{pmatrix}
\mu_1\\
\originalvdots\\
\mu_n
\end{pmatrix}
\]
\end{document}
答案2
在 OpTeX 中,这个问题不存在。\vdots
即使初始化了带有 KP 字体和 otf-math 的 Unicode 数学,原始数学仍保持不变。控制序列\unicodevdots
已准备好访问 Unicode vdots 字符。比较:
\fontfam[kp]
$$
\pmatrix{\mu_1\cr \vdots\cr \mu_n}, \quad \pmatrix{\mu_1\cr \unicodevdots\cr \mu_n}
$$
\bye
当然,\let\vdots=\unicodevdots
如果你喜欢Unicode字符,你可以说出来。有关更多信息,请参阅文档 optex-math 的 2.6 节。