Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Installing PGF-TIKZ

147 views
Skip to first unread message

Pradeep

unread,
Jun 28, 2010, 4:58:42 PM6/28/10
to
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

Bob Tennent

unread,
Jun 28, 2010, 5:07:40 PM6/28/10
to
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.

Marc van Dongen

unread,
Jun 29, 2010, 6:13:04 AM6/29/10
to
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.

Regards,


Marc van Dongen

Enrico Gregorio

unread,
Jun 29, 2010, 6:59:41 AM6/29/10
to

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

Bob Tennent

unread,
Jun 29, 2010, 11:52:31 AM6/29/10
to
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.

Enrico Gregorio

unread,
Jun 29, 2010, 12:02:44 PM6/29/10
to
Bob Tennent <Bo...@cs.queensu.ca> wrote:

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 new messages