Tex4ht
lastmod 2026-11-10created 2021-07-082 edits
Tex4ht is a tool that converts LaTeX and TeX documents into hypertext formats such as HTML, XHTML, MathML, and ODT. Instead of re-parsing the source, it actually typesets the document with the TeX engine while embedding special commands (specials) in the DVI and then post-processes them for conversion, so it handles even complex documents containing user-defined macros and packages relatively accurately. It is included in TeX Live and is run with the htlatex and make4ht commands.
LaTeX and TeX for Hypertext.