Mar 31, 2012

Color in LaTeX

For the longest time, I avoided reading the xcolor manual. I finally opened it up yesterday and went to page 9. The simplicity of the whole package has finally dawned on me.

This is for all of us who are incredibly short on time but want precise colors in our documents! There are 16,777,216 colors that can be specified using a hexadecimal value.. Just use this form when specifying one of these colors:

somethingyouwantcolored=[HTML]{081D58}

will turn that thing into a dark navy blue.

Or you can define a name for the color:

\definecolor{darknavy}{HTML}{081D58}


and use this name instead

somethingyouwantcolored=darknavy


That's it! Black and white no more!

0 Comments:

Post a Comment