Latex note#7 color that thing!

3 Jan

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: