Display Good-looking Math Formula in Android

前端 未结 6 722
無奈伤痛
無奈伤痛 2020-12-02 11:35

It is sad to see that science and math is never given enough attention in Android platform. Maybe this is an easy problem, but I\'m a total dude in javascript so I\

6条回答
  •  自闭症患者
    2020-12-02 12:17

    jqMath is a JavaScript library like MathJax, but much smaller, simpler, and faster. If you don't need all of LaTeX, you might like it. It should work fine on Android.

    It is just a suggestion, I have no idea what errors or advantages you might have if you use MathJax.

    MathJax is much bigger and more complicated than jqMath, and roughly 5 times slower.

    Working JSFIDDLE: http://jsfiddle.net/sinhayash/gWWB5/1/

    For \sqrt{b^2-4ac} you can have this code: √(b^2-4ac)

    You can easily use string handling in javascript to convert strings to the jqMath format and easily display it

提交回复
热议问题