# How to convert LaTeX equations to SVG?

At the moment, I'm using mimetex to automatically convert a bunch of equations into gif-images.

The program is fast, but the images look pretty bad:

How can I (quickly) convert a LaTeX equation into an SVG image on the command line?

-

pdf2svg works quite well.

Use \pagestyle{empty} to avoid page numbers and pdfcrop (package texlive-extra-utils) to remove empty space around the equations

-
That works well! It's a little bit slow, and I have a feeling I'm still not doing it quite right (here's the script I'm using). Thanks a lot! –  Stefano Palazzo Apr 2 '11 at 23:13
Use pdflatex instead of latex, dvips and ps2pdf –  Florian Diesch Apr 2 '11 at 23:32
It's no faster, but works pretty well. I'd really like a solution that does this job in under 100 ms, and preferably without writing a whole load of files, but it works and I'm happy. :-) This is the result of your answer so far. –  Stefano Palazzo Apr 3 '11 at 0:53
@Florian Diesch; the example link seems broken, can you remedy, perhaps embedding the example image? –  enzotib Jul 11 '11 at 9:55