# Export Latex to an png/pdf file [duplicate]

Possible Duplicate:
Compile a latex document into a png image that's as short as possible.

I once found a class on the Internet which allowed to export an latex image to an automatically cropped pdf file. It may even have allowed to automatically to the pdf/png conversion but I am not so sure about that. Basically it worked as

\documentclass{???}

\begin{document}
$a+b = c$
\end{document}


and latex would produce an pdf file which dimensions exactly match the content.

• You are probably looking for the standalone class. – Thorsten Donig Jun 13 '11 at 11:59
• I think that this is a duplicate. Plaisthos: take a look at the question that diabonas linked to. Does that answer your question? If so, we'll probably close this question as a duplicate of that one. If not, please edit your question to explain why that question doesn't address your needs. – Loop Space Jun 13 '11 at 12:44
• also, if you're using a Mac, you can probably use LaTeXiT for that. – fudo Jun 13 '11 at 15:07
• Closed as duplicate on request of the OP. – Martin Scharrer Jun 13 '11 at 15:21