简体   繁体   中英

Displaying tex content in HTML5 app

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:

  1. What way of images for dynamicaly generated HTML is better? I'm afraid putting them into folder will take a lot of disk space.
  2. Is there an easy way to generate MathML from tex (so that I will not need to think about previous question)
  3. 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?

To answer two of your questions:

  1. 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.
  2. There are a few tools that can convert TeX to MathML, for example TtM (TeX to MathML) or TeX4ht .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM