1

In Orgmode 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 orgmode 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!

1

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.

| improve this answer | |
1

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

| improve this answer | |
  • 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? – Guilherme Salomé Jul 12 '19 at 22:02
  • 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. – Guilherme Salomé Jul 12 '19 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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