I am trying to install TIKZ package on my local account. I am on
Fedora 10. I downloaded the PGF-2.0.0 from the sourceforge.net website
and put the folders in the texmf folder in my home directory. Now,
when I include \usepackage{tikz} in any document, I get the following
error message:
! Undefined control sequence.
l.15 \usepgflibrary
{plothandlers}
I did a search and found that this maybe due to incompatibility of
newer version of pgf with older. When I do a
$kpsewhich pgf.sty
It returns me: /nfs/kris/usr2/local_net1/latex/pgf/pgf.sty
and for: $kpsewhich pgflibraryplothandlers.sty
I get: /nfs/carv/d1/people/pradeep/texmf/tex/latex/pgf/compatibility/
pgflibraryplothandlers.sty
Why is not reading from the new version in my home directory? Is there
something else I should know? I don't have root permissions, so how
can I get rid of the older pgf.sty? I checked my texmf and the new
pgf.sty file does exist at: ~/texmf/tex/latex/pgf/basiclayer/
pgf.sty
Thanks
> Why is not reading from the new version in my home directory? Is there
> something else I should know? I don't have root permissions, so how
> can I get rid of the older pgf.sty? I checked my texmf and the new
> pgf.sty file does exist at: ~/texmf/tex/latex/pgf/basiclayer/
> pgf.sty
In the directory where you want to use pgf, create a symbolic link to
your pgf.sty:
$ ln -s ~/texmf/tex/latex/pgf/basiclayer/pgf.sty .
Bob T.
> [ can't find library ]
Hi,
Have you tried setting your TEXINPUTS variable? If not, then I suggest
you create
a directory, say styles, in your home directory, and use this for your
preferred LaTeX
styles and more recent versions of already installed files (including
tikz).
Next define the variable like this:
export TEXINPUTS=.:${HOME}/styles//:
This should make sure that the directory styles is searched for
relevant files first.
You have to run texhash or equivalent before this will work.
Regards,
Marc van Dongen
Why not using the already provided TEXMFHOME? On many systems
it is in ${HOME}/texmf, on Mac OS X it's in ${HOME}/Library/texmf.
And this "personal tree" is always looked up first. You don't even
need to run texhash or mktexlsr, provided you put style files in
<...>/texmf/tex/latex
or subdirectories thereof. If you need to know where TEXMFHOME
points to, run
kpsewhich -var-value TEXMFHOME
There are other advantages, as this tree can contain also BibTeX
or makeindex style files, fonts and everything else.
Ciao
Enrico
The OP already said
I downloaded the PGF-2.0.0 from the sourceforge.net website
and put the folders in the texmf folder in my home directory.
I've run into this problem too; presumably a kpsewhich bug. A symbolic
link seems the easiest fix.
Bob T.
I see. But a result of "kpsewhich pgf.sty" such as
/nfs/kris/usr2/local_net1/latex/pgf/pgf.sty
makes me suspect that something is wrong with the installation
or with environment variables.
@Pradeep: look up what's the output of
kpsewhich -var-value TEXINPUTS
kpsewhich -var-value TEXMFHOME
kpsewhich -var-value TEXLOCAL
Ciao
Enrico