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

evaluation of local install folders

15 views
Skip to first unread message

Bjoern Fabritius

unread,
Oct 28, 2008, 8:58:34 AM10/28/08
to
Hi all,
I'm trying to compile a \documentclass{beamer} file which uses pgf/tikz.
I got pgf 2.0 installed in my home
directory /myhome/texmf/tex/generic/pgf-2.0
xcolor is also installed locally. I ran texhash and "kpsewhich pgf.sty"
returns the above location. But in /usr/share/texmf.. is an older version
of pgf installed which I have no right to delete!
Running latex on my file terminates with errors and when I look at the
log-file I can see that Latex (at that point reading beamerbaseoptions.sty)
loads the old version of pgf.sty. Any idea why that is? I thought local
installation precedes the global one? I'm at my wit's end here.

Regards
Bjoern

Ulrike Fischer

unread,
Oct 28, 2008, 9:39:06 AM10/28/08
to

Normally (at least miktex is doing it so) LaTeX doesn't search for a
file first everywhere in the local root then in the global one but it
does a sort of forward and back search:
local root/tex/latex, global root/tex/latex
local root/tex/generic, global root/tex/generic
etc

So you shouldn't install your local pgf completly in tex/generic, but
you should mimic the folders the global pgf use, and put parts of pgf in
tex/latex etc.

--
Ulrike Fischer

Bjoern Fabritius

unread,
Oct 28, 2008, 10:05:17 AM10/28/08
to
Ulrike Fischer wrote:

1) thanks for the quick answer
2) I actually HAVE the files installed in different folders, just as the
pgfmanual suggested
3) after installing the beamer-package locally as well, I got a new error.
somehow both files (old and new) are loaded now. Here is the log entry
together with a warning coming before that:

(/home/fabritiu/texmf/tex/generic/pgf-2.00/latex/pgf/basiclayer/pgfbaseimage.sty
Package pgf Warning: This package is obsolete and no longer needed on input
line 13.
****snip****
TextBlockOrigin set to 0pt x 0pt
)
(/home/fabritiu/texmf/tex/generic/pgf-2.00/latex/pgf/frontendlayer/tikz.sty
(/usr/share/texmf/tex/latex/pgf/pgf.sty
Package: pgf 2004/10/08 ver 0.65
\pgf@objectcount=\count152
****snip****
! LaTeX Error: Command \pgfdeclareimage already defined.
Or name \end... illegal, see p.192 of the manual.

It seems to me that the substyles (like pgfcore, pgfmath etc) are working
fine and only pgf.sty causes trouble.
That whole business ruined my day so far, so I hope I can resolve the
problem :)

Bjoern

Ulrike Fischer

unread,
Oct 28, 2008, 11:09:04 AM10/28/08
to
Am Tue, 28 Oct 2008 15:05:17 +0100 schrieb Bjoern Fabritius:


>> Normally (at least miktex is doing it so) LaTeX doesn't search for a
>> file first everywhere in the local root then in the global one but it
>> does a sort of forward and back search:
>> local root/tex/latex, global root/tex/latex
>> local root/tex/generic, global root/tex/generic
>> etc
>>
>> So you shouldn't install your local pgf completly in tex/generic, but
>> you should mimic the folders the global pgf use, and put parts of pgf in
>> tex/latex etc.
>>
>
> 1) thanks for the quick answer
> 2) I actually HAVE the files installed in different folders, just as the
> pgfmanual suggested

You didn't understand what I mean.

Your error messages mentioned

(/usr/share/texmf/tex/latex/pgf/pgf.sty. This is the old version, so the
new one is not found.

Search the new version and move it from (I guess)

/home/fabritiu/texmf/tex/generic/pgf-2.00/latex/pgf/pgf.sty

to

/home/fabritiu/texmf/tex/latex/pgf/pgf.sty


That is, move it outside texmf/tex/generic and inside texmf/tex/latex.

Do something similar at least with all problematic files.

I know that the manual of pgf tells to "unzip" everything inside
tex/generic. But this simply doesn't work if a global installation of
pgf follows the tds-guidelines. Then you must put a part of the files in
tex/latex.


> Package pgf Warning: This package is obsolete and no longer needed on input
> line 13.

Ignore this. It's harmless.


--
Ulrike Fischer

Bjoern Fabritius

unread,
Oct 28, 2008, 11:30:16 AM10/28/08
to
Ulrike Fischer wrote:

> Am Tue, 28 Oct 2008 15:05:17 +0100 schrieb Bjoern Fabritius:

> Search the new version and move it from (I guess)
>
> /home/fabritiu/texmf/tex/generic/pgf-2.00/latex/pgf/pgf.sty
>
> to
>
> /home/fabritiu/texmf/tex/latex/pgf/pgf.sty
>
>
> That is, move it outside texmf/tex/generic and inside texmf/tex/latex.
>


Yippie,
that did the job. Thanks a lot!

Bjoern

0 new messages