I'm using tikz and its "graph" library, and I'd like to label some of my graph's edges. The tikz manual (pgfmanual.pdf v3.0.1, p. 364) suggests the syntax
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz \graph
{
a ->["foo"] b
};
\end{document}
However, this doesn't work; upon compilation I get the error message
! Package pgfkeys Error: I do not know the key '/tikz/"{foo}"' and I am going t
o ignore it. Perhaps you misspelled it.
Am I doing something wrong, or is this a bug in tikz or its documentation?
By the way, the alternative syntax ->[edge label=foo]
works fine.
[edge label=foo]
also works for me. The same things go for the examples in the manual using the["foo"]
syntax. I think this is either a bug or a case of the manual not being up to date. Please post a MWE, so other users can test more easily. – marsupilam Jun 27 '17 at 21:54quotes
library? – cfr Jun 27 '17 at 21:58\usetikzlibrary{quotes}
! Well spotted ! Is this requirement documented in the manual close enough to the graph examples ? – marsupilam Jun 27 '17 at 21:59