Latex note#7 color that thing!

About Latex colors, I’m currently using the xcolor package, which is beatifully documented here.

a) You can load it with more than just the base colors, an example:

usepackage[svgnames]{xcolor} this svgnames/svgnames* loads a set of 151 rgb color names according to the SVG1.1 specification

b) If you want to add it to a table, just alter the package definition to:

usepackage[table,svgnames]{xcolor}

c) And then insert this before the begin of the tabular environment on your table:

rowcolors{1}{AliceBlue}{lightgray}

svgnames/svgnames* loadsasetof151 rgb colornames5 accordingtothe
SVG1.1specification[17]
6,enhancedby4namestakenfromthefile rgb.txt
whichispartofUnix/X11distributions.NotethatHTML4acceptsasubset
of16colorkeywords(usingidenticalspecifications),see[16]andsection4
onpage38.

Now you can observe your colorfull tables that are more HCI friendly, be carefull of color choice – when printing in black & white.

Leave a Reply

//