Re: Bug: Can't set background color of latex fragment

2021-05-19 Thread Roshan Shariff
Hi Sébastien, I originally made my patch because otherwise adding '(:background "Transparent") to org-format-latex-options always resulted in a white background (\pagecolor{white} would be forcefully added to the generated LaTeX). Then I found that dvipng still produced a white background even wit

Re: Bug: Can't set background color of latex fragment

2021-05-18 Thread Sébastien Miquel
Hi Roshan, Roshan Shariff writes: I can confirm this bug with dvipng --- with the "-bg Transparent" option, dvipng ignores the background color from the input tex file, whereas without that option it always produces an opaque background. There's currently no way to dynamically change command lin

Re: Bug: Can't set background color of latex fragment

2021-04-10 Thread Roshan Shariff
I can confirm this bug with dvipng --- with the "-bg Transparent" option, dvipng ignores the background color from the input tex file, whereas without that option it always produces an opaque background. There's currently no way to dynamically change command line parameters, so I'm not sure how to

Bug: Can't set background color of latex fragment

2021-04-07 Thread Sébastien Miquel
To reproduce with `emacs -Q` :  - Open an org buffer  - Call ~(setq org-format-latex-options '(:foreground default    :background "Black" :matchers ("$")))~  - Call =C-c C-x C-l= (org-latex-preview) on a latex fragment such as    $abc$ This bug was introduced by the commit 2f9e1569f which adds