bug-auctex
[Top][All Lists]
Advanced

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

bug#19271: 11.88; Colored Equation incorrect foreground color


From: David Kastrup
Subject: bug#19271: 11.88; Colored Equation incorrect foreground color
Date: Thu, 04 Dec 2014 17:55:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Felix Grabowski <address@hidden> writes:

> When using LaTeX preview to show colored inline equations in
> combination with a colorscheme that has a non black text color, the
> foreground color of the equations reverts back to black after using
> any color commands.
>
> Example:
> \[
>   colorschemeForegroundColor = {\color{red}{redText}} \cdot thisIsNowBlack 
> \]
> or:
> \[
>   $ c = \color{red}{r} \cdot b $
> \]
> This bevior can be obersved with any colorscheme and the problem is
> especially bad when using dark colorschemes where the equations then
> become indistinguishable from the theme background.

preview-latex is not magic.  It attempts to support Emacs color schemes
by starting the PostScript/PDF rendering with Emacs' background and
foreground colors.  This is an inherent mismatch of the correct page
output (which is black o white by default) and the preview-latex output,
for the sake of getting somewhat reasonable results.

If you use color in the LaTeX document itself, all bets are off
regarding the interference of preview-latex's tentatively preset canvas
and drawing color with the coloring commands in the document.

-- 
David Kastrup





reply via email to

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