
매뉴얼 섹션 16.3의 예를 재현하려고 합니다 nicematrix
.
\documentclass[10pt,a4paper]{article}
\usepackage{nicematrix}
\begin{document}
\NiceMatrixOptions{nullify-dots,code-for-first-col = \color{blue},code-for-first-col=\color{blue}}
$\begin{pNiceMatrix}[first-row,first-col]
& & \Ldots[line-style={solid,<->},shorten=0pt]^{n \text{ columns}} \\
& 1 & 1 & 1 & \Ldots & 1 \\
& 1 & 1 & 1 & & 1 \\
\Vdots[line-style={solid,<->}]_{n \text{ rows}} & 1 & 1 & 1 & & 1 \\
& 1 & 1 & 1 & & 1 \\& 1 & 1 & 1 & \Ldots & 1
\end{pNiceMatrix}$
\end{document}
그런데 계속해서 "TeX 용량 초과" 오류가 발생합니다.
나는 그것을 다음 MWE로 요약했습니다.
\documentclass[10pt,a4paper]{article}
\usepackage{nicematrix}
\begin{document}
$\begin{pNiceMatrix}[first-row,first-col]
& & \Ldots & \\
& 1 & 1 & 1 & \Ldots & 1 \\
& 1 & 1 & 1 & & 1 \\
\Vdots & 1 & 1 & 1 & & 1 \\
& 1 & 1 & 1 & & 1 \\
& 1 & 1 & 1 & \Ldots & 1
\end{pNiceMatrix}$
\end{document}
여전히 동일한 오류가 발생합니다.
PS 저는 Ubuntu 20.04.1 LTS에서 TeXstudio를 통해 컴파일하고 있습니다.
PPS 전체 로그 파일은 여기에서 찾을 수 있습니다:https://pastebin.com/W6dVWMc9
답변1
해당 문제에 대한 해결책은 패키지를 업데이트하는 것입니다 nicematrix
.