Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

asiga

macrumors 65816
Original poster
Nov 4, 2012
1,140
1,514
I'm looking for a (good and efficient) mechanism for rendering math on iOS apps. Ideally it should support LaTeX math syntax (because that's the format my code uses internally).

After some search I found matplotlib, which has a BSD license (that's great for me), and supports LaTeX math syntax (also great for me), and the math rendering quality seems excellent (at least from the screenshots page). But it's a python library (which makes me doubt if it's an efficient choice for mobile apps), and also I'm not sure if I can make it output as OpenGL calls (yes, I know I need OpenGL ES, but if I can get OpenGL calls from matplotlib, I believe it will be easy to translate to GLES on-the-fly).

Another option I found was MathGL. It has a GPL/LGPL license, which I consider inadequate for iOS development. On the good side it's written in C++, and it also supports LaTeX math syntax, but the math rendering quality from the screenshots page doesn't seem as complete or fine as matplotlib.

Yet another option would be MathJax. Good license (Apache). Supports LaTeX math syntax. And good quality rendering. However, it's Javascript and runs through a web browser. I don't know how to run it without a browser, and it makes me also doubt about efficiency (like matplotlib). I also don't know if I can tell it to render as OpenGL calls.

Do you've any advice on this subject?

Thanks a lot!!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.