[tex4ht] issue with raw html output with httex

Patrice Dumas pertusus at free.fr
Sun Oct 25 20:05:20 CET 2020


On Sun, Oct 25, 2020 at 07:34:20PM +0100, Michal Hoftich wrote:
> 
> > With this in preamble and the use of \document and \enddocument,
> > the output is as intented, both the insertion of raw html and
> > the formatting.  Thanks!
> 
> That's good to hear!

Actually, after calling etex and not tex, everything is fine too if I do
not use \document nor \enddocument, nor the full preamble, but I only 
add at the beginning:

\csname tex4ht\endcsname

> > What would be the equivalent for httexi?  Is it the same?

With httexi, even after using etex and not tex and using the full
preamble and \document and \enddocument, there is an issue, as the
texinfo @-commands are not recognized, for example @math:

! Missing $ inserted.
<inserted text> 
                $
<to be read again> 
                   \chi 
l.18 @math{ \chi
                ^2 = \sum_{i=1}^N

Maybe it is not surprising as there is no \input texinfo, nor
@setfilename.

If I pass a texi document to httexi, with \input texinfo, @setfilename
and @bye it does not give an error, but the result is not correct, there
is no inserted html, and the output is simple text without html
elements:



here TE X
    \ifx \HCode \undefined \else \HCode\Hnewline &#x003C;!– tex4ht_begin tex_tex4ht_tex tex 1
–&#x003E; \fi
    &#x03C7;2 = &#x2211;N
    i=1 (
yi-(a+bxi)
      &#x03C3;i      )
            2


Is there a combination of TeX code and texinfo code to make it right?

-- 
Pat


More information about the tex4ht mailing list.