I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried
latex followed by
dvipng, but the result is always the size of a page. For instance, take a
.tex file containing:
Hello. This is a test.
L = 2
If I compile it with
latex, and then run
dvipng, I get a PNG file that's the size of a full page. What I need is for the PNG file to be only as tall as needed for everything to fit. So the image would end immediately after the equation. The image still needs to have full width (because of the equation numbering).
Is there a way to achieve that?