Wednesday, 21 August 2013

Pretending a package has been loaded

Pretending a package has been loaded

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 awnser to prevent reuire statements from loading packages, a
workarround for my particular case is a bonus (I guess either I am doing
something wrong or the package author will take a look).

No comments:

Post a Comment