Is there a way to determine if a color has been defined by xcolor? I am trying to add compatibility to a library using multiple versions of tcolorbox where certain colors were recently renamed; I'd like to redefine them if they are undefined.

  • Use \providecolor it defines a color only if it dosen't exist already – DG' Apr 21 at 21:08
  • there is \@ifundefinedcolor to test a color. – Ulrike Fischer Apr 21 at 21:11

Browse other questions tagged or ask your own question.