From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qFwrNN+wpGCXZgAAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 08:31:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eJnSL9+wpGBnRQAAB5/wlQ (envelope-from ) for ; Wed, 19 May 2021 06:31:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0CE0220BCD for ; Wed, 19 May 2021 08:31:59 +0200 (CEST) Received: from localhost ([::1]:38302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljFkK-0001QC-Gg for larch@yhetil.org; Wed, 19 May 2021 02:31:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljFip-0001Pq-1V for emacs-orgmode@gnu.org; Wed, 19 May 2021 02:30:26 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljFim-0000Do-8A for emacs-orgmode@gnu.org; Wed, 19 May 2021 02:30:22 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id ED1B9240028 for ; Wed, 19 May 2021 08:30:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1621405815; bh=6Oy8fW7Q8XYJk8FRg6loRb5mxUR78UeMTFjRQV8XZis=; h=Subject:To:Cc:From:Date:From; b=LAvd11ZXbfhFBPTshWuAvsMXfpCrAdLkTtlENWqOKBK4a7ncQzbPMfyy4dn/ncNdk mgaxKvu9OGT+3uZID8jlQJw4oyG9jj/QRxFT4CmQdrh8Bto4KqwLRlkTYbPzW3FUvb e07TTlxjhF9yY5yotDR0LScJ+WRjdf2Q10tT4C6zB0WGO34oLwC98V/L7FbvNPATLM 4He8CtFF7pKgd0nIWX0pCVkV9Zho4V3oCkslSolNQoZsOtf1MAADFx5BoHMKAPyvWq 2fnfGyeCfoikMimv6x0iLDnc6jcwN4QkZTeQmVLGBQMo79ICNbau+j7C8lsQmLUE82 VrZPzz2AsJLZg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FlNK14rRXz6tmK; Wed, 19 May 2021 08:30:13 +0200 (CEST) Subject: Re: Bug: Can't set background color of latex fragment To: Roshan Shariff References: X-Woof-Bug: confirmed From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <24643289-d817-7eed-91cd-4c9f26edc206@posteo.eu> Date: Wed, 19 May 2021 06:30:12 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------7B6C69906CAFBC6A606CD16E" Content-Language: fr Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621405919; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ka2DMMU0hBWLzD1S4dSPCk8kZ1Pj8wAEHHWozjWrpOE=; b=qIxHlmhlharZeO+E4ZANYQMRZyQBg9LGyrBzlM/eeMs8ZmF37ONKYukjRgoYRkpz7m9bEi Z/DktByJRyl2uDGuT/Gzp1+Fdmumr3ppw/V+2yxhXOUDdNYRE3AcN/+rCTdNVTIf5ET9LK m4luSBD5vf3FLhu+I421GKKRasvxATQpvHTzk/Nqn5vGVm1By/rynemRehXTAdbGx0j7eS OU5vRzn6AwojjOI1CgaIqp+DAssEsW42HSY1h2Ev4YCEeghANUT/yLkusRy8PvgyeYCTQu UQTCSU9V0tnKQLlyzRKcYeUe6Q4g0NV3gi7xAYzMogxxU6Rd6yObW7YZ8OwxXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621405919; a=rsa-sha256; cv=none; b=NsfxoXb4FQreUKNX7G5e61rFBztDd1qiYUFriW5Zkn8+g8FZzRl/CW3xm8p/JJLTwSRLLJ 2zzSa6eib/RP5qMRSQZpLyoYOd2njguG1rQD+s6lFcfGGmvs2ywRtbrGVK+Ivd8HnbtevV Yc2qhcFKasj1VOYcdl23/ZCq1XOk+5ORUsQM9SeV2QdKwDKzlin3l80WDVymGMeo67/xUv /FBYjGUxPxevR8U3dB+7Jo5ZuPpNZw5jsH92htYI2YEn3bLVWQqO3RjRiY05ckotvcU45b hqOtLzlNcuAxk5NWzS1JscbR2FMtxsdX9gQ7yMugcVzaXrsqa6ONvTH8ktbf4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=LAvd11ZX; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=LAvd11ZX; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0CE0220BCD X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: YTys3nYwmQKs This is a multi-part message in MIME format. --------------7B6C69906CAFBC6A606CD16E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > 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 --------------7B6C69906CAFBC6A606CD16E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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


--------------7B6C69906CAFBC6A606CD16E--