[tex4ht] issue with raw html output with httex

William F Hammond gellmu at gmail.com
Sun Oct 25 20:59:34 CET 2020


On Sun, Oct 25, 2020 at 12:05 PM Patrice Dumas <pertusus at free.fr> writes in
part:

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:
>
> ...
>
> Is there a combination of TeX code and texinfo code to make it right?
>
>
For texi I do not understand why one would want to involve tex4ht at all.
Aside from math Texinfo is a well-defined language independent of its
implementation as a TeX macro package.  Texinfo, which is, after all, the
language GNU documentation, has mostly been used for software
documentation, and for that reason mathematical text has not been a
priority.  I doubt if there are many Texinfo documents that incorporate
math.

I quote from the manual page for texinfo's "makeinfo":

 Output format selection (default is to produce Info):
       --docbook
              output Docbook XML rather than Info.

       --html output HTML rather than Info.

       --plaintext
              output plain text rather than Info.

       --xml  output Texinfo XML rather than Info.

       --dvi, --dvipdf, --ps, --pdf
              call texi2dvi to generate given output, after checking
validity of TEX-
              INFO-FILE.


If one is unhappy with the HTML generated this way, one can use the --xml
option to generate the Texinfo-equivalent XML and then use XSLT or whatever
XML translation library to meet one's needs.

Well, there's still the math question.  I haven't looked at Texinfo
recently enough to know if the Texinfo keepers have made its math
well-defined, but the last time I looked it was not so.  If still not so,
that should be done.  It should not simply be TeX math or even LaTeX math
although the guide should be the mostly commonly used parts of LaTeX math
enhanced with AMS improvements but with the full syntactic rigor of Texinfo
source so that all of the makeinfo options can cover the math.

-- Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20201025/55e0bf65/attachment.html>


More information about the tex4ht mailing list.