
私はTeXLive 2020を使用しています。このシンプルなコード
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Fira Math}
\begin{document}
\[
A = \begin{pmatrix}
a_{11} & a_{12} & \cdots & a_{1p}\\
a_{21} & a_{22} & \cdots & a_{2p}\\
\vdots & \vdots & \ddots & \vdots\\
a_{n1} & a_{n2} & \cdots & a_{np}
\end{pmatrix}
\]
\end{document}
次のような結果になります:
XeTeX に「それらの \vdot を他の場所からインポートする」ように指示する方法をご存知ですか? よろしくお願いします。
答え1
はい、Fira Math ではグリフが欠落しています。
別のサンセリフ数学フォントを使用することもできます。
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Fira Math}
\setmathfont{TeX Gyre DejaVu Math}[range={\vdots,\ddots}]
\setmathfont{Fira Math}[range=]
\begin{document}
\[
A = \begin{pmatrix}
a_{11} & a_{12} & \cdots & a_{1p}\\
a_{21} & a_{22} & \cdots & a_{2p}\\
\vdots & \vdots & \ddots & \vdots\\
a_{n1} & a_{n2} & \cdots & a_{np}
\end{pmatrix}
\]
\end{document}
完璧ではありませんが、プレゼンテーションには十分です。
答え2
前回の回答とは異なる解決策を思いついたので、あまりエレガントではないと思いますが、それを共有することにしました。
パッケージには、オブジェクトを回転できるgraphicx
コマンド が用意されています。はすでに定義されているので、これを使用して他の 2 つのコマンドを定義できます。以下は MWE です。\rotatebox
\cdots
\documentclass{article}
\usepackage{graphicx}
\usepackage{unicode-math}
\setmathfont{Fira Math}
\AtBeginDocument{
\renewcommand{\vdots}{\rotatebox[origin=c]{90}{\(\cdots\)}}
\renewcommand{\ddots}{\rotatebox[origin=c]{135}{\(\cdots\)}}
}
\begin{document}
\[
A = \begin{pmatrix}
a_{11} & a_{12} & \cdots & a_{1p}\\
a_{21} & a_{22} & \cdots & a_{2p}\\
\vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & \cdots & a_{np}
\end{pmatrix}
\]
\end{document}
そして結果は
コマンド\vdots
と を再定義するには、\ddots
を使用する必要があります。これは、 がドキュメントの先頭のグリフを定義する\AtBeginDocument
ためです。したがって、 を使用せずにを使用した場合、はドキュメントの先頭のカスタム定義を上書きします。unicode-math
\renewcommand
\AtBeginDocument
unicode-math