tikz-cd wraps matrix creation as follows
\def\tikzcd@[#1]{%
\tikzpicture[/tikz/commutative diagrams/.cd,every diagram,#1]%
% ...
\matrix[%
% ...
]%
\bgroup}
As such, there seems no way to name the matrix as created by the tikzcd environment. Is there a way to name the matrix, and still using the tikzcd environment?
The question arises out of the need to name cells of matrices. With the name of a matrix known, the cells could be conveniently referred to as name-1-1, for example.


tikz-cddocumentation? I searched but I didn't find it. – CarLaTeX Dec 08 '17 at 09:21\global\let\tikzcdmatrixname\tikzlastnodein there i.e. it is not documented. Theexecute at end picturetrick on the other hand is documented. – Henri Menke Dec 08 '17 at 09:22\tikzcdmatrixname, thank you! – CarLaTeX Dec 08 '17 at 09:243,4,5,6to produce the diagonal alignment of node code. -) – Sigur Mar 01 '19 at 14:51