# How to make a line of text in a slightly different color (light gray in my case) in XeLaTeX

I Like to add an informal footnote to my document, containing web addresses. Some of the text is to be de-emphasized using gray text.

How do I do that for a line or a word in XeLaTeX?

-

You can just use regular xcolor and hyperref methods for colouring elements. Here's an example:

% !TEX TS-program = XeLaTeX

\documentclass{article}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{hyperref}
\newcommand{\deemph}[1]{{\color{black!40}#1}}
\begin{document}
This is some text and \deemph{this is some deemphasized text}.

This is a grey link: \href{http://tex.stackexchange.com}{TeX Stack Exchange}
\end{document}


-
Thanks, works best. For my needs, using \code{gray} and \code{lightgray} is sufficient, though. –  polemon Apr 14 '12 at 20:50