[l2h] Problem processing test sample after configuration. Converting images fails.

Till A. Heilmann Till A. Heilmann" <Till.Heilmann@stud.unibas.ch
Tue, 02 Oct 2001 12:45:57 +0200 (MET DST)


Hi everybody!

I just installed LaTeX2HTML on my Windows Box:


Windows NT 4.0 (SP6)
   in c:\winnt\
   
MiKTeX 2.1
   in c:\programs\texmf\
   
Netpbm 9.19
   in c:\programs\netpbm\bin\

Ghostscript 7.00
   in c:\programs\gs\gs7.00
   
GSview 4.0
   in c:\programs\gsview\
   
LaTeX2HTML-99.2beta8
   in c:\temp\l2h\


Configuration (with prefs.pm and configure.bat) went 
fine (see contents of config.log below), but the 
processing of the test sample (with test.bat) keeps 
failing. Obviously the problem is with Ghostscript, 
pnmcrop.exe or pstoimg.bat (or all of them).

When trying to convert the images LaTeX2HTML produces 
the following error:


--------[BEGINNING OF OUTPUT]---------

AFPL Ghostscript 7.0 (2001-04-08)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All 
rights reserved.
This software comes with NO WARRANTY: see the file 
PUBLIC for details.
GS>GS>>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Running "c:\programs\netpbm\bin\pnmcrop.exe  < 
c:\temp\l2h80\p147.pnm > c:\temp\l2h80\p147.t01"
pstoimg.bat: 
Error: "c:\programs\netpbm\bin\pnmcrop.exe  < 
c:\temp\l2h80\p147.pnm > c:\temp\l2h80\p147.t01" 
failed: No such file or directory

Error while converting image

Error: Cannot read 'img1.png': No such file or directory

--------[END OF OUTPUT]---------

(see whole output below)


These files and folders do actually exist, so when I 
invoke pnmcrop.exe manually everything works just fine:


--------[BEGINNING OF OUTPUT pnmcrop.exe]---------

C:\TEMP\l2h80>c:\programs\netpbm\bin\pnmcrop.exe -
verbose < p147.pnm > p147.t01
c:\programs\netpbm\bin\pnmcrop: Background color is 
#b3b3b3
c:\programs\netpbm\bin\pnmcrop: cropping 1 row off the 
top
c:\programs\netpbm\bin\pnmcrop: cropping 3 rows off the 
bottom
c:\programs\netpbm\bin\pnmcrop: cropping 2 cols off the 
top
c:\programs\netpbm\bin\pnmcrop: cropping 2 cols off the 
bottom

--------[END OF OUTPUT pnmcrop.exe]---------


Does anyone have an idea how to overcome this problem?

Thanks and greets to everyone.

PS: Below is the content of config.log and the whole 
output of test.bat.

--------[BEGINNING of config.log]---------

config.pl, Release 99.2beta8 (Revision 1.32)
Accompanies LaTeX2HTML, (C) 1999 GNU Public License.

checking for old config file (cfgcache.pm)... not found 
(ok)
checking for platform... MSWin32 (Windows 32 bit)
checking for C:\Programs\Perl\bin\Perl.exe... 
C:\Programs\Perl\bin\Perl.exe
checking perl version... 5.006001
checking if perl supports some dbm... yes
checking if perl globbing works... yes
checking for c:\programs\texmf\miktex\bin\tex... 
c:\programs\texmf\miktex\bin\tex.exe
checking for c:\programs\texmf\miktex\bin\latex... 
c:\programs\texmf\miktex\bin\latex.exe
checking for c:\programs\texmf\miktex\bin\initex... 
c:\programs\texmf\miktex\bin\initex.exe
checking for kpsewhich... no
checking for TeX include path... 
c:\programs\localtexmf\tex
checking for c:\programs\texmf\miktex\bin\initexmf... 
c:\programs\texmf\miktex\bin\initexmf.exe
checking for c:\programs\texmf\miktex\bin\dvips... 
c:\programs\texmf\miktex\bin\dvips.exe
checking dvips version... 5.86
checking if dvips supports the combination of -E and -
i -S 1... yes
Note: Will use PK generation (mode=toshiba, dpi=180)
checking if dvips supports the -mode switch... yes
checking for html4-check... no
checking for c:\programs\gs\gs7.00\bin\gswin32c... 
c:\programs\gs\gs7.00\bin\gswin32c.exe
checking for ghostscript version... 7.00
checking for ghostscript portable bitmap device... 
pnmraw
checking for full color device for anti-aliasing... 
ppmraw
checking for ghostscript library and font paths... 
built-in paths are correct
checking for c:\programs\netpbm\bin\pnmcrop... 
c:\programs\netpbm\bin\pnmcrop.exe
checking if pnmcrop can crop from one direction... yes
checking for c:\programs\netpbm\bin\pnmflip... 
c:\programs\netpbm\bin\pnmflip.exe
checking for c:\programs\netpbm\bin\ppmquant... 
c:\programs\netpbm\bin\ppmquant.exe
checking for c:\programs\netpbm\bin\pnmfile... 
c:\programs\netpbm\bin\pnmfile.exe
checking for c:\programs\netpbm\bin\pnmcat... 
c:\programs\netpbm\bin\pnmcat.exe
checking for c:\programs\netpbm\bin\pbmmake... 
c:\programs\netpbm\bin\pbmmake.exe
checking for c:\programs\netpbm\bin\ppmtogif... 
c:\programs\netpbm\bin\ppmtogif.exe
checking if ppmtogif can make transparent GIFs... error
    Execution of c:\programs\netpbm\bin\ppmtogif.exe 
did not produce expected output

checking for c:\programs\netpbm\bin\pnmtopng... 
c:\programs\netpbm\bin\pnmtopng.exe
checking for temporary disk space... c:\temp
creating cfgcache.pm
creating test.bat
creating install.bat
Note: Will install...
      ... executables to   : C:\progams\latex2html\bin
      ... library items to : C:\progams\latex2html

--------[END of config.log]---------



--------[BEGINNING OF OUTPUT test.bat]---------

... checking latex2html
... checking texexpand
... checking pstoimg
*** Running C:\TEMP\l2h\latex2html.bat -
test_mode          l2htest.tex
This is LaTeX2HTML Version 99.2beta8 (1.46)
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 C:\TEMP\l2h\versions\html3_2.pl

 *** processing declarations ***

Loading C:\TEMP\l2h\versions\latin1.plStarting at 
1002016505 seconds

OPENING C:\TEMP\l2h\tests\l2htest.tex 

Cannot create directory l2htest\: File exists, reusing 
it.
Reusing directory l2htest\:

Note: Working directory is C:\TEMP\l2h\tests\l2htest
Note: Images will be generated in c:\temp\l2h80




Loading C:\TEMP\l2h\styles\texdefs.perl...
Loading C:\TEMP\l2h\styles\article.perl
Reading ...
++
@@@

Doing .\basic.tex 
%%%
 *** opening brace #27  is unmatched ***
 preceding: \Large Large and {\bf boldface
 

 *** opening brace #28  is unmatched ***
 preceding: \bf boldface
 

Processing macros ...++
@@@@@@@@@@@@@@@@@@@@

Doing .\basicinc.tex 
%%%
 *** matching brace #28 found ***

 *** matching brace #27 found ***

Processing macros ...++
@@@@@@@@@@@

Doing .\formulas.tex 
%%
Processing macros ...++
@@@

Translating ...
0/6:top of l2htest:"LaTeX2HTML Test Document" for 
l2htest.html

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

1/6:section:.."Some basic stuff" for node1.html
;..;

2/6:subsection:..."Fonts" for node2.html
;.......................;..

3/6:subsection:..."Lists" for node3.html
;.,..,..;.

4/6:subsection:..."Table" for node4.html
;..,..;.

5/6:section:.."Mathematic formulas" for node5.html
;.,.,;..

6/6:sectionstar:.."About this document ..." for 
node6.html
;;.

Writing image file ...

c:\programs\texmf\miktex\bin\latex.exe ./images.tex
This is TeX, Version 3.14159 (MiKTeX 2.1)
(./images.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for english, 
french, german, ngerman, du
mylang, nohyphenation, loaded.

(C:\Programs\texmf\tex\latex\base\article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX 
document class
(C:\Programs\texmf\tex\latex\base\size10.clo))
(C:\Programs\texmf\tex\latex\base\ifthen.sty)
(C:\Programs\texmf\tex\latex\graphics\color.sty
(C:\Programs\texmf\tex\latex\00miktex\color.cfg)
(C:\Programs\texmf\tex\latex\graphics\dvips.def)
(C:\Programs\texmf\tex\latex\graphics\dvipsnam.def))
(C:\Programs\texmf\tex\latex\base\inputenc.sty) 
(images.aux)

latex2htmlLength hsize=349.0pt

latex2htmlLength vsize=633.0pt

latex2htmlLength hoffset=0.0pt

latex2htmlLength voffset=0.0pt

latex2htmlLength topmargin=0.0pt

latex2htmlLength topskip=0.00003pt

latex2htmlLength headheight=0.0pt

latex2htmlLength headsep=0.0pt

latex2htmlLength parskip=0.0pt plus 1.0pt

latex2htmlLength oddsidemargin=62.0pt

latex2htmlLength evensidemargin=62.0pt

l2hSize :displaymath105:13.77855pt::0.0pt::349.0pt.
[1]
l2hSize :tex2html_wrap_inline107:10.59451pt::10.59451pt:
:85.6146pt.
[2] (images.aux) )
Output written on images.dvi (2 pages, 880 bytes).
Transcript written on images.log.

 *** processing 2 images ***

Generating postscript images using dvips ...
c:\programs\texmf\miktex\bin\dvips.exe -S1 -i  -E -
oc:\temp\l2h80\image .\images.dvi
Converting image #1
pstoimg.bat V99.2beta8 (Revision 1.11, Perl 5.006001)
pstoimg.bat: Temporary directory is c:\temp\l2h80
pstoimg.bat: Processing c:\temp\l2h80\image001.ps
pstoimg.bat: EPSF dimensions are 211x19
pstoimg.bat: Running c:\programs\gs\gs7.00
\bin\gswin32c.exe  -sDEVICE=ppmraw -g338x31  -r115 -
dTextAlphaBits=4  -sOutputFile=c:\temp\l2h80\p147.pnm 
GS>-133 -702 translate
GS>(c:/temp/l2h80/image001.ps) run
GS>showpage
GS>quit

AFPL Ghostscript 7.0 (2001-04-08)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All 
rights reserved.
This software comes with NO WARRANTY: see the file 
PUBLIC for details.
GS>GS>>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Running "c:\programs\netpbm\bin\pnmcrop.exe  < 
c:\temp\l2h80\p147.pnm > c:\temp\l2h80\p147.t01"
pstoimg.bat: 
Error: "c:\programs\netpbm\bin\pnmcrop.exe  < 
c:\temp\l2h80\p147.pnm > c:\temp\l2h80\p147.t01" 
failed: No such file or directory

Error while converting image

Error: Cannot read 'img1.png': No such file or directory
Converting image #2
pstoimg.bat V99.2beta8 (Revision 1.11, Perl 5.006001)
pstoimg.bat: Temporary directory is c:\temp\l2h80
pstoimg.bat: Processing c:\temp\l2h80\image002.ps
pstoimg.bat: EPSF dimensions are 90x28
pstoimg.bat: Running c:\programs\gs\gs7.00
\bin\gswin32c.exe  -sDEVICE=ppmraw -g144x45  -r115 -
dTextAlphaBits=4  -sOutputFile=c:\temp\l2h80\p157.pnm 
GS>-133 -693 translate
GS>(c:/temp/l2h80/image002.ps) run
GS>showpage
GS>quit

AFPL Ghostscript 7.0 (2001-04-08)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All 
rights reserved.
This software comes with NO WARRANTY: see the file 
PUBLIC for details.
GS>GS>>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Running "c:\programs\netpbm\bin\pnmcrop.exe  < 
c:\temp\l2h80\p157.pnm > c:\temp\l2h80\p157.t01"
pstoimg.bat: 
Error: "c:\programs\netpbm\bin\pnmcrop.exe  < 
c:\temp\l2h80\p157.pnm > c:\temp\l2h80\p157.t01" 
failed: No such file or directory

Error while converting image

Error: Cannot read 'img2.png': No such file or directory

Doing section links ................

*********** WARNINGS ***********  

Failed to convert image c:\temp\l2h80\image001.ps

Failed to convert image c:\temp\l2h80\image002.ps

To resolve the image conversion problems please consult
the "Troubleshooting" section of your local User Manual
or follow the links to it at
http://www-
math.mpce.mq.edu.au/texdev/LaTeX2HTML/docs/manual/


Unknown commands: basicinc formulas
Done.

To view the results, point your browser at:
file:///C|/TEMP/l2h/tests/l2htest/index.html
Timing: 10 seconds

--------[END OF OUTPUT test.bat]---------