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?
\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. – Phelype Oleinik Jan 18 '18 at 15:45\pgfversionis also 2.10, but I can\usepackage{tikz}without any problems. So my guess is that yourtikz.code.texis somehow corrupted. Try this. I copied the code from my version oftikz.code.tex. Replace your version (make a backup first!) by this one and see what happens. You can find yourtikz.code.texin/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz. – Phelype Oleinik Jan 18 '18 at 22:02minimalclass. It is not suitable. Suggestarticleinstead. (Orstandalone, but that wouldn't be suitable in this case.) – cfr Jan 19 '18 at 00:08minimalclass for this case only to find out the version of pgf, so it wouldn't be a problem. Thanks for the warning anyway:)– Phelype Oleinik Jan 19 '18 at 02:17minimalgets read as 'for these minimal examples everyone keeps asking me for' :-). – cfr Jan 19 '18 at 02:41minimalever again:)– Phelype Oleinik Jan 19 '18 at 11:56