I would like to make .png images of equations. To achive that I use
pdflatex + 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}
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?




.fmtfile as per Custom format file: How to automate the generation of the “precompiled preamble” whenever one of the files that are used there are changed and Ultrafast PDFLaTeX with precompiling. – Peter Grill Sep 22 '18 at 07:01TeX4ht, you can generatePNGformat file for all display equations – MadyYuvi Feb 15 '24 at 07:21