<br>Hi.<br>I am very interested on this topic, both to publish in the web and to port figures to ms-word documents.<br><br>For the moment I use the latex2png script, included in the latex2rtf package.<br><br>Given a document, test.tex<br>
\documentclass{article}<br>\usepackage{pstricks}<br>\pagestyle{empty}<br>\begin{document}<br>
\begin{pspicture*}(6,6)<br>
\psline(1,1)(5,5)<br>
...<br>
\end{pspicture*}<br>\end{document}<br><br>Then<br>latex2png -d 600 test.tex<br>(It produces test.png with 600 dpi)<br><br>Internally, this is what latex2png does:<br><br> latex --interaction batchmode test<br> dvips -q -l 1 -E -R -o test.tmp.eps test.dvi<br>
eps2eps test.tmp.eps test.eps<br> convert -crop 0x0 -depth 24 -units PixelsPerInch -density 600x600 test.eps test.png<br><br><br>The script pst2pdf proposed by Herbert doesn't work for me. <br>This is what pst2pdf test.tex produces: <br>
<br>
! Undefined control sequence.<br>
<recently read> \c@lor@to@ps <br>
<br>
l.9 \psline(<br>
1,1)(5,5)<br>
<br>The list of loaded packages, produced by latex, is<br>*File List*<br> article.cls 2005/09/16 v1.4f Standard LaTeX document class<br> size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)<br>pstricks.sty 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)<br>
pstricks.tex 2009/01/25 v1.27 `PSTricks' (tvz,hv)<br> xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)<br> color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive<br> dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)<br>
<br><br>-- kin<br><br>