[tex4ht] issue with raw html output with httex

Patrice Dumas pertusus at free.fr
Sun Oct 25 00:32:45 CEST 2020


There seems to be an issue with outputting raw html in plain tex 
with httex.  I use tex4ht that comes with debian testing texlive

In plain tex I process with httex and I use

\ifx \HCode \undefined
\HCode{\Hnewline <!-- tex4ht_begin tex_tex4ht_tex tex 1 -->}

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 as

If I test with some equivalent latex code and htlatex everything is 
as expected, <!-- tex4ht_begin tex_tex4ht_tex tex 1 --> appears as
is in the output html file. Equivalent LaTeX code is:

\HCode{\Hnewline <!-- tex4ht_begin tex_tex4ht_tex tex 1 -->}

I attach the file I use to test httex and the equivalent file with

As a side note, it may be related or not, but for the math the output of
httex (and httexi) is subpar corresponding to the same math code but
with LaTeX beginning and end processed with htlatex.  In the past I
think that it was not the case, the httex and httexi output were better.
It maybe another symptom of an underlying issue also causing the issue
reported above.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_httex.tex
Type: text/x-tex
Size: 206 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex4ht/attachments/20201025/f4ec171f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_httex_equiv_latex.tex
Type: text/x-tex
Size: 245 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex4ht/attachments/20201025/f4ec171f/attachment-0001.bin>

More information about the tex4ht mailing list.