Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I can compile the following LaTeX:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{arrows,backgrounds,plotmarks}   

\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
\end{document}

However, the process fails if I include any of the following lines:

\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{positioning}
\usetikzlibrary{fit}

\usepackage{pgfplots}

The log file begins with:

LOG FILE :
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2011.1.14) 

The same error occurs with a newer "format=pdflatex":

LOG FILE :
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2012.3.8)

The respective errors are:

! I can't find file `pgflibrarytikzdecorations.pathmorphing.code.tex'.
! I can't find file `pgflibrarytikzpositioning.code.tex'.
! I can't find file `pgflibrarytikzfit.code.tex'.

! I can't find file `pgfplots.code.tex'.

What could be the problem? Is there a way to "install" these tikz options?


Edit: When I follow the "\listfiles" suggestion in the first comment, these are the most relevant lines:

tikz.sty 2006/10/17 v1.10 (rcs-revision 1.68)
pgf.sty 2006/10/11 v1.10 (rcs-revision 1.7)

So, it seems I should update these packages.

share|improve this question
1  
You're using an old version of PGF. You can check your version by including \listfiles in your preamble and looking at the list near the end of your .log file. The current version is 2.1. –  Jake Jun 13 '12 at 7:30
1  
pgfplots is not a tikz library. This is a package itself. –  Paul Gaborit Jun 13 '12 at 7:35
    
Thanks, you could make it an answer. Updating the packages did the work. –  Wok Jun 13 '12 at 9:35
add comment

closed as too localized by percusse, Joseph Wright Jun 13 '12 at 9:58

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.