LaTeX-formulas in Python : <p>I'd like to print LaTeX mathmode formulas to images (preferable without saving to hard disk) in Python. I already found matplotlib but it seems one can't dynamically shrink the size of the image to the size of the formula which is what I need.</p>

<p>It would be nice if someone had an example how to accomplish such a thing.</p>
