包 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

相關內容