TobiasZawada / texfrag

Emacs package for previewing LaTeX fragments such as in doxygen comments.
GNU General Public License v3.0
68 stars 4 forks source link

How to change text color ? #19

Closed vuquangtam closed 4 years ago

vuquangtam commented 4 years ago

Hi, I'm using dark color mode, so i want my text color to white. How can i change text color ?

TobiasZawada commented 4 years ago

The color (foreground and background) of equations should automatically be adapted to the theme. That comes with the auctex preview package. See that answer on TeX.SE or the AucTeX preview doc.

vuquangtam commented 4 years ago

The color (foreground and background) of equations should automatically be adapted to the theme. That comes with the auctex preview package. See that answer on TeX.SE or the AucTeX preview doc.

I got it, thank so much <3

jdhao commented 2 years ago

Thanks for the linked post. I figured out how to do it inside init.el:

(with-eval-after-load 'preview
  ;; we need to change this face, so that image is not shown in black,
  ;; see also https://tex.stackexchange.com/a/52584/114857.
  (set-face-attribute 'preview-reference-face nil
                      :background "NavajoWhite1"))