Hello,
This may be related to the issue about tex4ht giving bad result with
httex (or httexi). I also have problem with outputting raw html. In
plain tex I use
\ifx \HCode \undefined
\else
\HCode{\Hnewline <!-- tex4ht_begin tex_tex4ht_tex tex 1 -->}
\fi
but I get ! Undefined control sequence. for \Hnewline, and when I
remove \Hnewline another error for _ not in mathmode, and when I replace
_ with - what is in \HCode{} is processed as TeX and not output as is.
If I test with some equivalent latex code
\ifdefined\HCode
\HCode{\Hnewline <!-- tex4ht_begin tex_tex4ht_tex tex 1 -->}
\fi
it works well.
I attach the file I use to test httex and the equivalent file with
htlatex.
I guess that all that should be reported to tex4ht.
--
Pat
here \TeX
\ifx \HCode \undefined
\else
\HCode{\Hnewline <!-- tex4ht_begin tex_tex4ht_tex tex 1 -->}
\fi
$$ \chi^2 = \sum_{i=1}^N
\left(y_i - (a + b x_i)
\over \sigma_i\right)^2 $$
\bye
\documentclass{article}
\begin{document}
here \TeX
\ifdefined\HCode
\HCode{\Hnewline <!-- tex4ht_begin tex_tex4ht_tex tex 1 -->}
\fi
$$ \chi^2 = \sum_{i=1}^N
\left(y_i - (a + b x_i)
\over \sigma_i\right)^2 $$
\end{document}