I'm having problems to run the tikzcd package on my system. The following code:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
S\arrow[r] & S \\
\end{tikzcd}
\end{document}
Gives the following errors:
tikz-cd: Arrow direction argument must contain only the characters u, d, l, r. S \arrow[r] S
pgfkeys: I do not know the key '/tikz/r' and I am going to ignore it. Perhaps you misspelled it. \end{tikzcd}
I'm using Ubuntu 14.04 and the distributions seem to be updated. For instance command tex --version gives:
TeX 3.1415926 (TeX Live 2013/Debian)
kpathsea version 6.1.1
Copyright 2013 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
and none of the answers of other questions is working for me.
&
after the arrow. Check for invisible characters in the input. – egreg Sep 30 '17 at 16:08tikz-cd
at the time didn't accept that syntax. You should update to TeX Live 2017, but I'm not sure Ubuntu 14.04 offers it. Better to install the “vanilla” distribution. – egreg Sep 30 '17 at 16:14