Reputation: 73
I'm coding an android app (for offline use) and I need to display maths formulas and expressions on its views. What is the most efficient (easiest if possible) way to achieve this?
Upvotes: 4
Views: 221
Reputation: 1299
After an year, I found a library which could do this quite efficiently and have used this in current project. This is the link of that great work https://github.com/kexanie/MathView which you can easily include in your native code itself as another view component.This was way more faster than usual webview implementation of mathjax.
Upvotes: -1
Reputation: 11190
The most efficient is to simply use a custom font in a TextView. When I was researching MathML I came across a font solution. I'll see if I can dig it out.
Font: https://github.com/fred-wang/android-latin-modern-math
Upvotes: 0
Reputation: 19847
The easiest way which comes to my mind is:
Rendering it with JavaScript using downloaded MathJax in a WebView
.
For example, for such LaTeX on the input:
e^{i \pi} + 1 = 0
That will be the output:
Upvotes: 3