Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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}
\hypersetup{colorlinks=true,urlcolor={black!40}}
\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}

output of code

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.