Is there a package/library that given some input (LaTex, MathML, something else) outputs an image with the mathematical symbols rendered in a sensible way? There's a library called 'MathJax' but it seems to be intended for the web/browsers, not desktop applications.