[tex4ht] TeX4ht does not work properly with default TeXLive Windows install (solved)

Beuthe, Thomas beuthet at aecl.ca
Tue Sep 14 23:29:49 CEST 2010


Summary of problem:

After installing TeXLive 2009 and running htlatex on a windows
system, TeX4ht did not generate any png files.


After some debugging, the problem was that TeX4ht needed to use the
"convert" utility which is installed by default on most
linux/unix operating systems. On Windows systems, "convert"
means convert from fat32 to ntfs disc mount. A way of
correcting this is to install ImageMagic for Windows, and also
install a modern version of ghostscript that can convert ps to
png and also make sure that both are in the path. So, this is
one solution to this problem.

After more discussion it turns out that a hidden version of
ghostscript is installed with TeXLive that could be used by
TeX4ht to generate the png files. instead of ImageMagic + gs

It involved making a simple to TeX4ht.env

I added the new change to the TeXLive 2009 install on my
machine and tested it to death. Other than an occasional
hiccup while producing between 2500 and 10,000 sequential
png files, possibly due to an error condition generated
due to system load (?), everthing worked perfectly.

The change was made by Akira Kakuto, and Reinhard
Kotucha let me know about it. 

In fact, using gs to do the conversion produces png files
 that are often less than half the size of those produced
by ImageMagic! I asked about this, and Reinhard said
this is normal. In fact, it has been shown that gs
sometimes produces png files that are very much smaller than

The file that was changed was


I have included a copy.
In case it has not been doen already, can this be added
to the latest distribution please?

Thanks to all those who helped me resolve this problem.



This e-mail, and any attachments, may contain information that
is confidential, subject to copyright, or exempt from disclosure.
Any unauthorized review, disclosure, retransmission, 
dissemination or other use of or reliance on this information 
may be unlawful and is strictly prohibited.  


Le présent courriel, et toute pièce jointe, peut contenir de 
l'information qui est confidentielle, régie par les droits 
d'auteur, ou interdite de divulgation. Tout examen, 
divulgation, retransmission, diffusion ou autres utilisations 
non autorisées de l'information ou dépendance non autorisée 
envers celle-ci peut être illégale et est strictement interdite.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tex4ht.env
Type: application/octet-stream
Size: 14241 bytes
Desc: tex4ht.env
URL: <http://tug.org/pipermail/tex4ht/attachments/20100914/6c7f104c/attachment.obj>

More information about the tex4ht mailing list