在 2025/4/15 2:02, Ihor Radchenko 写道:
Billy Lei <leiyixi...@outlook.com> writes:
When using themes with background color set to #000000, and
org-preview-default-process is set to dvisvgm, the LaTeX fragments are
displayed incorrectly.
To reduplicate:
1. Switch to a theme with background color set to #000000 (like Modus
Vivendi)
2. Create an org-mode document. Write some LaTeX fragment and press C-c
C-x C-l to preview LaTeX fragment.
3. The LaTeX preview is displayed as a white rectangle.
I am unable to reproduce.
Here is what I did
1. cd /path/to/org/git/repo (main branch)
2. make repro EMACS=emacs-30-vcs
3. M-x load-theme RET modus-vivendi RET
4. C-x C-f /tmp/bug.org
5. Type in \(x^2=2\)
6. C-c C-x C-l
7. The preview background is black. Nothing unexpected.
Have you changed org-preview-default-process to dvisvgm? This should
rediplicate the issue. I've attached the generated svg, which should be
displayed in white rectangle in emacs when the modus-vivendi theme is used.