パッケージ nicematrix - 「TeX 容量を超えました」エラー

パッケージ nicematrix - 「TeX 容量を超えました」エラー

マニュアルのセクション 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

関連情報