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.

Compiling the following example (with xelatex or lualatex), I would expect to get violet letters abc:

\documentclass{article}

\usepackage{xcolor}
\usepackage{fontspec}
\setmainfont{Verdana}

\begin{document}
\color{violet}abc
\end{document}

However the result are black letters. Using \fontspec[Color=violet]{Verdana}abc, I get violet letters as expected. However I do not know how to change color in math mode. Further it breaks automatic coloring of TikZ nodes.

Is this by design, or is it a bug (in either xcolor or fontspec). Is there a workaround? How do I change math colors?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

Bug in v2.1a of fontspec, sorry. V2.1b on CTAN fixes the problem.

share|improve this answer
    
Thank you. I should have updated TeX Live before asking here. –  Caramdir Oct 9 '10 at 3:18
add comment

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.