Coloring your document
We could enhance our texts further by colors. We didn't deal with it yet, because most people use LaTeX for writing serious books and articles, or letters where too much color may harm the appearance. But why not try something fancy? For instance, diagrams and tables in presentations are often colorful.
We just need to load the color package:
\usepackage{color}
From now on, we have to use a command to set the text color:
\color{name}
is a declaration that switches to the colorname
. Just try\color{blue}
.\textcolor{name}{text}
is the corresponding command form, coloring justtext
. That's like{\color{name}}
, not new for you.
The package offers the command \definecolor
. Use this to mix your own colors. You may read it in the documentation of the color
package or of the graphicx
package, if needed.
But much better is to use the xcolor package, which extends the color facilities. It offers a lot of readily mixed colors; you just need to call it by its name and it has powerful...