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?


1 Answer 1


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

  • How do we get to this menu? I'm using spacemacs
    – ae0709
    Nov 20, 2020 at 5:45
  • @ae0709 Inside emacs, run command customize-group and choose AUCTeX.
    – jdhao
    Oct 5, 2021 at 18:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .