texstudio
texstudio copied to clipboard
Inline math preview does not use document colour
Environment
- TeXstudio: 4.2.2
- Qt: 6.2.2
- OS: MacOS 12.2.1
- TeX distribution: texlive 2021
Expected behaviour
Inline preview of maths should check what colour has been set for the entire document.

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

apparently the used preview package resets any color. I assume that it is defined in the preamble.
It reset any colour but the page's.
Can you point me in the direction of the code where this preview is handled?
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.