Eitan Gurari wrote:
Steve,

The command

     htlatex demoarticle "html,jpg"

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips ....
        ...
System return: 0 System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...
        ...
System return: 0
-eitan

> Yes, I found that in the log file after you pointed it out, thanks. It > changes the html source code properly, so no need of Search & Replace. > > But first it seems it is needed to generate the .png files with htlatex. > > 1. copy demoarticle.tex (or something.tex) and drawing.eps to C:\demo
 > 2. "htlatex demoarticle.tex" to produce the .png files and html.
 > 3. "htlatex demoarticle.tex "html,jpg" changes the names in source code
 > 4. "mogrify  -format jpg  *.png" change all the .png to .jpg keeps .png
> > ImageMagicks mogrify batches a wizard's spell within the htlatex potion.





Here is the output after conversion, as you see no .jpg files, only some pngs, and not demoarticle0x.png, demoarticle1x.png, demoarticle2x.png
The html source code in demoarticle.html refers to .jpgs though.

I will attach tex4ht.env and the piped demo.txt in this post.
In the next post, the demoarticle.log file.

I think the problem may be due to my older version of ImageMagick.
I will test both of the new 6.2.8 releases for quality of .png
image and to see if the .jpg generation has been fixed. It works
for Ares who has 6.2.8 which is why I suspect this.

C:\ImageMagick 7,176,324 ImageMagick-6.2.3-2-Q16-windows-dll.exe

C:\ares\lyxdemo\lasttest> htlatex demoarticle.tex "html,jpg" > demo.txt

06/27/2006  02:11 PM            14,286 demo.txt
06/27/2006  02:11 PM               670 demoarticle.4ct
06/27/2006  02:11 PM               662 demoarticle.4tc
06/27/2006  02:11 PM               556 demoarticle.aux
06/27/2006  02:11 PM             5,253 demoarticle.css
06/27/2006  02:11 PM            20,048 demoarticle.dvi
06/27/2006  02:11 PM             7,988 demoarticle.html
06/27/2006  02:11 PM             3,004 demoarticle.idv
06/27/2006  02:11 PM             6,875 demoarticle.lg
06/27/2006  02:11 PM            15,350 demoarticle.log
01/31/2003  11:35 AM             3,720 demoarticle.tex
06/27/2006  02:11 PM                16 demoarticle.tmp
06/27/2006  02:11 PM               472 demoarticle.xref
01/31/2003  11:35 AM             7,434 drawing.eps
06/27/2006  02:11 PM               264 hzfx0a0b.png
06/27/2006  02:11 PM               302 hzfx0a0c.png
06/27/2006  02:11 PM               264 hzfx0a0d.png
06/27/2006  02:11 PM               265 hzfx0a0e.png

Regards,
Stephen
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo)) (C:\texmf\tex\generic\tex4ht\tex4ht.sty)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht)
(C:\texmf\tex\latex\graphics\epsfig.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\dvips.def))))
(C:\texmf\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty (C:\texmf\tex\latex\amsmath\amsgen.sty)
) (C:\texmf\tex\latex\amsmath\amsbsy.sty)
(C:\texmf\tex\latex\amsmath\amsopn.sty))
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht demoarticle ---
(demoarticle.tmp)
l.1388 --- TeX4ht warning --- No file demoarticle.xref ---
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\latex.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\article.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphics.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\dvips.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsmath.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amstext.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsbsy.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsopn.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
No file demoarticle.aux.
[1] [2]

LaTeX Warning: Reference `secn:intro' on page 3 undefined on input line 52.


LaTeX Warning: Reference `eqn:cubic' on page 3 undefined on input line 53.

[3]

LaTeX Warning: Reference `tbl:abcdVals' on page 4 undefined on input line 79.

[4] [5] [6]

LaTeX Warning: Reference `fig:curve' on page 7 undefined on input line 103.

[7] [8] <drawing.eps> [9] [10] (demoarticle.aux)

LaTeX Warning: There were undefined references.


LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
Output written on demoarticle.dvi (10 pages, 19676 bytes).
Transcript written on demoarticle.log.
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo)) (C:\texmf\tex\generic\tex4ht\tex4ht.sty)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht)
(C:\texmf\tex\latex\graphics\epsfig.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\dvips.def))))
(C:\texmf\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty (C:\texmf\tex\latex\amsmath\amsgen.sty)
) (C:\texmf\tex\latex\amsmath\amsbsy.sty)
(C:\texmf\tex\latex\amsmath\amsopn.sty))
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht demoarticle ---
(demoarticle.tmp) (demoarticle.xref) (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\latex.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\article.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphics.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\dvips.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsmath.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amstext.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsbsy.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsopn.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)) (demoarticle.aux) [1] [2]
[3]
l.79 --- TeX4ht warning --- \Link{x1-20021}? ---
[4] [5] [6]
l.103 --- TeX4ht warning --- \Link{x1-30011}? ---
[7] [8] <drawing.eps> [9] [10] (demoarticle.aux) )
Output written on demoarticle.dvi (10 pages, 20048 bytes).
Transcript written on demoarticle.log.
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo)) (C:\texmf\tex\generic\tex4ht\tex4ht.sty)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht)
(C:\texmf\tex\latex\graphics\epsfig.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\dvips.def))))
(C:\texmf\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty (C:\texmf\tex\latex\amsmath\amsgen.sty)
) (C:\texmf\tex\latex\amsmath\amsbsy.sty)
(C:\texmf\tex\latex\amsmath\amsopn.sty))
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht demoarticle ---
(demoarticle.tmp) (demoarticle.xref) (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\latex.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\article.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphics.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\dvips.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsmath.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amstext.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsbsy.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\amsopn.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)) (demoarticle.aux) [1] [2]
[3] [4] [5] [6] [7] [8] <drawing.eps> [9] [10] (demoarticle.aux) )
Output written on demoarticle.dvi (10 pages, 20048 bytes).
Transcript written on demoarticle.log.
----------------------------
tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
tex4ht demoarticle.tex 
(C:\texmf\tex4ht\base\win32\tex4ht.env)
(C:\texmf\fonts\tfm\public\cm\cmex10.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmex.htf)
(C:\texmf\fonts\tfm\public\cm\cmsy8.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmsy.htf)
(C:\texmf\fonts\tfm\public\cm\cmsy10.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmsy.htf)
(C:\texmf\fonts\tfm\public\cm\cmmi8.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmmi.htf)
(C:\texmf\fonts\tfm\public\cm\cmmi12.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmmi.htf)
(C:\texmf\fonts\tfm\public\cm\cmr6.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmr.htf)
(C:\texmf\fonts\tfm\public\cm\cmr8.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmr.htf)
(C:\texmf\fonts\tfm\public\cm\cmsy10.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmsy.htf)
(C:\texmf\fonts\tfm\public\cm\cmr12.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmr.htf)
(C:\texmf\fonts\tfm\public\cm\cmr17.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmr.htf)
(C:\texmf\fonts\tfm\public\cm\cmr12.tfm)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\cm\cmr.htf)
(\TEXMF\tex4ht\ht-fonts\iso8859\1\charset\unicode.4hf)
[1 file demoarticle.html
 file demoarticle.css
 file demoarticle.tmp
] [2] [3] [4
Renaming `cmmi12____.png' to `hzfx____.png'
] [5] [6] [7] [8] [9 file demoarticle.tmp
] [10]
Execute script `demoarticle.lg'
----------------------------
t4ht.c (2004-04-21-00:17 Windows MiKTeX)
t4ht demoarticle.tex 
Entering demoarticle.lg
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0e.png DEL hzfx0a0e.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 6 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0e.png -r110x110 
-dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dbatch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul 
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0d.png DEL hzfx0a0d.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 7 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0d.png -r110x110 
-dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dbatch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul 
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0c.png DEL hzfx0a0c.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 8 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0c.png -r110x110 
-dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dbatch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul 
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0b.png DEL hzfx0a0b.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 9 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0b.png -r110x110 
-dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dbatch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul 
System return: 0
Entering demoarticle.css
Entering demoarticle.tmp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tex4ht.env (MiKTeX 2.4.1771)                           %
% Copyright (C) 1997--2004        Eitan M. Gurari        %
%                                                        %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any    %
% later version. The latest version of this license is   %
% in                                                     %
%   http://www.latex-project.org/lppl.txt                %
% and version 1.3 or later is part of all distributions  %
% of LaTeX version 2003/12/01 or later.                  %
%                                                        %
% This work has the LPPL maintenance status "maintained".%
%                                                        %
% This Current Maintainer of this work                   %
% is Eitan M. Gurari.                                    %
%                                                        %
% You are allowed to modify this file without changing   %
% its name, if you modify its signature. Changes to the  %
% signature can be introduced by changing the            %
% parenthesized content within the leading line of this  %
% note.                                                  %
%                                                        %
%                             [EMAIL PROTECTED]  %
%                 http://www.cse.ohio-state.edu/~gurari  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Notes:                                                            %
%  1. Empty lines might be harmful                                  %
%  2. Tagged script segments <tag>...</tag> are scanned only if     %
%     their names are specified within -ctag switches of tex4ht.c   %
%     and t4ht.c. When -c switches are not supplied, a -cdefault    %
%     is implicitly assumed.                                        %
%        The tags <tag> and </tag>, but not their bodies, are       %
%     ignored if they are not located at the start of their lines.  %
%  3. Place this file in your work directory and/or in the same     %
%     directory as tex4ht.exe and t4ht.exe and/or in directory      %
%     `xxx' of your choice. In the latest case, compile tex4ht.c    %
%     and t4ht.c with `#define ENVFILE xxx', or provide the address %
%     of the file to tex4ht and t4ht throught the -e switch         %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% * Fix the paths                                                   %
% * A path may start with:                                          %
%   ~ for environment variable HOME                                 %
%   ~~ for environment variable TEX4HTTFM                           %
% * A ! requests recursive search into  subdirectories              %
% * Multiple t and i entries are allowed                            %
% * Notes for MiKTeX users:                                         %
%   + t entries are ignored                                         %
%   + the path before /ht-fonts/ is ignored in i records that don't %
%     represent real addresses                                      %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
<default>
i\TEXMF\tex4ht\ht-fonts\iso8859\1\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</default>

<mozhtf>
i\TEXMF\tex4ht\ht-fonts\mozilla\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
i\TEXMF\tex4ht\ht-fonts\iso8859\1\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
</mozhtf>

<iso2htf>
i\TEXMF\tex4ht\ht-fonts\iso8859\2\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</iso2htf>

<iso5htf>
i\TEXMF\tex4ht\ht-fonts\iso8859\5\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</iso5htf>

<iso7htf>
i\TEXMF\tex4ht\ht-fonts\iso8859\7\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</iso7htf>

<iso8htf>
i\TEXMF\tex4ht\ht-fonts\iso8859\8\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</iso8htf>

<iso15htf>
i\TEXMF\tex4ht\ht-fonts\iso8859\15\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</iso15htf>

<koi8rhtf>
i\TEXMF\tex4ht\ht-fonts\koi\8r\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
</koi8rhtf>

<symhtf>
i\TEXMF\tex4ht\ht-fonts\symbol\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
</symhtf>

<win1251htf>
i\TEXMF\tex4ht\ht-fonts\win\1251\!
i\TEXMF\tex4ht\ht-fonts\unicode\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
</win1251htf>

<unihtf>
i\TEXMF\tex4ht\ht-fonts\unicode\!
i\TEXMF\tex4ht\ht-fonts\ascii\!
i\TEXMF\tex4ht\ht-fonts\alias\!
</unihtf>

%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% dvi-to-xxx                                                        %
%   choose one G-script                                             %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% dvips options                                                     %
%   magnification: -x mag  (e.g., -x 1200)                          %
%   page size:     -T x,y  (e.g., -T 14in,14in)                     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  <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>
<convert-old>
Gif exist zz%%4.ps DEL zz%%4.ps >nul
Gif exist zz%%4.ppm DEL zz%%4.ppm >nul
Gif exist %%3 DEL %%3 >nul
Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
Gmgs.exe -dNOPAUSE -sDEVICE=ppmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 
-r110x110 -sOutputFile=zz%%4.ppm -q zz%%4.ps -c quit
Gconvert.exe zz%%4.ppm -trim +repage -density 110x110 -transparent #FFFFFF %%3
Gif exist zz%%4.ps DEL zz%%4.ps >nul
Gif exist zz%%4.ppm DEL zz%%4.ppm >nul
</convert-old>
%--------- alternative instructions for old versions of convert
% Gconvert.exe zz%%4.ps -trim -density 110x110 -transparent "#FFFFFF" %%3
% Gconvert.exe zz%%4.ps -crop 0x0 +repage -density 110x110 -transparent 
"#FFFFFF" %%3
% Gconvert.exe zz%%4.ps -crop 0x0 +page -density 110x110 -transparent "#FFFFFF" 
%%3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<netpbm>
Gif exist  zz%%4.ps DEL zz%%4.ps
Gif exist zz%%4.ppm DEL zz%%4.ppm
Gif exist temp.ppm DEL temp.ppm
Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  > zz%%4.ps
Gmgs.exe -sDEVICE=ppm -r110 -sOutputFile=zz%%4.ppm -q -dbatch -dTextAlphaBits=4 
-dGraphicsAlphaBits=4 -dNOPAUSE zz%%4.ps -c quit
Gmove /y zz%%4.ppm temp.ppm
Gpnmcrop  temp.ppm > zz%%4.ppm
Gif exist %%3 DEL %%3
Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
Gif exist  zz%%4.ps DEL zz%%4.ps
Gif exist zz%%4.ppm DEL zz%%4.ppm
Gif exist temp.ppm DEL temp.ppm
% Gppmtogif -interlace -transparent 1,1,1 zz%%4.ppm > %%3
</netpbm>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Default scripts, shifted rightward 1 pos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 s--- needs --- %%1.idv[%%2] ==> %%3 ---
 b--- characters ---
 g.png
% empty bitmaps                                                     %
 Ecopy  empty.png %%1%%2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% t4ht -d%%2                                                        %
Mmove %%1 %%2%%3
Ccopy %%1 %%2%%3
% removed protection                                                %
S*
<validate>
.xml myxmlparser %%1.xml
.html myhtmlparser %%1.html
.css mycssparser %%1.css
</validate>
 %
% validator, XSTL tranformations,...                                %
 Xif "%%2"=="html" nsgmls -wxml -wall -c catalog -s xml.dcl %%1.%%2
 Xecho "*****************************************"
%
% * Address for an automatically created bookkeeping file           %
% * Ignored under kpathsea                                          %
% * The work directory is assumed for a default                     %
lc:\tex4ht\tex4ht.fls
%
<oo>
%%% openoffice                                                     %
.4os mkdir sxw-%%0.dir
.4os mkdir sxw-%%0.dir\Pictures
.4os move  %%1.4os                  sxw-%%0.dir\settings.xml
.4os move  %%0.xml                  sxw-%%0.dir\content.xml
%
.4om mkdir sxw-%%0.dir\%%1
.4om move  %%1.4om                  sxw-%%0.dir\%%1\content.xml
.4om copy  sxw-%%0.dir\settings.xml sxw-%%0.dir\%%1\settings.xml
%
.4of mkdir sxw-%%0.dir\META-INF
.4of move  %%1.4of sxw-%%0.dir\META-INF\manifest.xml
%
.4ot move  %%1.4ot    sxw-%%0.dir\meta.xml
.4oy move  %%1.4oy    sxw-%%0.dir\styles.xml
.4og move  %%1        sxw-%%0.dir\Pictures\%%1
%
.4ox cd    sxw-%%0.dir\
.4ox cd    sxw-%%0.dir\META-INF
.4ox zip   sxw-%%0.dir\%%0.sxw        sxw-%%0.dir\META-INF\*.*
.4ox cd    ..
.4ox cd    sxw-%%0.dir\Pictures
.4ox zip   sxw-%%0.dir\%%0.sxw        sxw-%%0.dir\Pictures
.4ox cd ..
.4ox zip -j sxw-%%0.dir\%%0.sxw       sxw-%%0.dir\*
.4ox cd ..
%
.4ox move sxw-%%0.dir\%%0.sxw .
%
.4ox del %%1.4ox
.4ox echo y | del sxw-%%0.dir\Pictures\*.*
.4ox rd sxw-%%0.dir\Pictures
.4ox echo y | del sxw-%%0.dir\META-INF\*.*
.4ox rd sxw-%%0.dir\META-INF
.4ox echo y | del sxw-%%0.dir\*.*
.4ox rd sxw-%%0.dir
%%% end openoffice                                                  %
</oo>
%
% Activate the following non-concurent sub script, if the previous
% one does not work. That is, interchange <oo> with <oo-alt>
% and </oo> with </oo-alt>.
%
<oo-alt>
%%% openoffice                                                     %
.4os mkdir Pictures
.4os move  %%1.4os settings.xml
.4os move  %%0.xml content.xml
%
.4om mkdir %%1
.4om move  %%1.4om      %%1\content.xml
.4om copy  settings.xml %%1\settings.xml
%
.4of mkdir META-INF
.4of move  %%1.4of META-INF\manifest.xml
%
.4ot move  %%1.4ot    meta.xml
.4oy move  %%1.4oy    styles.xml
.4og move  %%1        Pictures\%%1
%
.4ox zip -m %%0.sxw Pictures
.4ox zip -m %%0.sxw settings.xml
.4ox zip -m %%0.sxw content.xml
.4ox zip -m -r %%0.sxw %%0-m*
.4ox zip -m -r %%0.sxw META-INF
.4ox zip -m %%0.sxw meta.xml
.4ox zip -m %%0.sxw styles.xml
.4ox zip -m %%0.sxw Pictures/*
%%% end openoffice                                                  %
</oo-alt>
%
<javahelp1>
.java cp %%1.java jh-%%0.dir\.
.java javac -classpath c:\jh1.1.3\javahelp\lib\jh.jar jh-%%0.dir\%%1.java
.java rm jh-%%0.dir\%%1.java
</javahelp1>
<javahelp>
.java cp %%1.java jh-%%0.dir\.
.java javac -classpath c:\jh2.0\javahelp\lib\jh.jar jh-%%0.dir\%%1.java
.java rm jh-%%0.dir\%%1.java
</javahelp>

% end of file                                                       %

Reply via email to