I would like to make .png
images of equations. To achive that I usepdflatex
+pdfcrop
+convert
. But it takes more than 3 seconds on my computer to process simple $$E=mc^2$$. But I will generate dozens of images and I would like to do it as fast as possible.
pdfcrop
is really slow and now I am trying to fit equation into page to except crop from my cycle.I use this:
\documentclass[landscape]{report}\usepackage{amsmath} \usepackage{graphicx}\begin{document}\thispagestyle{empty}\begin{equation*}\resizebox{1.0\linewidth}{!} { $ E = mc^2 $}\end{equation*}\end{document}
pdflatex
produces this:Image may be NSFW.
Clik here to view.
So, it's a lot of blank space around the equation. Moreover, I would like to use latex
instead of pdflatex
because it's faster. But latex
ignores resizebox
environment. So, my questions are: Is it possible to
1) Make pdflatex
scale equation to entire page?
2) Similar but using latex
?
3) Or maybe there is another way to produce images of equations?