# TeX4ht

TeX4ht is a system for converting documents written in TeX/LaTeX/ConTeXt/etc. to HTML, various XML flavors, braille, etc., optionally using MathML.

### Features

• it supports most LaTeX packages and custom commands, including:
• BibLaTeX
• TikZ
• Fontspec
• it supports various input format, apart from LaTeX:
• extensive support for modification of the output
• output formats include HTML 5, ODT and Docbook
• math can be exported to MathML, MathJax or pictures
• publishing webpages from Overleaf

### Tools

• make4ht - build system for TeX4ht.
• tex4ebook - ePub and ePub3 export using TeX4ht.

### Basic invocation for modern output

TeX4ht can be invoked in several ways. The original way is to use the htlatex command. To convert a LaTeX source file.tex to HTML5 that uses UTF-8, with MathML:

$htlatex file.tex "xhtml,html5,mathml,charset=utf-8" " -cunihtf -utf8"  N.B. That command line has three arguments, the second two given inside shell quotes; the last argument starts with a space. More details on calling conventions. An easier way is to use make4ht (see its documentation for more). The following command produces the same output as the previous one, HTML5 in UTF-8 encoding with MathML: $ make4ht file.tex "mathml"


### Bug reports

Bug reports are welcome by email or by submission to the bug database. Please include a complete source document and the exact program invocation, as well as what goes wrong. To fix the problem we need to be able to reproduce it. If the problem remains unresolved, please submit it to the bug db, so it won't be forgotten.

### Development status

We continue to install updates in the tex4ht development source and propagate them to TeX, although we have not made a full release in tex4ht. Some development changes remain solely in the source repository.

TeX4ht was created by Eitan Gurari at Ohio State University. Eitan died unexpectedly in June 2009; we extend our sympathies to his family, and dedicate future work on the project to his memory.

With the encouragement and support of Eitan's family, Michal Hoftich, Karl Berry, and others have continued to work on TeX4ht. Involvement by other volunteers, from bug reports to major new development, is welcome and needed.

No full post-Eitan release has been made to date. This continues to be a work in progress.

### ChangeLog

Latest changes (full ChangeLog):

 2021-05-06 tex4ht-4ht.tex (menukeys.4ht): use \Picture* for menukey images. tex4ht-4ht.tex (fontawesome5.4ht, fontawesome5-hooks.4ht, fontawesome5-utex-helper-hooks.4ht): added support for Fontawesome5 package. https://puszcza.gnu.org.ua/bugs/index.php?511 tex4ht-fonts-noncjk.tex ( tex4ht.dir/texmf/tex4ht/ht-fonts/unicode/fontawesome/fa5.htf ): added Htf file for Fontawesome5 fonts. https://puszcza.gnu.org.ua/bugs/index.php?511 2021-05-04 tex4ht-4ht.tex (colortbl.4ht), tex4ht-html4.tex (html4.4ht): added support for \arrayrulecolor command. https://tex.stackexchange.com/a/595571/2891 tex4ht-4ht.tex (menukeys.4ht): added support for the menukeys package. https://puszcza.gnu.org.ua/bugs/?509 tex4ht-html4.4ht (html4.4ht): replace ~ by "\ " in TOC rendering macros. It should fix issues with Spanish Babel. https://tex.stackexchange.com/a/595688/2891 tex4ht-4ht.tex (spanish.4ht): fixed issues with \' accent. https://tex.stackexchange.com/a/595688/2891