Discussion:
[Dvipng] Does `dvipng' support the '.dvi' file generated by using pgf/tikz
张贤义
2008-05-23 10:49:08 UTC
Permalink
I want to use `dvipng' to convert the `.dvi' file to `.png', when i stduy to use the
'pgf/tikz' package to generate graph in tex.

dvipng does not work for it!

OS: windows xp sp2,
tex: miktex 2.7
The the '.tex' code is :
---------------------------------------------------------
\documentclass{article} % say
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0) -- (0,-1.5) -- (0,1.5);
\end{tikzpicture}.
\end{document}
---------------------------------------------------------

the associated file is packed:
ex6.aux
ex6.dvi
ex6.log
ex6.tex
commandline.rec (the output of command line)
张贤义
2008-05-23 17:54:22 UTC
Permalink
I want to use `dvipng' to convert the `.dvi' file to `.png', when i stduy to use the
'pgf/tikz' package to generate graph in tex.

dvipng does not work for it!

OS: windows xp sp2,
tex: miktex 2.7
The the '.tex' code is :
---------------------------------------------------------
\documentclass{article} % say
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0) -- (0,-1.5) -- (0,1.5);
\end{tikzpicture}.
\end{document}
---------------------------------------------------------
Jan-Åke Larsson
2008-05-24 08:34:33 UTC
Permalink
Post by 张贤义
I want to use `dvipng' to convert the `.dvi' file to `.png', when i stduy to use the
'pgf/tikz' package to generate graph in tex.
dvipng does not work for it!
The newest release (v1.11) does work to some extent. It gives a warning
but seems to output the correct graph for your example. Unfortunately,
text-placing commands does not work just now. This is because dvipng
needs a full PostScript interpreter internally to do this (not just
calling gs for included graphs). There is a *lot* of work necessary to
make this work.

I am thinking about it.

/JÅ

Loading...