
Я пытаюсь воспроизвести пример из раздела 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}
Ошибка все равно та же.
P.S. Компилирую через TeXstudio на Ubuntu 20.04.1 LTS.
PPS Полный файл журнала можно найти здесь:https://pastebin.com/W6dVWMc9
решение1
Решением этой проблемы является обновление пакета nicematrix
.