Eitan Gurari wrote:

 > I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

 > ----------------------------
 > tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
> tex4ht demoarticle.tex
 > ] [2] [3] [4
 > Renaming `cmmi12____.png' to `hzfx____.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

 > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 > % tex4ht.env (MiKTeX 2.4.1771)                           %
 > % Copyright (C) 1997--2004        Eitan M. Gurari        %

 >   <convert>
 > G.png
 > Gif exist zz%%4.ps DEL zz%%4.ps >nul
 > Gif exist %%3 DEL %%3 >nul
 > Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
 > Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
-dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch 
-dNOPAUSE zz%%4.ps -c quit
> Gif exist zz%%4.ps DEL zz%%4.ps >nul > G.
 >  Gif exist zz%%4.ps DEL zz%%4.ps >nul
 >  Gif exist %%3 DEL %%3 >nul
 >  Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
 >  Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent "#FFFFFF" 
%%3
 >  Gif exist zz%%4.ps DEL zz%%4.ps >nul
 >   </convert>


Can you try in tex4ht.env the following code segment instead of the above one.

   <convert>
Gif exist zz%%4.ps DEL zz%%4.ps >nul
Gif exist %%3 DEL %%3 >nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent "#FFFFFF" %%3
Gif exist zz%%4.ps DEL zz%%4.ps >nul </convert>

 >  g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

    http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
    => [1 Mar 05] [12 Nov 04]

-eitan




It worked very well with a slight exception. I see well close up,
and the math equations produced are 15-20% too small. Many people
could not read them as they are. The .jpgs are not the same size
as the math equations displayed as when .png files are selected.
No doubt the remedy is already contained in the documentation.

They are very distinct and not blurry, if you see well close up.
I also noticed that the tex4ht-bin had been updated May 19, 2006
and I didn't have it. So I downloaded it and it made no apparent
change to the quality of the htlatex outputted web page/images.

The conversion with your patch was definitely an improvement
over using "mogrify  -format jpg  *.png"
I didn't even know this was a bug since Ares reported this
jpg conversion working for him without any editing.

I've tried conversion from to html with Word and Adobe Pro and
they really stink. I was amazed when I saw the quality of
the ~xypic.htm conversion. I've read other people remarking
on how responsive you are to fixing anything that comes up!
They say a picture is worth a thousand words, so I'm sending
yet another attachment of the .png before I edited tex4ht.env
and the aftermath of editing tex4ht.env which does the right
thing with producing the required .jpegs but lacks stature.
Actually, I think both png and jpg output is currently small.

Best regards,
Stephen

PNG image

Reply via email to