0

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

10
  • I guess there is some very easy mistake I did - but I cannot understand what is wrong. Sep 18, 2020 at 16:11
  • You should update your TeX installation. You are not using the newest version of nicematrix. Sep 18, 2020 at 16:13
  • Hmm... The TeX Live I have is comparatively new. I just wonder, when I submit the paper (and it is going to be a scientific paper for a conference) - will the conference's TeX installation be able to compile my tex file?.. Just trying to find the safest solution. Sep 18, 2020 at 16:33
  • What ouput do you actually intend? Your code puts a dotted line on the whole first line of the matrix and on the whole first column. Why not but it seems rather strange. I don't understand the mathematical interest of that construction... Sep 18, 2020 at 16:38
  • 1
    Go here which provides all the versions of nicematrix.sty. The newest is on the top of the page (56256). Right click on download and save under the name nicematrix.sty. Sep 18, 2020 at 16:54

1 Answer 1

1

The solution to that problem is to update the package nicematrix.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .