I've been using tikz-cd for years now, and I find it incredibly easy to make commutative diagrams with it.
Recently, I saw this document which describes a new and simpler syntax. I tried making a diagram using that syntax, that is, putting everything inside [] for the arrows instead of using multiple {}, and I got multiple errors.
Here are some examples:
This is how I would normally do a diagram:
\[
\begin{tikzcd}
A \arrow{r}{f} & B \arrow{r}{g} & C \arrow{r} & 0
\end{tikzcd}
\]
This is how I would do a diagram with the new syntax:
\[
\begin{tikzcd}
A \arrow[r, "f"] & B \arrow[r, "g"] & C \arrow[r] & 0
\end{tikzcd}
\]
This second example compiles but I get lots of errors, some are even related to the package xcolor which I'm not even using. Also it does not show the labels on the arrows.
Does someone know what is the problem? Am I doing something wrong? Do I need a newer version of TeX Live? (I'm using TeX Live 2014 on Ubuntu 14.10).
Thanks in advance for your answers.
pgfandtikz-cddo you have? (runtlmgr info pgfandtlmgr info tikz-cdfrom a terminal) – summer Mar 17 '15 at 02:13pgf/TikZ. I would guess, the new syntax uses features of thequoteslibrary that is new in TikZ 3, and that you still have 2.10. (Oh, you are usingxcolorby the way, TikZ loads it.) – Torbjørn T. Oct 17 '15 at 07:24