The example Matrix Multiplication fails to compile.
From this answer I gathered that something changed in TikZ 3.0, but since the answer does not really explain what one should change, I'm stuck as before.
The error is the following:
! Package pgf Error: No shape named A-2-1 is known.
Best Answer
The syntax that you have to change to get this to compile is to use the
|[node style]| node content
instead of\node[node style] {node content};
for each of the nodes. This is explained in Compilation problem with tikz diagram. Basically, if you have amatrix of [math] nodes
, TikZ adds the\node[name=A-1-1] {
and};
for you around the contents. Then you can refer to each node in the matrix separately. If you explicitly declare the node with\node[] {};
in each cell, TikZ can't do that anymore, and the names are undefined. To fix that example, you can do a regex find/replace:Find:
\\node\[(.*)\] \{(.*)\};
Replace:|[\1]| \2