The xcolor Package
Documentation | xcolor |
---|---|
Categories | color |
Description | Extends LaTeX's color capabilities. |
Options |
\usepackage[ dvipsnames % Adds a number of handy color names, including `ForestGreen`, `RawSienna`, etc., as described on page 42 of the documentation. svgnames % Adds a number of useful color names, such as `DarkRed`, `DarkSlateBlue`, etc., as described on page 42 of the documentation. ]{xcolor} % extends color options |
Examples |
There are two ways to change the color of text. To alter the color
in a small block, you can use \textcolor{DarkRed}{the textcolor
command}. To change the color more generally, use \color{DarkGreen}
a color command, which stays in effect until you exit the current scope.