From: Kasper Peeters <kasper.peeters@ae...>  20090227 18:09:07

Hi all, (A bit offtopic, hope this is ok, please redirect me if this is more appropriate on a different list). I am interested in using the mathtext rendering functionality separate from the plotting part of matplotlib. To be precise, I would like to use mathtext as a replacement mathematics renderer in the notebook frontend of my symbolic computer algebra system 'cadabra', http://www.aei.mpg.de/~peekas/cadabra/ (right now I am using latex/dvipng to render mathematical expressions, which is slow and not very flexible). I would prefer to use mathtext to render onto a cairo drawing surface (since I already have plans to use cairo to improve the frontend). Are there any examples showing how to do this, or could someone perhaps post a small code snippet to get me started? Thanks! Cheers, Kasper 