Take a look at MathJax . This Javascript library maps TeX commands to mathematical formulas. This is becoming increasingly popular, with many scientific and mathematical journal websites accepting it to provide equations online.
Typically, MathJax is applied to the entire web page to display all the equations at once; It works great for computers, but I found it a little slow on the iPhone / iPad. I think this is similar to Android.
You should be able to use only a portion of the rendering without significant performance degradation.
In any case, do not reinvent the wheel; instead, please contribute to MathJax!
source share