I am trying to use imakeidx
and the regexpatch
package in the same class. Since imakeidx
depends on the xpatch
package and xpatch
provides the same commands (same names, improved implementation) as regexpatch this gives errors (redefining commands). Is there anyway to pretend I loaded the xpatch
package, so the require
inside imakeidx
won"t load anything? (Since I load regexpatch
before, everything should be fine).
While I have a concrete example above, I would be interested in the general answer to prevent require
statements from loading packages, a workaround for my particular case is a bonus (I guess either I am doing something wrong or the package author will take a look).
imakeidx
manual, it seems like you\RequirePackage{xpatch}
unconditionally.\ProvidesFile{wibble.sty}
will make latex think that thewibble
package has been loaded.\makeatletter\let\ver@wibble\@empty\makeatother
(I think).