I'm creating PNGs directly from LaTeX using the xelatex, the standalone document class and the convert option of standalone. I have ImageMagick installed, and it all works fine. The only issue is that the PNGs it's creating have a transparent background instead of the default white.
\documentclass[multi={minipage}, border=5, convert={true}]{standalone}
\usepackage{standalone}
\standaloneconfig{convert={convertexe={convert}}}
\pagestyle{empty}
\begin{document}
\begin{minipage}{500bp}
Some text
\end{minipage}
\end{document}
I'm using the empty pagestyle to make sure that there is no whitespace at the bottom of the pages. Does anyone know what could be causing the PNGs to be transparent? What is the syntax to manually set the background color?
minipageis missing an argument. But it is odd: withpdftoppm -png <file>.pdf outfile.png, the background is not transparent! One temporary workaround might be to use\usepackage{xcolor}and\pagecolor{white}. But I realize that is not a good solution. – jon Mar 26 '13 at 15:34\pagecolorand\xcolor, and compiling withpdflatex -shell-escape. How are you compiling? – jon Mar 26 '13 at 20:00