The xcolor documentation clearly states that \color{foo} (or similar commands) should access the current color of the (previously defined) color series foo. However, the following MWE produces a black square for me instead of the expected blue one.

Is this a bug? Am I doing anything wrong?







1 Answer 1


The slightly awkward syntax foo!! does what foo should do and can be used as a workaround.

I have investigated a bit further and discovered that the internal representation of the color (\\color@foo) is


with an empty second argument, while other colors have some driver specific specification there. I strongly suspect this to be a bug and will report it as such.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .