Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-23 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> It looks like on main dvisvgm is putting rectangle with no color >> specification when we request black background - it is something Emacs >> does display differently from other svg viewers. Will things on your >> branch be different? > > I tested setting the :backg

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-22 Thread Karthik Chikmagalur
> I would say that changing the default :background to transparent is > justified, but such a change would only go on main branch, just to be > immediately canceled by the new preview system. So, I'd rather wait > until we merge the preview branch. > > Also, Karthink, may you please point me to the

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-19 Thread Ihor Radchenko
Billy Lei writes: >> 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 t

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-18 Thread Billy Lei
在 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

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-15 Thread 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 rewr

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-15 Thread Ihor Radchenko
Leo Butler writes: > I see the same thing as Billy, both with an up-to-date Org main branch > and 9.7.25. Applying his patch fixes the issue. > > Note that step 2 fails for me, with the message: > > make[1]: emacs-30-vcs: No such file or directory > make[1]: *** [Makefile:64: org-version.el] Erro

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-15 Thread Leo Butler
On Mon, Apr 14 2025, Ihor Radchenko wrote: > Billy Lei writes: > >> When using themes with background color set to #00, and >> org-preview-default-process is set to dvisvgm, the LaTeX fragments are >> displayed incorrectly. >> >> To reduplicate: >> >> 1. Switch to a theme with background c

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-15 Thread Rudolf Adamkovič
Ihor Radchenko writes: > I am unable to reproduce. +1 However, there is a bug I where if the theme is changed while preview is showing, then the preview has the wrong colors until re-previewed. Rudy -- "Simplicity is complexity resolved." --- Constantin Brâncuși, 1876-1957 Rudolf Adamkovič [

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-15 Thread Billy Lei
在 2025/4/15 2:02, Ihor Radchenko 写道: Billy Lei writes: When using themes with background color set to #00, 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 #00 (like Mod

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-14 Thread Ihor Radchenko
Billy Lei writes: > When using themes with background color set to #00, 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 #00 (like Modus > Vivendi) > 2. Create

[BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-14 Thread Billy Lei
When using themes with background color set to #00, 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 #00 (like Modus Vivendi) 2. Create an org-mode document. Write some L