
저는 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에게 다른 곳에서 "\vdots 가져오기"를 지시하는 방법을 아시나요? 미리 감사드립니다.
답변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
명령을 제공합니다 . \rotatebox
은 \cdots
이미 정의되어 있으므로 이를 사용하여 다른 두 명령을 정의할 수 있습니다. MWE는 다음과 같습니다.
\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