I am trying to reproduce the example from Section 16.3 of the nicematrix
manual:
\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}
However, I keep getting the "TeX capacity exceeded" error.
I boiled it down to the following 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}
It still produces the same error.
P.S. I am compiling via TeXstudio on Ubuntu 20.04.1 LTS.
P.P.S. The full log file can be found here: https://pastebin.com/W6dVWMc9
nicematrix
.nicematrix.sty
. The newest is on the top of the page (56256). Right click ondownload
and save under the namenicematrix.sty
.