# \textcolor¶

Command in package math.

## Synopsis¶

\textcolor{color}{fragment}


## Description¶

Display the formula fragment fragment in the color specified by color. The latter may
be a color definition in any format allowed by CSS. In particular, color names like "red",
"green" can be used. Another allowed format is "#RRGGBB" where RR, GG, BB are the hexadecimal
RGB values of the color in the range from 00 to FF. With the latter form, take care that the # is
escaped with a backslash, since # has a special meaning in Jmmtex (see second example).

## Example¶

\begin{displaymath}
x = \frac{\textcolor{blue}{-b\pm\sqrt{b^2 - 4ac}}}{2a}
\end{displaymath}

Result, as rendered by your browser

 $x=\frac{-b±\sqrt{{b}^{2}-4ac}}{2a}$

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)