~sbinet/star-tex

star-tex/testdata/xcolor.tex -rw-r--r-- 570 bytes
9bb27e8aSebastien Binet ci: bump to freebsd/latest 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage[dvipsnames]{xcolor}


\begin{document}

This example shows different examples on how to use the \texttt{xcolor} package 
to change the colour of elements in \LaTeX.

{\color{blue}Text colored with \texttt{\\blue}}

\noindent
{\color{red} \rule{\linewidth}{0.5mm} }

The background colour of some text can also be \textcolor{red}{easily} set. For 
instance, you can change to orange the background of \colorbox{BurntOrange}{this 
text} and then continue typing.

\end{document}