> 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

Reply via email to