GNU bug report logs - #51610
13.0.14; PGF background interferes with preview background

Previous Next

Package: auctex;

Reported by: Marten Lienen <marten.lienen <at> gmail.com>

Date: Fri, 5 Nov 2021 14:52:01 UTC

Severity: normal

Tags: wontfix

Found in version 13.0.14

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 51610 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Marten Lienen <marten.lienen <at> gmail.com>
Cc: 51610 <at> debbugs.gnu.org
Subject: Re: bug#51610: 13.0.14;
 PGF background interferes with preview background
Date: Sat, 06 Nov 2021 12:48:32 +0900
Hi Marten,

>>>>> Marten Lienen <marten.lienen <at> gmail.com> writes:
> The example latex document that I have pasted below contains a simple PGF
> figure (just an empty square background) that I generated with matplotlib.

I added \usepackage{amsmath} to cover equation* environment.

> If you set your emacs to a dark theme, you will see that the previews are
> dark-on-light if the preview includes the figure but light-on-dark if it is
> not included. So `preview-region` with the region just including the
> \section and first equation environment generates exactly the expected
> preview, but `preview-buffer` inverts the colors in *all* previews, i.e.
> the section header and equation are now dark on light background, which
> does not mesh well with a dark emacs theme.

Preview-latex generates all the required images from one pdf. It seems
that the pgf figure specifies the white background color, which forces
whole pdf to have white background. If this guess is correct, it would
be hard to have different background colors between the figure and
others.

One workaround I can think of is to customize
`preview-pdf-color-adjust-method' to nil. It specifies default FG/BG
colors to black/white, so the generated images would look normal even if
the pgf figure forces white background.

Regards,
Ikumi Keita




This bug report was last modified 3 years and 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.