Due to security reasons, I'm re-sending the batch. Rename the attached
file to *.bat
Jaroslav
Dne 29.5.2011 23:51, Jaroslav Sobota napsal(a):
Hi Ulrike,
the following batch file works for me. Hope it will help you.
Use: htlatex.bat yourfile.tex
Regards,
Jaroslav
Dne 29.5.2011 18:43, Ulrike Fischer napsal(a):
Hello,
I'm using miktex 2.9 and have problems to generate utf8-encoded
html-file with tex4ht.
I'm trying to compile this example with htlatex:
\documentclass{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
äöüß
\end{document}
The three first steps (the latex runs) from htlatex.bat are not a
problem, but the tex4ht step didn't work, the result was always a
8-bit-encoded html.
I played around with the options of tex4ht on the command line and
found out that I can get an utf8-html with this command:
==================================================
tex4ht test-ansinew -i"J:\MiKTeX2.9\tex4ht\ht-fonts\unicode!" -utf8
tex4ht.c (2009-01-31-07:33 Windows kpathsea)
tex4ht test-ansinew
-iJ:\MiKTeX2.9\tex4ht\ht-fonts\unicode!
-utf8
(J:/MiKTeX2.9/tex4ht/base/win32/tex4ht.env)
(J:\MiKTeX2.9\tex4ht\ht-fonts\unicode\charset\unicode.4hf)
(J:/MiKTeX2.9/fonts/tfm/jknappen/ec/ecrm1000.tfm)
(J:/MiKTeX2.9/tex4ht/ht-fonts/alias/ec/ec.htf)
Searching `lm-ec.htf' for `ecrm1000.htf'
(J:\MiKTeX2.9\tex4ht\ht-fonts\unicode\lm\lm-ec.htf)
[1 file test-ansinew.html
file test-ansinew.css
file test-ansinew.tmp
]
Execute script `test-ansinew.lg'
===================================================
But the -cunihtf option simply doesn't work:
==================================================
I:\Z-Test>tex4ht test-ansinew -cunihtf -utf8
----------------------------
tex4ht.c (2009-01-31-07:33 Windows kpathsea)
tex4ht test-ansinew
-cunihtf
-utf8
(J:/MiKTeX2.9/tex4ht/base/win32/tex4ht.env)
(J:/MiKTeX2.9/fonts/tfm/jknappen/ec/ecrm1000.tfm)
(J:/MiKTeX2.9/tex4ht/ht-fonts/alias/ec/ec.htf)
Searching `lm-ec.htf' for `ecrm1000.htf'
(J:/MiKTeX2.9/tex4ht/ht-fonts/unicode/lm/lm-ec.htf)
--- error --- Illegal storage address
==================================================
Has someone an idea what could be wrong?
latex %5
\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode
"xhtml,png,charset=utf-8".a.b.c.\input %1
latex %5
\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode
"xhtml,png,charset=utf-8".a.b.c.\input %1
latex %5
\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode
"xhtml,png,charset=utf-8".a.b.c.\input %1
tex4ht %1 -cunihtf -utf8 -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env
t4ht %1 -cvalidate -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env