Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

{color} is about using color in (La)TeX documents. Popular packages are color and xcolor.

is about using color in (La)TeX documents. There are two main packages for doing this: color (package documentation) and xcolor (package documentation). The xcolor package extends the color package, providing many more ways of specifying and using colors.

Loading one of these packages by default gives you only a few color options (white, black, red, green, blue, cyan, magenta, and yellow), but by passing one of the options usenames, dvipsnames, svgnames, or x11names to xcolor, you can get access to a wider variety of named colors. Additionally, you can define your own colors using \definecolor, e.g. \definecolor{orange}{RGB}{225, 127, 0}.

To color a portion of text, use {\color{red} text} or \textcolor{red} text; you can also give text a colored background using \colorbox or \fcolorbox.

Frequently Asked Questions

  1. How can I remove the colored boxes around links created by hyperref?
history | excerpt history