1

I would like to change the color of anything that is in mathematical mode, in all my document.

Is it possible?


PS: The solution I've found so far is

\everymath{\color{red}}
\everydisplay{\color{red}}
\def\m@th{\normalcolor\mathsurround\z@}

but it cancels the command \everymath{\displaystyle}

4
  • Could you please show us a MWE, what you already have tried?
    – Jan
    Jan 5, 2017 at 13:56
  • I havent tried anything. I need to redefine $[...]$ and $$[...]$$... I don't know how to start.
    – Colas
    Jan 5, 2017 at 13:57
  • Start with not using $$ ... $$, see tex.stackexchange.com/questions/503/why-is-preferable-to Jan 5, 2017 at 14:06
  • Yes it is a duplicate. \everymath{\color{red}} \everydisplay{\color{red}} \def\m@th{\normalcolor\mathsurround\z@} made it.
    – Colas
    Jan 5, 2017 at 14:10

0

Browse other questions tagged .