Excellent hint, thanks a lot. Have you possibly found a way how to obtain unicode xhtml files without modifying the paths in tex4ht.env file? In MikTeX 2.7 everything worked neat with the default (although non-existing) paths but now, after an update to MikTeX 2.9, I have to update the paths in tex4ht.env manually, which I'd like to avoid.

Jaroslav

On 30.5.2011 14:18, Ulrike Fischer wrote:
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
-ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env

Then it also doesn't matter if the path use backslash or slashes.
(Contrary to the claim in
http://tug.org/mailman/htdig/tex4ht/2009q3/000006.html).

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.


Reply via email to