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?







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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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