Discussion:
[Dvipng] tikz support in the future?
Tim Arnold
2010-11-10 14:49:49 UTC
Permalink
Hi,
I just found out the hard way that tikzpictures cannot be rendered using dvipng.

I get this message, many many times:
<literal PSdvipng warning: PostScript environment contains DVI commands dvipng warning: PostScript environment contains DVI commands >

My guess is that this isn't easy to support. My question is if it's *possible* for dvipng to handle the situation or should I ditch the use of tikzpicture?

thanks for the advice,
--Tim A
Jan-Åke Larsson
2010-11-11 09:19:48 UTC
Permalink
Post by Tim Arnold
I just found out the hard way that tikzpictures cannot be rendered using dvipng.
<literal PSdvipng warning: PostScript environment contains DVI commands dvipng warning: PostScript environment contains DVI commands >
Correct, this message was actually introduced to detect when tikz
commands are likely to fail.
Post by Tim Arnold
My guess is that this isn't easy to support. My question is if it's *possible* for dvipng to handle the situation or should I ditch the use of tikzpicture?
Possible, yes. But that would require a PostScript interpreter which is
internal to dvipng, rather than throwing PostScript code at GhostScript
as is the case today. The problem is keeping track of where the pen is
after returning from PostScript rendering. In general also if the
coordinate system is rotated.

This will not happen soon, and probably not at all, especially since I
don't have the needed time.

/JÅ
Tim Arnold
2010-11-11 14:03:03 UTC
Permalink
-----Original Message-----
Sent: Thursday, November 11, 2010 4:20 AM
Subject: Re: [Dvipng] tikz support in the future?
Post by Tim Arnold
I just found out the hard way that tikzpictures cannot be rendered using
dvipng.
Post by Tim Arnold
<literal PSdvipng warning: PostScript environment contains DVI
commands dvipng warning: PostScript environment contains DVI commands
Correct, this message was actually introduced to detect when tikz commands
are likely to fail.
Post by Tim Arnold
My guess is that this isn't easy to support. My question is if it's
*possible* for dvipng to handle the situation or should I ditch the use of
tikzpicture?
Possible, yes. But that would require a PostScript interpreter which is
internal to dvipng, rather than throwing PostScript code at GhostScript as
is the case today. The problem is keeping track of where the pen is after
returning from PostScript rendering. In general also if the coordinate
system is rotated.
This will not happen soon, and probably not at all, especially since I
don't have the needed time.
/JÅ
Hi,
Thanks for that info. Sounds like I need to find a better way to make pictures r
Loading...