我正在尝试使用角度和引号库绘制一个简单的图画。
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{3d,calc,quotes,angles,patterns}
\begin{document}
\begin{tikzpicture}[yscale=2]
\draw [name path=xaxis] [<->] (-5,0) coordinate (A) -- (0,0) coordinate (B);
\draw [->] (0,0) -- (0,3) coordinate (C);
\pic [draw, ->, "$\psi$", angle eccentricity=1.5] {angle = A--B--C};
\end{tikzpicture}
\end{document}
代码生成以下错误:
(/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryquotes.code.tex
! Package pgfkeys Error: I do not know the key '/handlers/first char syntax' and I am going to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.38 \pgfkeys{/handlers/first char syntax=true}
?
和
Undefined control sequence. l.9 \pic [draw, ->, "$\psi$", angle eccentricity=1.5] {angle = A--B--C};
我理解错误是由于 quotes 包引起的。删除此包后,pgfkeys 错误消失。然后我无法使用 \pic 和 angles。我已更新至 Texlive 2016,但问题仍未解决。我使用的是 Ubunut 14.04.03。有什么帮助吗?