In Org mode we can use C-c C-x C-l to preview LaTeX equations in the text.

I am using a theme that makes it hard to read the equation in the default font color, and I want to avoid changing the scale to make it more readable.

Question: How can I change the font color used when previewing LaTeX equations within Org mode with C-c C-x C-l?

Related Question: Is there a preamble that is used to generate the preview equations with C-c C-x C-l? If so, how can I change it?

Thank you for helping!


2 Answers 2


To change the font color you can customize the variable org-format-latex-options, specifically the foreground, for example to "whitesmoke".

Maybe you also have to pay attention to this

  • I am trying to make this work, but the link you pointed me to uses dvipng, but I am using svg images. Do you know what I would have to change? Jul 12, 2019 at 22:02
  • 1
    I set the value of :foreground to "whitesmoke", but when I preview a table it just does not change the color. I tried changing the value of all other properties in org-format-latex-options, but nothing seems to be changing. Jul 12, 2019 at 22:04

The preamble is in org-format-latex-header. You can customize it via M-x customize-option RET org-format-latex-header RET.

For red equations (as an example) add \AtBeginDocument{\color{red}} at the end of the header lines. Apply and save the option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.