[tex4ht] tex4ht and utf8 / -cunihtf-option doesn't work.

Ulrike Fischer news3 at nililand.de
Mon May 30 14:18:30 CEST 2011

Am Mon, 30 May 2011 12:32:11 +0200 schrieb Ulrike Fischer:

> I couldn't adapt htlatex.bat so that one can pass the " -cunihtf
> -utf" in its second argument to tex4ht.

I found it. The variables (%3, %4, %5) are wrong. When used like
this the quotes around the parameters are still present and so e.g.
tex4ht %1 %3 tries to run  "tex4ht file "-cunihtf -utf8".  When the
%3 is directly after an -i<path> it gets somehow eaten. 

One must use a tilde ~ to get rid of the quotes.

So the correct line for tex4ht is 

tex4ht %1  -ic:\tex4ht\texmf\tex4ht\ht-fonts\ %~3

Then it also doesn't matter if the path use backslash or slashes.
(Contrary to the claim in 

Actually on miktex 
tex4ht %1 %~3 
is enough as it finds the tex4ht.env through kpathsea.

%4 (t4ht) and %5 (latex) should be adapted similary.

Ulrike Fischer 

More information about the tex4ht mailing list