Billy Lei <leiyixi...@outlook.com> 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 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" "$" "$$" "\\(" "\\[")))

This will work only for modus-vivendi that sets background to black.
If background is something else (e.g. dark blue), you will again get a problem.

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 code on your branch that
is dealing with :background default?
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?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to