Well, several weeks passed but I didn't receive any reply from the author, I've
tried on SourceForge bug tracker and on the user mailing list. So I tried to
investigate this problem by myself and compared the output of pgf 2.00 (working)
and pgf 2.10 (non-working). I found out that the problem is a missing part in
the PostScript output, see attachment [1]. I've been able to find out that the
involved pgf files are:

- tex\generic\pgf\systemlayer\pgfsys-common-postscript.def
- tex\generic\pgf\systemlayer\pgfsys-dvips.def

In particular reverting the last file from the 2.00 version makes TikZ work
again. The following is the only difference:

NON-WORKING:
\def\pgf@sys@postscript@header#1{\pgfutil@insertatbegincurrentpage{\special{!
#1}}}
WORKING:     \def\pgf@sys@postscript@header#1{\AtBeginDvi{\special{! #1}}}

Maybe you can give me an explanation. I'll send a patch to pgf list as usually
patch attract more attention than just saying "you're code doesn't work in this
super-particular case!". However, this is probably not a real solution as it
could have side effects that only a pgf coder can understand.

I don't know how these things works, should we warn the user to use pgf 2.00 or
maybe tell him to overwrite pgfsys-dvips.def with the old one (we could even
distribute it)?

With pdflatex everything works, but I don't want to introduce another tool in
the instant-preview code, but I'm interested to know your opinion.

[1] http://www.lyx.org/trac/attachment/ticket/7042/pgf.zip

Reply via email to