0

When I include the package tikz on my latex header, even if the package is not used at all, I get the following error at compiling time:

Undefined control sequence.
l.1131 \pgfdeclarearrow
                   {name=|<->|,   means={>[sep=0pt].|}}

where l.1131 is line 1131 of the file "tikz.code.tex"

A minimal example for this error is the following.

\documentclass{article}
\usepackage{tikz}
\begin{document}
test
\end{document}

So could be the mistake?

8
  • Try to run \documentclass{minimal} \usepackage{pgf} \begin{document} \pgfversion \end{document} and tell us what is the result, please. Since it says it is a problem in the TikZ you accidentally messed something up in the code, because for me (and for @Zarko) it works fine. Commented Jan 18, 2018 at 15:45
  • 1
    i can't reproduce your error. you should have something else than this example.
    – Zarko
    Commented Jan 18, 2018 at 15:45
  • 1
    @PhelypeOleinik Please don't recommend the use of the minimal class. It is not suitable. Suggest article instead. (Or standalone, but that wouldn't be suitable in this case.)
    – cfr
    Commented Jan 19, 2018 at 0:08
  • 1
    @cfr Yes, I know, David Carlisle already warned me about that. I used the minimal class for this case only to find out the version of pgf, so it wouldn't be a problem. Thanks for the warning anyway :) Commented Jan 19, 2018 at 2:17
  • 1
    @PhelypeOleinik Ah. That may not be obvious to the OP etc., though. (You may know it is safe in this case, but minimal gets read as 'for these minimal examples everyone keeps asking me for' :-).
    – cfr
    Commented Jan 19, 2018 at 2:41

1 Answer 1

-1

Finally I got to solve this.

I uninstalled and installed texlive several times without success. Until I realized that the texmf directory was not being deleted when running

apt-get remove texlive 

The solution was to manually remove /usr/local/share/texmf

Then I simply run

apt-get install texlive-full 

and everything is compiling as it should now.

1
  • If you can reproduce this, you should report it to the maintainers of the texlive package for Debian, as it would seem that they are including the tikz package, without its dependencies and that's a packaging bug. However, I wouldn't expect them to install packages under /usr/local, so this may be fallout from something you did yourself (install tikz without all the bits it needs), in which case it is obviously user error and not a bug.
    – cfr
    Commented Jan 19, 2018 at 0:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .