texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.75k stars 342 forks source link

Inline math preview does not use document colour #2154

Open Atcold opened 2 years ago

Atcold commented 2 years ago

Environment

Expected behaviour

Inline preview of maths should check what colour has been set for the entire document. image

Actual behaviour

TeXstudio ignores \color{white} while observing \pagecolor{darkgray}.

image

sunderme commented 2 years ago

apparently the used preview package resets any color. I assume that it is defined in the preamble.

Atcold commented 2 years ago

It reset any colour but the page's.

Can you point me in the direction of the code where this preview is handled?

sunderme commented 2 years ago

the used tex is stored in /tmp (you can see it in the txs messages when compiling the preview. The files are not removed immediately) You can experiment there to find a solution.