Compiling LaTeX to html with HeVeA
HeVeA (home page) is an ocaml project which converts LaTeX to pure html: math is displayed as html using tables for positioning and unicode math characters. There’s no MathML or mathjax. Here is how it renders some extracts from the “Comprehensive LaTeX symbol list” to give you an idea of how well it works.
The github repo doesn’t show much recent activity: the last commit was nearly a year ago (and it was fixing a bug in the readme caused by the false friends advertisement and avertissement; the author is French).
Here is the output on my test file.
Usage
hevea file.tex
imagen file
I had to fiddle with the images to get things working, changing from the
graphicx
package to graphics
and converting the images from svg and
jpg to ps. There are probably better ways.
Evaluation
Images worked OK after the changes mentioned above - they could probably be improved with a little effort. Equation refs and numbering work, hyperlinks are fine, section numbering and the table of contents work. There are two big issues. First the appearance is nowhere near as good as mathjax, and some large parens are broken up (equation (1) in the file - probably fixable with a minor change to the source). Second I don’t think this method of displaying math will be accessible. Combined with the lack of activity at the project repo, I don’t think HeVeA is the way to go.