On Thursday, September 18, 2014 3:55:41 PM UTC-4, Alex wrote: > > Maybe one could have a look at matplotlib to get an idea how they do this?
Matplotlib implemented its own LaTeX parser and renderer (about 3000 lines of code): https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mathtext.py