[texhax] setting colors to modes

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Thu Mar 27 22:04:06 CET 2008

> I'm using latex (foiltex) to produce slides.
> It would be nice to tell it to make all text in one color,
> and all math-mode content in another color. Anyone know if
> there is a way to do this ? the only option I currently see
> is to do it manually each time.

Does this help?

\documentclass{article}
\usepackage{color}
\everymath\expandafter{\the\everymath\color{red}}
\begin{document}
\color{blue}
The test is in blue and the math in red: $\mathrm{incarnadine}=\infty$, ok?
\end{document}

Cheers,  Phil