[tex-live] TL 2010: fontspec / setmainfont and coloured text

Raphael Schweizer rschweizer at schweizer-informatik.ch
Tue Sep 21 10:21:52 CEST 2010


Hi list

Yesterday I updated my TL installation and now coloured text won't work as
it used to:

% !TEX TS-program = xelatex
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Arial}
\usepackage{xcolor}
\begin{document}
\textcolor{red}{coloured text?!} % works only if setmainfont is NOT used
{\addfontfeature{Color=red}coloured text?!} % works only if setmainfont IS
used
\end{document}

Other packages which use colours (e.g. listings) won't work as well.

Any suggestions what I'm doing wrong? Thanks.

Regards, Raphael



More information about the tex-live mailing list