[Tex/LaTex] Are there any server-side LaTeX to HTML-CSS converters

htmllatex2htmlmathjax

I'm looking for something equivalent to MathJax, but that does the conversion(s) from MathML or LaTeX to HTML-CSS on the server backend as my site is rendering the page, rather than relying on something client-side like a traditional install of MathJax. Ideally, this would be written in Python, but other languages or commandline tools would be acceptable as well.

There seem to be some out there (latex2html, plastex) but the output quality is much, much lower than what's produced my MathJax.

I've seen some mumblings of node.js + MathJax for this purpose, but with much grumblings from the MathJax maintainers.

Best Answer

I am working on a similar problem that utilizes the following tools:

  • Python
  • The python-based matplotlib package
  • A server-side installation of LaTeX (via a TeXLive installation)

The configuration has been a bit challenging (still working on getting matplotlib's mathtext rendering functions to recognize the full power of the underlying LaTeX engine), but the output quality is decent (I too still favor MathJax output quality at this point though).

I'm currently using this solution for LaTeX-to-bitmap image conversion, which isn't quite where you wanted to get, but maybe you'll find it to be a workable interim solution?