I would like to colour some rows of my table. However when using \usepackage[table]{xcolor} I get the error "Option clash for package xcolor".

I am using quite a lot of packages, but I do not know with which one it clashes. Also, I would like to know what I can do to still use all my packages and highlight my table rows. Is there another option than xcolor?

Here is a list of all used packages:









\includepdfset{offset=5mm 0mm}



\graphicspath { {../figures/} }







\apptocmd{\sloppy}{\hbadness 9000\relax}{}{}




The pdfpages package loads the eso-pic package, which loads the xcolor package without any options, then when you load xcolor with the [table] option later, LaTeX tells you about the option clash:

The package xcolor has already been loaded with options:
There has now been an attempt to load it with options
Adding the global options:
to your \documentclass declaration may fix this.

To fix the issue you can either add the table option to your \documentclass. i.e.:


or you can load the xcolor package before pdfpages:

  • Thank you! The second option works well (the first one, adding table to the documentclass didn't) – Fraenzine Aug 27 '18 at 14:30

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.