emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: Roshan Shariff <roshan.shariff@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: Can't set background color of latex fragment
Date: Wed, 19 May 2021 06:30:12 +0000	[thread overview]
Message-ID: <24643289-d817-7eed-91cd-4c9f26edc206@posteo.eu> (raw)
In-Reply-To: <CAG8iPGy1LqWLYTqgNZA3pBUeYMzLq6UZQdgOdgSmOv0nVPS+4A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]

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 line
> parameters, so I'm not sure how to solve this problem while supporting
> both use cases.

I asked about this behaviour on the dvipng mailing list, and the
maintainer doesn't consider it a bug, see
https://lists.nongnu.org/archive/html/dvipng/2021-05/msg00002.html.

Can you explain the use for a `Transparent` background ? Transparent
images are poorly supported in emacs, all it does is render it with
the background color of the default face -- which may not be the
expected result.

Regards,

-- 
Sébastien Miquel


> On Wed, Apr 7, 2021 at 1:38 PM Sébastien Miquel
> <sebastien.miquel@posteo.eu>  wrote:
>> 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 the option
>> `-bg Transparent` to the arguments of `dvipng`. According to its
>> manual, this option should be ignored if a background is already set,
>> but it doesn't seem to be. Perhaps org should set it differently.
>>
>> --
>> Sébastien Miquel



[-- Attachment #2: Type: text/html, Size: 2914 bytes --]

  reply	other threads:[~2021-05-19  6:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07 19:38 Bug: Can't set background color of latex fragment Sébastien Miquel
2021-04-10 22:27 ` Roshan Shariff
2021-05-19  6:30   ` Sébastien Miquel [this message]
2021-05-20  0:30     ` Roshan Shariff
2021-05-23 21:01       ` Bug: [PATCH] " Sébastien Miquel
2021-08-29  7:22         ` Sébastien Miquel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24643289-d817-7eed-91cd-4c9f26edc206@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=emacs-orgmode@gnu.org \
    --cc=roshan.shariff@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).