[l2h] two problems in latex2html Version 2002-2-1 (1.70)

Patrick Broos patb@astro.psu.edu
Thu, 17 Oct 2002 16:45:49 -0400


Hello latex2html developers,

I think I've found a typo in latex2html Version 2002-2-1 (1.70).  Line 3956 of 
the Perl program "latex2html" currently says this:
   if (-f sprintf("%s%.3d%s", $IMAGE_PREFIX, ++$new_page_num, ".ps"));
but I think it should say this:
   if (-f sprintf("%s/%s%.3d%s", $TMPDIR, $IMAGE_PREFIX, ++$new_page_num, ".ps"));

That code is part of logic that seeks to detect when images.tex produces more 
pages than it should, because a figure somewhere produced more than one page.  I 
hope you'll repair latex2html so it correctly makes this check; I spent about 8 
hours chasing down an "Illegal seek" error from pnmcrop which turned out to be 
caused by such a multi-page figure.


I'd like to ask your assistance on a second matter if you are able to respond to 
questions.  Despite reading clear instructions in the manual, and seeing clear 
examples on the web, I have been unable to get the -no_image and -images_only 
options to work.  (Those options sound very handy.)  The calls I'm using are:

/bin/rm -r ae_users_guide
latex2html -no_images ae_users_guide.tex
latex2html -images_only -debug ae_users_guide.tex

The -images_only call runs latex on images.tex, and then runs dvips, but fails 
to convert the output of dvips to png.  The end of the transcript is below.  Do 
you have any ideas?  I've studied the Perl in latex2html but can't figure out 
what's happening.

Thanks,
Patrick Broos

...
/usr/local/bin/latex ./images.tex
Debug (syswait): Running "/usr/local/bin/latex ./images.tex"
  at /bulk/pkg/latex2html/latex2html line 3782
This is TeX, Version 3.14159 (C version 6.1)
(images.tex
LaTeX2e <1996/12/01> patch level 1
Babel <v3.6h> and hyphenation patterns for american, german, loaded.

Debug (syswait): Finished child process: #26717
  at /bulk/pkg/latex2html/latex2html line 3782

Generating postscript images using dvips ...

  *** processing 23 images ***
/usr/local/teTeX/bin/dvips -S1 -i   -o/tmp/l2h26707/image ./images.dvi
Debug (syswait): Running "/usr/local/teTeX/bin/dvips -S1 -i 
-o/tmp/l2h26707/image ./images.dvi"
  at /bulk/pkg/latex2html/latex2html line 3802
This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software
' TeX output 2002.10.17:1640' -> /tmp/l2h26707/image
(-> /tmp/l2h26707/image001) <tex.pro><special.pro><color.pro>[1]
(-> /tmp/l2h26707/image002) <tex.pro><special.pro><color.pro>[2]
(-> /tmp/l2h26707/image003) <tex.pro><special.pro><color.pro>[3]
(-> /tmp/l2h26707/image004) <tex.pro><special.pro><color.pro>[4]
(-> /tmp/l2h26707/image005) <tex.pro><special.pro><color.pro>[5]
(-> /tmp/l2h26707/image006) <tex.pro><special.pro><color.pro>[6]
(-> /tmp/l2h26707/image007) <tex.pro><special.pro><color.pro>[7]
(-> /tmp/l2h26707/image008) <tex.pro><special.pro><color.pro>[8]
(-> /tmp/l2h26707/image009) <tex.pro><special.pro><color.pro>[9]
(-> /tmp/l2h26707/image010) <tex.pro><special.pro><color.pro>[10]
(-> /tmp/l2h26707/image011) <tex.pro><special.pro><color.pro>[11]
(-> /tmp/l2h26707/image012) <tex.pro><special.pro><color.pro>[12]
(-> /tmp/l2h26707/image013) <tex.pro><special.pro><color.pro>[13]
(-> /tmp/l2h26707/image014) <tex.pro><special.pro><color.pro>[14]
(-> /tmp/l2h26707/image015) <tex.pro><special.pro><color.pro>[15]
(-> /tmp/l2h26707/image016) <tex.pro><special.pro><color.pro>[16]
(-> /tmp/l2h26707/image017) <tex.pro><special.pro><color.pro>[17]
(-> /tmp/l2h26707/image018) <tex.pro><special.pro><color.pro>[18
<source_extraction.eps>] (-> /tmp/l2h26707/image019) <tex.pro><special.pro>
<color.pro>[19] (-> /tmp/l2h26707/image020) <tex.pro><special.pro><color.pro>
[20] (-> /tmp/l2h26707/image021) <tex.pro><special.pro><color.pro>[21]
(-> /tmp/l2h26707/image022) <tex.pro><special.pro><color.pro>[22]
(-> /tmp/l2h26707/image023) <tex.pro><special.pro><color.pro>[23]
(-> /tmp/l2h26707/image024) <tex.pro><special.pro><color.pro>[24]
Debug (syswait): Finished child process: #26718
  at /bulk/pkg/latex2html/latex2html line 3802


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

If you are having problems displaying the correct images with Mosaic,
try selecting "Flush Image Cache" from "Options" in the menu-bar
and then reload the HTML file.

Done.
Timing: 3 seconds


-- 
====================================================================
Patrick S. Broos			patb@astro.psu.edu
UVOT Software Systems Engineer 	

Swift Explorer Project			My office   814-865-5509
Penn State University
2565 Park Center Blvd., Suite 200	FAX         814-865-6854
State College, PA  16801
http://www.astro.psu.edu 
	project office  865-7750
====================================================================