TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to define some colors and then define some aliases to them. For instance, if I define the following color:


and then want to define an alias "NoteColor" to be the same as "MyColorA", what is the command? I tried:


but this did not work. Any suggestions or links welcome.

share|improve this question
Are you sure the second command didn't work? It should have. It's an alternate syntax to the \colorlet solutions given in the answers: \definecolor{Alias}{named}{ExistingColour} = \colorlet{Alias}{ExistingColour}. – Alan Munn Oct 25 '11 at 14:08
I tried \definecolor{Alias}{named}{ExistingColour} but it still did not work. However, the xcolor solution below works. – kmccoy Oct 25 '11 at 15:28
@kmmcoy Both commands are from xcolor so they should both with. – Alan Munn Oct 25 '11 at 16:00
up vote 29 down vote accepted

If you load the xcolor package, which accepts the same commands of color package and many more, you can say

share|improve this answer
Perfect! I changed to use the xcolor package and used \colorlet{Alias}{ExistingColour} which works nicely. Thanks. – kmccoy Oct 25 '11 at 15:29

With xcolor package you can use \colorlet.

share|improve this answer

Your Answer


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.