I'm trying to draw a triangle-shaped commutative diagram using the tikz-cd package. Here is my LaTeX source:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
{}& A \arrow{dl}\arrow{dr}& \\
B\arrow{r} && C
\end{tikzcd}
\end{document}
I tried to follow the post of Sigur in tikz-cd error: Single ampersand used with wrong catcode but I still get the error message
! Package pgf Error: No shape named tikz@f@1-2-2 is known.
Playing with ampersands was of no help. (I can easily draw a commutative diagram of the form of a right triangle by placing A in the first column, but I don't see why I cannot use my above code to place A in the middle column and get an isosceles triangle.)
\arrow{rr}
in the bottom row (and no trailing&
in the top row).