Next: How do I insert
Up: Miscellaneous Latex syntax
Previous: How do I type
- One scheme:
- To define colors, put in your preamble:
\input colordvi
\def\Red#1{\Color{0
0.70 0.70 0.2}{#1}}
\def\Green#1{\Color{0.70
0 0.5 0.2}{#1}}
\def\Blue#1{\Color{0.70
0 0 0.2}{#1}}
- To use:
Her eyes were \Green{hazel}.
- Second scheme:
- To use colors, you have several options:
\textcolor{name_of_color}{text}
{\color{name_of_color}
text}
{\color[color_model]{x,y,z}
text} % For example, color_model
might be 'rgb' and x,y,z might be '0,1,0'
- Another syntax for defining a color is:
\definecolor{name_of_color}{color_model}{x,y,z}
% e.g. {MyBlue}{rgb}{0.8,0.85,1}
- see also http://www.stat.ncsu.edu/~fuentes/slides/slides.html
Chris Paciorek
2006-04-02