<< Click to Display Table of Contents >> Color-Table structure |
The structure is:
{\colortbl; color1; color2; ... colorN;}
where <colorN> is a set of describing RTF keywords:
•"\red<number>" declares the red amount of an RGB value
•"\green<number>" declares the green amount of an RGB value
•"\blue<number>" declares the blue amount of an RGB value
For example:
{\colortbl; \red0\green0\blue0; \red0\green0\blue255; \red0\green255\blue0;}
Declares three colors (black, blue and green), which can be referenced later in the document with:
•"\cf<index>" specifies the foreground color
•"\cb<index>" specifies the background color
•"\cf1\cb2 Hello \cf3\cb1 World!"
"Hello" is shown black on blue and "World!" green on black.
Note that the first entry in the color-table has the index 1.