[l2h] Problems with latex2html and pstricks

Armin Straub Armin-Straub at web.de
Wed Oct 13 11:44:14 CEST 2004


Hi all,

I'm just playing around with latex2html and I'm having some problems using it 
together with pstricks.

This works:
\begin{pspicture}(0cm,0cm)(2cm,2cm)
\psset{yunit=2cm}
\psset{xunit=2cm}
\psframe(0,0)(1,1)
\psline(0,0)(1,1)
\psline(0,1)(1,0)
% \rput(1,1){Test}
\end{pspicture} 

Uncommenting the line containing the \rput crops the resulting image in HTML 
to 17x9. Previously it was 92x91. Thus the output is worthless ... :-(

This the same for \uput and the like.


Even worse is the following code snippet:
\begin{pspicture}(0cm,0cm)(2cm,2cm)
\rput(0.5,0.5){Test}
\end{pspicture} 

It creates the error:
----8<----
Converting image #4
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h27380/p27433.pnm 
| /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans 
'#ffffff'  > img4.png" failed: Bad file descriptor

Error while converting image
----8<----

Thank you!
  Armin Straub



More information about the latex2html mailing list