I'm trying to get the plus-minus sign (\pm
) in different colors.
I started with
\newcommand{\rgpm}{~\overset{\mathbf{\displaystyle\color{green}+}}
and probably could further adjust it with some \vspace
commands and \raisebox
- but it just doesn't seem right. Is there a simple approach?
MWE
\documentclass{article}
\usepackage{color}
\usepackage{amsmath}
\newcommand{\rgpm}[2]{~\overset{\mathbf{\displaystyle\color{#1}+}}{\mathbf{\color{#2}-}}~}
\begin{document}
\[a \rgpm{green}{red} b \pm c \]
\end{document}