[Tex/LaTex] Preview-latex background color

auctexemacspreview

I'm using AUCTeX + preview-latex to preview math formulas. In addition, I'm using the zenburn color scheme, which has a dark background. Unfortunately, the rendered math previews have a white background, which looks very ugly.

How is it possible to change the default background color in the rendered math formulas?

Best Answer

The default settings of preview-latex should ensure that the image background is either transparent or set to the background color of the editor area. If you always get white backgrounds, have a look at the AUCTeX option Preview Appearance > Preview Reference Face > Background. Maybe it's set to white. In this case, simply uncheck the corresponding checkbox and save the settings. Otherwise, try to set an explicit background color value to check whether this option actually causes the problem.

enter image description here