Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MathJax/jsMath alternatives?

Update from 2021: just use MathJax; you shouldn't be supporting old versions of IE any more.

I want to use MathJax to display MathML equations, but its performance in IE is unacceptably slow (yes, I read about using EmulateIE7, this is also unacceptable as it would break other areas of the site).

I don't need to support user-generated equations, and most of my data is already in XML form, so doing an XSL transform to HTML seems like the most compatible solution.

Ideally, the HTML would be similar/exactly the same as that which comes from MathJax. Displaying an image in place of the whole equation is a poor solution, as is requiring IE users to install MathPlayer.

like image 314
beerbajay Avatar asked Nov 18 '10 12:11

beerbajay


2 Answers

jqmath should be a lot faster, and doesn't use any images or require MathPlayer (though it uses MathPlayer when available).

To use jqmath, you will need to convert your XML equations to a simplified TeX-like syntax, if you don't have them in that form already.

Please let me (us) know if this solves your problem.

like image 191
Dave Barton Avatar answered Oct 12 '22 19:10

Dave Barton


There is a new math typesetting JS library from khan academy called Katex.

It is quite fast in comparison, but doesn't include the very advanced stuff of mathjax.

Here is a comparison image :

| Katex | Mathjax | comparison Katex vs MathJax
(source: github.io)

like image 20
Aditya ultra Avatar answered Oct 12 '22 18:10

Aditya ultra