
The problem occurs when using the NiceMatrix-Package with the \Block-Command. It seems like there is a problem, if the matrix-indicies that the block covers exceed 10.
First of all, a working example:
Code: Select all
\documentclass[12pt]{article}
\usepackage{amsmath}
\setcounter{MaxMatrixCols}{15}
\usepackage[latin1]{inputenc}
\usepackage{nicematrix}
\begin{document}
\begin{equation}
\begin{bNiceArray}{CCC|CCC|CCCCC}[first-row,first-col]
& a & b & c & d & e & f & g & h & i & j & k \\
a & \Block{3-3}{A} & & & \Block{3-3}{B} & & & \Block{3-3}{C} & & & & \\ % does compile
b & & & & & & & & & & & \\
c & & & & & & & & & & & \\
d & \Block{3-3}{D} & & & \Block{3-3}{E} & & & 0 & 0 & 0 & 0 & 0 \\
e & & & & & & & 0 & 0 & 0 & 0 & 0 \\
f & & & & & & & 1 & 0 & 0 & 0 & 0 \\
g & 0 & 0 & 0 & \Block{3-3}{F} & & & 0 & 1 & 0 & 0 & 0 \\
h & 0 & 0 & 0 & & & & 0 & 0 & 1 & 0 & 0 \\
i & 0 & 0 & 0 & & & & 0 & 0 & 0 & 1 & 0 \\
j & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1
\end{bNiceArray}
\end{equation}
\end{document}
Code: Select all
\documentclass[12pt]{article}
\usepackage{amsmath}
\setcounter{MaxMatrixCols}{15}
\usepackage[latin1]{inputenc}
\usepackage{nicematrix}
\begin{document}
\begin{equation}
\begin{bNiceArray}{CCC|CCC|CCCCC}[first-row,first-col]
& a & b & c & d & e & f & g & h & i & j & k \\
a & \Block{3-3}{A} & & & \Block{3-3}{B} & & & \Block{3-5}{C} & & & & \\ % does not compile
b & & & & & & & & & & & \\
c & & & & & & & & & & & \\
d & \Block{3-3}{D} & & & \Block{3-3}{E} & & & 0 & 0 & 0 & 0 & 0 \\
e & & & & & & & 0 & 0 & 0 & 0 & 0 \\
f & & & & & & & 1 & 0 & 0 & 0 & 0 \\
g & 0 & 0 & 0 & \Block{3-3}{F} & & & 0 & 1 & 0 & 0 & 0 \\
h & 0 & 0 & 0 & & & & 0 & 0 & 1 & 0 & 0 \\
i & 0 & 0 & 0 & & & & 0 & 0 & 0 & 1 & 0 \\
j & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1
\end{bNiceArray}
\end{equation}
\end{document}
Code: Select all
Package pgf Error: No shape named `nm-1-col-21' is known. \end{bNiceArray}
Thanks in advance!