TeX - LaTeX Asked on September 30, 2021
I want to add dimensions to the outside of a matrix using the nicematrix
package, but I run into this Package pgf error:
! Package pgf Error: No shape named 'nm-1-col-0' is known.
I have tried to replicate an example from the nicematrix documentation http://mirror.ox.ac.uk/sites/ctan.org/macros/latex/contrib/nicematrix/nicematrix.pdf section 15.3 on page 32. This is my MWE (I’m using XeLatex, not sure if it matters):
documentclass{article}
usepackage{tikz}
usepackage{nicematrix}
begin{document}
begin{equation}
D = begin{bNiceMatrix}[first-row,first-col]
& & & Ldots[line-style={solid,<->},shorten=0pt]^{p+1}
& 0 & 1 & & &
& & 0 & 1 & &
Vdots[line-style={solid,<->}]_{p+1}& & & Ddots & Ddots &
& & & & Ddots & 1
& & & & & 0 end{bNiceMatrix} otimes I_n
end{equation}
end{document}
However, the example from the nicematrix
documentation gives the exact same error:
documentclass{article}
usepackage{tikz}
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}
What am I doing wrong?
You have to update your TeX distribution (TeXLive
, MikTeX
of MacTeX
). In particular, nicematrix
is a recent package (2018) with frequent updates.
Correct answer by F. Pantigny on September 30, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP