Hello, Carlos Pita <carlosjosep...@gmail.com> writes:
> As a more robust solution, I suggest to explicitly set the colors in the > tex fragment for the preview instead of passing them as arguments to > dvipng. This can be done easily: > > ... > \usepackage{xcolor} > ... > \begin{document} > \definecolor{bg}{rgb}{0,0,0} > \definecolor{fg}{rgb}{1,1,1} > \color{fg} > \pagecolor{bg} > ... > > Where fg and bg might be replaced by randomly generated string or > whatever you see fit to prevent name clashes. > > Notice that the syntax for rgb color is the same than the one for dvipng > so it shouldn't be much of a refactoring. Would you want to provide a patch for that? Regards, -- Nicolas Goaziou