dvipng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `-bg Transparent` option isn't ignored when background color is set


From: Sébastien Miquel
Subject: Re: `-bg Transparent` option isn't ignored when background color is set in dvi file
Date: Mon, 17 May 2021 21:30:25 +0000


Jan-Åke Larsson writes:
That was intended, yes, the manual should probably have said "The background color given will be ignored if there is a background color \special in the DVI."

"Transparent" doesn't change the background color, it enables the alpha channel.

The actual background color (visible, say, in a reader without the alpha channel) is controlled by the color spec, and overridden by a color \special.

Thank you for your reply and the explanation.

Did you want this to work differently, or was the problem that you were surprised by the behavior?

Some time ago, a change in org-mode (emacs package) introduced a bug because this behavior was unexpected.

Org-mode uses latex > dvipng to generate images to be included in an emacs buffer. If the user specifies a background color, it is set using the latex commands, otherwise the image should be transparent.


I assume there's no way to get dvipng to behave like this ?

Regards,

--
Sébastien Miquel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]