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.

Possible Duplicate:
Defining a Color using another

How can one define a new color using the mix of other colors like red!50!blue. I can us this as an arguement of \color but not with \defincolor

\documentclass{article}

\usepackage{xcolor}

\definecolor{mix}{named}{red!50!blue}

\begin{document}
    \color{red!50!blue} works
    \color{mix} doesn't work
\end{document}

I guess it’s a problem with the pseudo-modell named since red!50!blue is not a single color name. But is there a color-modell accepting mixed colors to define a new one?

share|improve this question
    
I found tex.stackexchange.com/q/41980/4918 which seems to be a duplicate. It’s shows a way using \colorlet but I still wonder if there’ll be a way using \defincolor? –  Tobi Jun 27 '12 at 7:54
add comment

marked as duplicate by Tobi, topskip, egreg, doncherry, Jake Jun 27 '12 at 11:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 3 down vote accepted

Use \colorlet:

\documentclass{article}

\usepackage{xcolor}

\colorlet{mix}{red!50!blue}

\begin{document}
    \color{red!50!blue} works
    \color{mix} work as well
\end{document}
share|improve this answer
2  
Oh, it's a duplicate.... "sorry for answering" –  topskip Jun 27 '12 at 7:56
add comment

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