From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 81zoD3EmcmCLbQEAgWs5BA (envelope-from ) for ; Sun, 11 Apr 2021 00:28:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YJ6tCHEmcmDrcQAA1q6Kng (envelope-from ) for ; Sat, 10 Apr 2021 22:28:01 +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 8B42D1F8A1 for ; Sun, 11 Apr 2021 00:28:00 +0200 (CEST) Received: from localhost ([::1]:44156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVM59-0000NQ-8i for larch@yhetil.org; Sat, 10 Apr 2021 18:27:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVM4n-0000NJ-E3 for emacs-orgmode@gnu.org; Sat, 10 Apr 2021 18:27:37 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:38450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVM4l-0002Lj-Vs for emacs-orgmode@gnu.org; Sat, 10 Apr 2021 18:27:37 -0400 Received: by mail-lf1-x134.google.com with SMTP id j18so15358890lfg.5 for ; Sat, 10 Apr 2021 15:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+7ainlwVZ7dmPcBXz5L6NE4DN/qP2K6GW68AhJc1e+0=; b=f7TR7T3mHggCJfYRfbR7Ibd+ZcSmMgUlobJGo4VlU6tJfZUp4j0VZjasFkwr9QMtK5 G3y2S7etArkcywg0kZL1eG0MYgBXNB2R5z9Gzhja3JDrVCfUT3zv+ZZ1hKuNSDks8bCX /lqz48H2iKXGrOJzUfTm2tpwVxxcGzNJejntZ8WoDF6FSIrB3SHouC2H7Zd2bKcMnnoe VbvSdTwSe/uISMnz2py1M6catT9QdqjQfE3CwRi6P+s6zQTEARj+13sDnXwJpe9ITZSk 8LRq7j11yC+BD3NDksJ7dDi5v16yWxCZih6Jn+0pB8O31lb2RAfvLn4pBzN37q/Eds0q xy0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+7ainlwVZ7dmPcBXz5L6NE4DN/qP2K6GW68AhJc1e+0=; b=CYKdRTrSfr2R9quE/tLBK2U6/GHBf44F8h5m+91ICcULRAPg3zw0KmEJCGBgiEWk7W 6BjpLPk0LRnuZMQAFKJ4TXoF2iH6moum2RpsFtJs7WCFM6LKmpKPIX6aOxvhyVNa11R3 YIenbag/x9mK0fMwmn9gjRQVr2efJ2NkSk27diDtPz59zFfXJzmoxmzMeo0vhJyUqU29 V35GXmIvxTTEJZ9RYZlBEFvwUZ93hmnPFoiA0lxx/D1qK8sHmt0Jn6nFpBUzgl10zBJM rdZvaHzBOblGoD34kcikgvlqc1P6IFGxbjtJbhUsVSol4xvlzfH1ym9yMsEkCqsVhO6e bXvQ== X-Gm-Message-State: AOAM530cd9pMGauBRquCLbfCz94brsyHE33nlEu6dVcM4Zo6m+HfES+J IjocDKZ9L5yqIA+xRcCdzh9QDShYMkwIXC6Uw5s= X-Google-Smtp-Source: ABdhPJyUAX0kbyk6niY3v02SHRH1t/3nBpXXYX8s5WDUXGZzYEu16eiS7kCsSgb0871FPWjPSTyltsGNgIgt1C6BiQc= X-Received: by 2002:a05:6512:3b82:: with SMTP id g2mr2910906lfv.499.1618093652940; Sat, 10 Apr 2021 15:27:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roshan Shariff Date: Sat, 10 Apr 2021 16:27:21 -0600 Message-ID: Subject: Re: Bug: Can't set background color of latex fragment To: sebastien.miquel@posteo.eu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=roshan.shariff@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1618093680; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+7ainlwVZ7dmPcBXz5L6NE4DN/qP2K6GW68AhJc1e+0=; b=g3uMD/yCQVZ+12VGwNE4DJPg/BVFuOkRWqJ2AXuWgAkSAxCyNUHEw1fijlJbABpmiv3m/P CgzPWvL96cci/CjAEHsKY+irHRIAtAmNOOkkMmvlHUQBD0AH5mJEctIeAcCHJtn2zcJXyP 8/QUxumrB2xVoXi6sXyCBQkZLeXZoelDXvpf2EhHCer2vtEPCxXHTdGblxgjbeA6xJwdAf A4Ei7Kcv4x8gGW7e8CW12ICWFR9RNOR7h/xyXJ/QGHDYGK0VNX8JRzZ4Li/2FSRPsmETuM /13nFfUm73JxtG/kVXJ5HAjEl3m2qAnakO08StKgYcXKGO71QyFBWf/C5Zp7jQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618093680; a=rsa-sha256; cv=none; b=j/Yqbsqzl99FF7ypvZuXYDlvrORzSpWpb3A7sfxdxTXJZoQSk5R3A67Yk4cPS+Gu2/N9NO ZWN+fAvFv/UBnkJqiRjkNADPRzp8UkR03uspCsEEQSCeh8xc52E6ThRZikB/ru9zQi5woE MciSmWLYkVu/82cBEO3SaRqvcWbY0t+YHU1Q3QMswQQxK4ibkWIYnk7+y7cxXIPgAaS1li Ave1uQmDpYj7HH8TfT1cmK3mFZ2CxnerZsqgTkBJ71ygvSIh/RfedYhe5cL0p8NmnGLcT1 OHhvWCq0Jn1A40G9Roa2SderMMNbSBUPiFvJ/BdBpiu6oWF0A2L/GL3pfRzePg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=f7TR7T3m; dmarc=pass (policy=none) header.from=gmail.com; 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=gmail.com header.s=20161025 header.b=f7TR7T3m; dmarc=pass (policy=none) header.from=gmail.com; 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: 8B42D1F8A1 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ap4AOsUC354n 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. On Wed, Apr 7, 2021 at 1:38 PM S=C3=A9bastien Miquel wrote: > > > To reproduce with `emacs -Q` : > - Open an org buffer > - Call ~(setq org-format-latex-options '(:foreground default > :background "Black" :matchers ("$")))~ > - Call =3DC-c C-x C-l=3D (org-latex-preview) on a latex fragment such a= s > $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=C3=A9bastien Miquel