Displaying tex content in HTML5 app

html, javascript, mathjax, tex

Solution

To answer two of your questions:

- Depending on the server-side technology you use, you might have no other choice except to put all the generated image files into a folder. You could write a job that regularly deletes older images to save disk space.

- There are a few tools that can convert TeX to MathML, for example TtM (TeX to MathML) or TeX4ht.

Problem

I need to display TeX content in a div. As far as I understood MathJax will be slow for tex files bigger then one page. So I decided to make HTML from TeX on server with `htlatex`. The problem is that some are printed as image and inserted in html. So here are my questions: - What way of images for dynamicaly generated HTML is better? I'm afraid putting them into folder will take a lot of disk space. - Is there an easy way to generate MathML from tex (so that I will not need to think about previous question) - Maybe there's an other more easy solution for my problem? UPD. And have I understood correctly that MathJax is not to be used here?

Original source