在 2025/4/16 11:24, Karthik Chikmagalur 写道:
After debugging, I found that it is because dvisvgm omitts the default
#000 color value when generating SVG file, and emacs has a unique way of
displaying the SVG, which caused foreground color to be applied to it.
Just a note: this has been addressed in the upcoming org-latex-preview
rewrite. By default, you can change the Emacs theme after generating
the svg previews and the svgs will automatically change colors to match
the foreground and background.
Karthik
It turned out that this setting can make LaTeX preview images use theme
color without regenerating it:
(setq org-format-latex-options '(:foreground "Black" :background
"Transparent" :html-foreground "Black" :html-background "Transparent"
:html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")))