We use MathJAX to render equations expressed via latex on the browsers. How do you do something similar on the Android platform, if you need to express all mathematical equations (e.g. fractions, algebraic equations, calculus, differential equations, trigonometry)
Asked
Active
Viewed 6,083 times
6
-
Doesn't JavaScript run in the Android browser? Why not try MathJAX and see what you get? – duffymo Mar 20 '11 at 18:37
-
possible duplicate of [MathML and Java](http://stackoverflow.com/questions/1784786/mathml-and-java) – CommonsWare Mar 20 '11 at 18:42
2 Answers
2
As a commenter already said, you can use MathJax. There's an open source example android app listed on mathjax.org. For a discussion about it, see the MathJax User Group.
If you need to build a more complex editor, there are a growing number of those built on/with MathJax.
- MathEditor (open source)
- wysiwhat (open source, Aloha-based, not quite wysiwyg)
- mathicando, a commmercial one
[disclaimer: I'm part of MathJax but not affiliated with any of the above.]

Peter Krautzberger
- 5,145
- 19
- 31
-
Hi Peter , I have used this link [http://cs.jsu.edu/wordpress/?p=498] to render math exp in my android app. But problem is that i have some padding above and below maths expressions loaded in webview. I want to make it look something like this [https://lh3.ggpht.com/ojqarVVu8b5jWkr8FOLZDu3QNfg8sJvHeIaCMQFvoYl6sb2Mp46qNAeRePhOmdQ5RA=h230] – Shakti Malik May 25 '13 at 21:41
-
Not sure this is helpful after all this time, but this is probably https://github.com/mathjax/MathJax/issues/681 – Peter Krautzberger Dec 20 '13 at 06:17
-
Peter> Mathjax is only for webview? What about native android apps that do not use webview. – Jasper Jul 07 '15 at 12:31
-
Yes, MathJax was designed for the DOM. In nodejs, jsdom would be enough but I don't know of any way to use nodejs or jsdom on Android. – Peter Krautzberger Jul 07 '15 at 17:39
2
there is jlatexmath or jeuclid but i dont know if it works with android
you can also render a html page save it to the sdcard and then show it using the webview

sherif
- 2,282
- 19
- 21