Producing pictures of formulas with the LaTeX standalone package
Just a quick post with some LaTeX snippet that I found very useful to produce nice pictures of formulas for online teaching.
It can be compiled with pdflatex -shell-escape filename
and you need to have poppler installed.
Then you get a nice, high-resolution png of a LaTeX formula.
\documentclass[
convert={command=\unexpanded{pdftoppm\space -png \space -r \space 600 \space \infile \space > \outfile}},
border=1
]{standalone}
\begin{document}
$e = m c^2$
\end{document}
Maybe that’s useful for someone.