[l2h] error converting images

Gosse Michel michel.gosse@ac-poitiers.fr
Thu, 13 Jun 2002 22:25:22 -0400


Thanks for the reply, but with the latest latex2html, it doesn't work. 
When creating the images, i have the warning messages :

Generating postscript images using dvips ...
This is dvips(k) 5.86f Copyright 2001 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2002.06.13:2223' -> /tmp/l2h16857/image
kpathsea: Running mktexpk --mfmode ljfour --bdpi 8000 --mag 1+0/8000 
--dpi 8000 eccc2074
mktexpk: Mismatched mode ljfour and resolution 8000; ignoring mode.
mktexpk: Can't guess mode for 8000 dpi devices.
mktexpk: Use a config file, or update me.

generating png images is all right, but with gif i have the problem.

Best regards

> With mandrake 8.2 and the latest version of latex2html, i have the
> error messages when converting using gif format :
>
> Error while converting image
> Converting image #13
> pstoimg: Error: "/usr/bin/ppmquant -floyd 256 <
> /tmp/l2h17648/p18820.pnm | /usr/bin/ppmtogif -interlace -trans
> '#ffffff'  > img13.gif" failed: Repérage illégal
>
> Any idea ?

This is a problem I recently encountered. With the help of people on 
this
list and a bit of digging in the script I found the problem is in the
make_latex subroutine. Open /usr/bin/latex2html in an editor and go to
line 6783 which should read

unless ($preamble);

As Ross (IIRC) told me, change this to read

unless ($preamble && $preamble !~ /^\s+$/s);

Then save the file and try again - it fixed the problem here.

Chris

-- 
****************************
Michel Gosse 
michel.gosse@ac-poitiers.fr
michel.gosse@freesbee.fr
****************************