How to Use Colors in LaTeX

Sometimes, it helps to put colors on your symbols so that your audiences can grasp equations or definitions at a glance, especally when you are giving presentations with lots of them.

A complete solution is given here.

I’ll just give you an example which goes like

$$\color{orange} A = \textcolor{blue}{B} \mathbin{\textcolor{red}{-}} \textcolor{green}{C}$$

And that gets compiled to be

𝐴=𝐵𝐶.

A Remark

What’s good about this solution is that it depends only on LaTeX itself. That is, any platform that supports LaTeX (plus some basic packages) will support this solution.

For instance, I typically use

And all of them support this solution.