Installing PGF-TIKZ

  • Follow


Hi,

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
0
Reply pradeep.kumar.jha (1) 6/28/2010 8:58:42 PM

On Mon, 28 Jun 2010 13:58:42 -0700 (PDT), Pradeep wrote:

 > 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.
0
Reply Bob 6/28/2010 9:07:40 PM


On Jun 28, 9:58=A0pm, Pradeep <pradeep.kumar....@gmail.com> wrote:

> [ 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=3D.:${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
0
Reply Marc 6/29/2010 10:13:04 AM

Marc van Dongen <dongen@cs.ucc.ie> wrote:

> On Jun 28, 9:58�pm, Pradeep <pradeep.kumar....@gmail.com> wrote:
> 
> > [ 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.

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
0
Reply Enrico 6/29/2010 10:59:41 AM

On Tue, 29 Jun 2010 12:59:41 +0200, Enrico Gregorio wrote:
 
 > Why not using the already provided TEXMFHOME? 

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.
0
Reply Bob 6/29/2010 3:52:31 PM

Bob Tennent <BobT@cs.queensu.ca> wrote:

> On Tue, 29 Jun 2010 12:59:41 +0200, Enrico Gregorio wrote:
>  
>  > Why not using the already provided TEXMFHOME? 
> 
> 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.

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
0
Reply Enrico 6/29/2010 4:02:44 PM

5 Replies
1220 Views

(page loaded in 0.474 seconds)

Similiar Articles:











7/23/2012 10:37:58 AM


Reply: