I was trying to use the answer from this question to make a png of a math equation. I'm using the very simple file:
\documentclass[convert={density=300,size=800x800,outext=.png},border=1pt]{standalone}
\begin{document}
\[
a = \left\lceil\frac{b}{c}\right\rceil
\]
\end{document}
Which generates the error
! Missing $ inserted
<inserted text>
$
l.6 a = \left
\lceil\frac{b}{c}\right\rceil
Obviously this is an error with the actual .tex source itself, and doesn't really have anything to do with convert, but do note that I have the ImageMagick utilities installed and in working order. In fact, I was able to generate a simple png using the inline math environment.
Why doesn't \LaTeX like my \left?
$\displaystyle...$instead of\[...\]. See https://tex.stackexchange.com/a/417837/4427 for an explanation. – egreg Mar 01 '18 at 17:25$$or\[for multiline math. Also: can I do linebreaks inside of$\displaystyle? If you'd like to write up an answer that addresses these questions, I'd be happy to accept it. – anoneemus Mar 01 '18 at 17:29$$in LaTeX. For line breaks like inalign, use$\begin{aligned}...\end{aligned}$. – egreg Mar 01 '18 at 17:31varwidthlet me use linebreaks (also I removed thesizespecification from myconvertoption), but doesn't do horizontal centering... I'll\centeringand such and see where that gets me. – anoneemus Mar 01 '18 at 17:34centerenv, the compiler will complain and insert a bunch of $, but if you give it