I am writing a package which requires the
xcolor package with
It is loaded in the package with
which works if my package is loaded after the user loaded
xcolor itself. However if my package is loaded before the user loads
xcolor, the user gets an option clash.
I can not load
xcolor at the beginning of the document. In that case more or less the whole package can only be loaded at the beginning of the document.
How can/should this be solved?