Here’s how I did it:
\documentclass[preview,border=4mm,convert={density=600,outext=.png}]{standalone} \usepackage{url} \usepackage{tikz} \usepackage{color} \begin{document} \begin{tikzpicture} add figure source here \end{tikzpicture} \end{document} |
Then compile using:
latexmk smr.tex -shell-escape