I'm using the \usepackage{tikz-cd} and I'm trying to make a commutative diagram.

Why doesn't this simple code work?

$$ \begin{tikzcd}
A \arrow {rd}{f} \arrow{r}{\phi} & B \\ 
& C 

I can't find a problem with this, but it won't compile?

closed as unclear what you're asking by egreg, Marijn, Phelype Oleinik, Mensch, user156344 Apr 17 at 2:09

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    if you get an error please post a small complete document and also show the exact error message from the log that you get from your test file. – David Carlisle Apr 16 at 19:55
  • 1
    No error if I add a standard preamble. – egreg Apr 16 at 21:24