3

I am trying to draw a simple picture using angle and quotes libraries.

\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}

Code is generating following errors:

(/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}

 ? 

and

Undefined control sequence. l.9 \pic [draw, ->, "$\psi$", angle eccentricity=1.5] {angle = A--B--C};

I understand that error is due to quotes packages. Since removing this package pgfkeys error goes away. Then I can not use \pic using angles. I updated to Texlive 2016 but problem is still unsolved. I am using Ubunut 14.04.03. Any help?

  • do you have tikz v3.0 ? you can add \pgfversion into your document body to print the version. – percusse May 26 '17 at 8:09
  • It is showing 2.10. Shall I update it? If yes then how? – praveen pathak May 26 '17 at 9:12
  • 1
    See this one tex.stackexchange.com/questions/1092/… – percusse May 26 '17 at 9:15
  • If you really have TL 2016, you shouldn't have TikZ 2.10. Do you have multiple TeX distributions installed? That can be problematic. Or maybe you have a stale copy of something in your TEXMFHOME? – cfr May 26 '17 at 12:08
  • TeX Live 2014 shipped with version 3. TeX Live 2013 may have shipped with 2.10 and been updated to 3, so that one might have 2.10. But TL 2014 on should have only 3. Moreover, whichever version you have, everything in that version should be compatible. So if it is loading a library which doesn't work with the core PGF stuff, something is wrong with your installation somewhere. – cfr May 26 '17 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.