[l2h] pstoimg.bat file errors

Murray Eisenberg murray at math.umass.edu
Sun May 30 19:56:20 CEST 2004


I'm trying to get latex2html (version 2002-2-1) configured and installed 
for use with MikTeX under Windows XP, per instructions at 
http://www.mayer.dial.pipex.com/l2h.htm.

During configuration testing, pstoimg.bat is not saving image files 
when, after running config.bat (with executable paths having been set up 
in config.bat, prefs.pm, and Windows PATH enviornment variable; and with 
install.bat having been created but not yet run), I run

   ..\latex2html l2htest.tex

in the latex2html-2002-2-1\tests directory.

The specific error messages are:

=== FROM ..\latex2html l2htest.tex OUTPUT ===

    *** processing 2 images ***

   Generating postscript images using dvips ...
   Converting image #2
   pstoimg.bat: Error: "D:\Graphics\NetPbm\bin\pnmtopng.exe -interlace 
    -trans gray85 < C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\l2h248\p1780.pnm 
 > img2.png" failed: Bad file descriptor

   Error while converting image
   Converting image #1
   pstoimg.bat: Error: "D:\Graphics\NetPbm\bin\pnmtopng.exe -interlace 
-trans gray85 < C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\l2h248\p3892.pnm > 
img1.png" failed: Bad file descriptor

   Error while converting image

===========

The result is .png files that are 0 KB.  What's wrong and how should it 
be fixed??

I'm using ACtiveState perl 5.8.3 along with Ghostscript 8.14, MiKTeX 
2.4.1545, and netpbm 10.18.4.  There seems to be no problem with finding 
perl, Ghostscript, or (most) netpbm executables.  Here are some settings 
from my edited config.bat...

set gs_lib=D:\WP\gs\gs8.14\lib;D:\WP\gs\fonts

... and more from my edited prefs.pm:

$prefs{'EXTRAPATH'} = 'D:\\Graphics\\NetPbm\\bin:D:\\WP\\gs\\gs8.14\\bin';

$prefs{'PREFIX'} = 'D:\\WP\\TeXutils\\L2H';

Here is the whole log from running latex2html on l2htest.tex (from 
redirecting output to a file).  After that I give config.log.

====  WHOLE OUTPUT: ..\latex2html l2htest.tex ====

This is LaTeX2HTML Version 2002-2-1 (1.71)
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



Extension: loading D:\WP\TeXutils\L2H\versions\latin1.pl
HTML version: loading D:\WP\TeXutils\L2H\versions\html3_2.pl

  *** processing declarations ***

OPENING E:\latex2html-2002-2-1\tests\l2htest.tex

Note: Working directory is E:\latex2html-2002-2-1\tests\l2htest
Note: Images will be generated in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\l2h248




Loading D:\WP\TeXutils\L2H\styles\texdefs.perl...
Package: loading D:\WP\TeXutils\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: 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 ...

This is e-TeX, Version 3.141592-2.1 (MiKTeX 2.4)
entering extended mode
(./images.tex
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german, 
ngerman, du
mylang, nohyphenation, loaded.


  *** processing 2 images ***

Generating postscript images using dvips ...
Converting image #2
pstoimg.bat: Error: "D:\Graphics\NetPbm\bin\pnmtopng.exe -interlace 
-trans gray85 < C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\l2h248\p1780.pnm > 
img2.png" failed: Bad file descriptor

Error while converting image
Converting image #1
pstoimg.bat: Error: "D:\Graphics\NetPbm\bin\pnmtopng.exe -interlace 
-trans gray85 < C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\l2h248\p3892.pnm > 
img1.png" failed: Bad file descriptor

Error while converting image

Doing section links ................
  *** Adding document-specific styles ***
Unknown commands: formulas basicinc
Done.



=== CONFIG.LOG ========

config.pl, Release 2002-2-1 (Revision 1.49)
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 D:\Language\ActiveState\Perl\bin\perl.exe... 
D:\Language\ActiveState\Perl\bin\perl.exe
checking perl version... 5.008003
checking if perl supports some dbm... yes
checking if perl globbing works... yes
checking for tex... d:\WP\texmf\miktex\bin\\tex.exe
checking for latex... d:\WP\texmf\miktex\bin\\latex.exe
checking for initex... d:\WP\texmf\miktex\bin\\initex.exe
checking for kpsewhich... d:\WP\texmf\miktex\bin\\kpsewhich.exe
checking for kpsewhich syntax... ok (style=1)
checking for TeX include path... /latex2html-2002-2-1\html
checking for mktexlsr... d:\WP\texmf\miktex\bin\\mktexlsr.exe
checking for dvips... d:\WP\texmf\miktex\bin\\dvips.exe
checking dvips version... 5.90a
checking if dvips supports the combination of -E and -i -S 1... yes
checking for html4-check... no
checking for gswin32c... d:\WP\gs\gs8.14\bin\gswin32c.exe
checking for ghostscript version... 8.14
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 pnmcrop... D:\Graphics\NetPbm\bin\pnmcrop.exe
yes
checking for pnmflip... no
Warning: You may need to rely on LaTeX to generate images with  effects.
checking for ppmquant... D:\Graphics\NetPbm\bin\ppmquant.exe
checking for pnmfile... D:\Graphics\NetPbm\bin\pnmfile.exe
checking for pnmcat... D:\Graphics\NetPbm\bin\pnmcat.exe
checking for pbmmake... D:\Graphics\NetPbm\bin\pbmmake.exe
checking for ppmtogif... D:\Graphics\NetPbm\bin\ppmtogif.exe
yes
checking if ppmtogif can make interlaced GIFs... yes
checking for pnmtopng... D:\Graphics\NetPbm\bin\pnmtopng.exe
checking for ppmtojpeg... no
Warning: You cannot directly translate/modify graphics of  format.
checking for pnmcut... D:\Graphics\NetPbm\bin\pnmcut.exe
checking for pnmpad... D:\Graphics\NetPbm\bin\pnmpad.exe
checking for pnmrotate... D:\Graphics\NetPbm\bin\pnmrotate.exe
checking for pnmscale... D:\Graphics\NetPbm\bin\pnmscale.exe
checking for giftopnm... D:\Graphics\NetPbm\bin\giftopnm.exe
checking for jpegtopnm... D:\Graphics\NetPbm\bin\jpegtopnm.exe
checking for pngtopnm... d:\WP\texmf\miktex\bin\\pngtopnm.exe
checking for tifftopnm... d:\WP\texmf\miktex\bin\\tifftopnm.exe
checking for picttoppm... D:\Graphics\NetPbm\bin\picttoppm.exe
checking for anytopnm... no
Warning: You cannot directly translate/modify graphics of  format.
checking for bmptoppm... no
Warning: You cannot directly translate/modify graphics of  format.
checking for pcxtoppm... d:\WP\texmf\miktex\bin\\pcxtoppm.exe
checking for sgitopnm... D:\Graphics\NetPbm\bin\sgitopnm.exe
checking for xbmtopbm... D:\Graphics\NetPbm\bin\xbmtopbm.exe
checking for xwdtopnm... D:\Graphics\NetPbm\bin\xwdtopnm.exe
checking if multiple pipes work... no
Unfortunately multiple pipes are not reliable on this OS.
checking for temporary disk space... C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
creating cfgcache.pm
creating test.bat
creating install.bat
Note: Will install...
       ... executables to   : D:\WP\TeXutils\L2H\bin
       ... shared library items to : D:\WP\TeXutils\L2H
       ... unshared library items to : D:\WP\TeXutils\L2H

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305



More information about the latex2html mailing list