texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Inline math preview does not use document colour

Open Atcold opened this issue 3 years ago • 3 comments

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. image

Actual behaviour

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

image

Atcold avatar Mar 08 '22 21:03 Atcold

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

sunderme avatar Mar 09 '22 17:03 sunderme

It reset any colour but the page's.

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

Atcold avatar Mar 11 '22 18:03 Atcold

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.

sunderme avatar Mar 11 '22 18:03 sunderme