Coloring
This article explains how to use colour in your LaTeX document via the color or xcolor packages.
The xcolor package
xcolor package\documentclass{article}
\usepackage{xcolor}
\begin{document}
This example shows how to use the \texttt{xcolor} package
to change the colour of \LaTeX{} page elements.
\begin{itemize}
\color{magenta}
\item First item
\item Second item
\end{itemize}
The background colour of text can also be \textcolor{red}{easily} set. For
instance, you can change use an \colorbox{orange}{orange background} and then continue typing.
\end{document}
Supported colors


Last updated