Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 946
Eugeny89 Avatar asked Oct 21 '22 06:10

Eugeny89


People also ask

Which app helps display HTML code content?

Learn HTML Using Notepad or TextEdit Web pages can be created and modified by using professional HTML editors. However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac). We believe that using a simple text editor is a good way to learn HTML.

How do you display text in CSS?

CSS can insert text content before or after an element. To specify this, make a rule and add ::before or ::after to the selector. In the declaration, specify the content property with the text content as its value.


1 Answers

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.
like image 146
jeyk Avatar answered Oct 24 '22 04:10

jeyk