The following code:


A\times B       &C\\\

([g,\alpha], [f,\sigma])\ar[mapsto]{r}              & [hf,\mu\alpha]


give the error

"! Package pgf Error: No shape named tikz@f@125-2-2 is known."

I suspect that is for the [] in the place 2-2 but I don't know whay I couldn't use it.

What should I do if I want to use [ ] like that?

1 Answer 1


You have to set the lower right term in braces. It seems as if tikz-cd does not understand the [] here. Maybe this character is active here. As tikz-cd does not find something in the cell 2-2 but you are pointing an arrow towards there, you are getting the error you have posted.

% arara: pdflatex


    A\times B & C \\    
    ([g,\alpha], [f,\sigma])\ar[mapsto]{r} & {[hf,\mu\alpha]}   

enter image description here

You must log in to answer this question.

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