[l2h] image conversion problems?

Farmer David W farmer@bucknell.edu
Mon, 16 Apr 2001 16:34:22 -0400 (EDT)


I am trying to use latex2html, but something seems to go wrong at
last step of the image conversion.

I made a small test file as suggested in the  troubleshooting section
of the documentation on the web.  I called the file   mytest.tex,
and this is the file:

---------- file below ---------
% mytest.tex
\documentclass{article}
\begin{document}
Some text followed by \fbox{some more text in a box}.
\end{document}
---- file above -------

The documentation had "documentstyle" not "documentclass",
so I changed it so that there wouldn't be extraneous error
messages.  (Should the documentation suggest "documentclass"?)

The full output when I run latex2html is given at the end of this message.

I also tried the "do it manually" as suggested in the troubleshooting
section.  Is it possible that the suggestions there are outdated?
It talks about Ghostscript version 3 vs Ghostscript version 2.x,
and the one on my computer is version 5.  The commands I tried
to use seemed to not exist.  The complete run at the end of this message.

Also, I checked images.tex in the created directory.  It looked fine,
latex ran on it with no problem, and the result looked like
I expected.

Also, I looked in /tmp and there weren't any files or directories
with names similar to what latex2html claimed it was creating.

Thank for any help or pointers you can give me.

David Farmer
farmer@bucknell.edu

--------- output when I run latex2html

pollux{125}% latex2html mytest
This is LaTeX2HTML Version 99.2beta8 (1.42)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Revised and extended by:
 Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 3.2


Loading /usr/local/lib/latex2html/versions/html3_2.pl

 *** processing declarations ***

Loading /usr/local/lib/latex2html/versions/latin1.pl
OPENING /home/cerebus/faculty/koutslts/David/mytest.tex

Cannot create directory mytest/: File exists, reusing it.
Reusing directory mytest/:

Note: Working directory is /home/cerebus/faculty/koutslts/David/mytest
Note: Images will be generated in /tmp/l2h2860

texexpand V99.2beta8 (Revision 1.10)


Loading /usr/local/lib/latex2html/styles/texdefs.perl...
Loading /usr/local/lib/latex2html/styles/article.perl
Reading ...
%++
@

Translating ...
0/1:top of mytest: for mytest.html

 *** translating preamble ***
..
 *** preamble done ***
;,;

1/1:sectionstar:.."About this document ..." for node1.html
;;.

Writing image file ...

This is TeX, Version 3.14159 (Web2C 7.2)
(./images.tex
LaTeX2e <1999/12/01>


 *** processing 1 images ***

Generating postscript images using dvips ...
This is dvips(k) 5.78 Copyright 1998 Radical Eye Software
(www.radicaleye.com)
' TeX output 2001.04.15:1549' -> /tmp/l2h2860/image
(-> /tmp/l2h2860/image001) <texc.pro><texps.pro><special.pro><color.pro>
<cmr10.pfb>[1]
Converting image #1
pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h2860/p2877.pnm |
/usr/local/bi
n/pnmcrop -bot | /usr/local/bin/pnmcrop -l | /usr/local/bin/ppmtogif
-interlace
-trans '#ffffff'  > img1.gif" failed:

Error while converting image

Doing section links ......
Done.

-------------- now I try to do if manually  -------
---------- Note: some of the error messages are several lines long,
--- the cut-and-past I am using may slightly alter their appearance.

pollux{168}% latex mytest.tex
This is TeX, Version 3.14159 (Web2C 7.2)
(mytest.tex
LaTeX2e <1999/12/01>
(/usr/local/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
(/usr/local/share/texmf/tex/latex/base/size10.clo)) (mytest.aux) [1]
(mytest.aux) )
Output written on mytest.dvi (1 page, 348 bytes).
Transcript written on mytest.log.
pollux{169}%
pollux{169}% dvips -o mytest.ps mytest.dvi
This is dvips(k) 5.78 Copyright 1998 Radical Eye Software
(www.radicaleye.com)
' TeX output 2001.04.16:1614' -> mytest.ps
<texc.pro><texps.pro>. <cmr10.pfb>[1]
pollux{170}%
pollux{170}% gs -dNODISPLAY pstoppm.ps
GNU Ghostscript 5.10 (1998-12-17)
Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights
reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
Error: /undefinedfilename in (pstoppm.ps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval-
-   2   %stopped_push   --nostringval--   2   3   %oparray_pop
--nostringval--
   --nostringval--   false   1   %stopped_push   --nostringval--
--nostringval
--   5   3   %oparray_pop
Dictionary stack:
   --dict:770/809--   --dict:0/20--   --dict:43/200--
Current allocation mode is local
Last OS error: 2
GS>(mytest) ppm1run
Error: /undefined in ppm1run
Operand stack:
   (mytest)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval-
-   2   %stopped_push   --nostringval--   0   3   %oparray_pop
--nostringval--
   %loop_continue   2   3   %oparray_pop   --nostringval--
--nostringval--   f
alse   1   %stopped_push   .runexec2   --nostringval--   --nostringval--
--nos
tringval--   2   %stopped_push   --nostringval--   --nostringval--
--nostringv
al--   5   3   %oparray_pop
Dictionary stack:
   --dict:770/809--   --dict:0/20--   --dict:43/200--
Current allocation mode is local
GS<1>quit
pollux{171}%
pollux{171}% pnmcrop mytest.ppm>mytest.crop.ppm
ld.so.1: pnmcrop: fatal: libpnm.so.1: open failed: No such file or
directory
Killed
pollux{172}%
pollux{172}% ppmtogif mytest.crop.ppm > mytest.gif
ld.so.1: ppmtogif: fatal: libppm.so.1: open failed: No such file or
directory
Killed
pollux{173}%

--------------- the end ------------