Short version: yes, you'll have to redefine the class, or at least patch their hyperref
inclusion.
I ran into a similar problem with my hyperref
-using thesis class (which was originally a package). When it was a package, I could have students load packages before or after my thesis package, and hyperref
would then be in the right order. Once I made a class, though, all my packages would be loaded first in the \documentclass
line, which made it impossible for anyone to work around hyperref
. Rather than abandon hyperref
entirely, I added the following to the class:
\IfFileExists{\jobname-packages-loaded-before-hyperref.sty}{%
\RequirePackage{\jobname-packages-loaded-before-hyperref}
}{}
% For all sorts of hyperlinks in the PDF output.
\RequirePackage[pdfcreator={pdfLaTeX with hyperref},
plainpages=false,
pdfpagelabels,
hypertexnames=true,
colorlinks=false]{hyperref}
\IfFileExists{\jobname-packages-loaded-after-hyperref.sty}{%
\RequirePackage{\jobname-packages-loaded-after-hyperref}%
}{}
and now my students just have to put all their extra \usepackage
or \RequirePackage
entries in one of two .sty files. Examples: before package, after package, and class.
hyperref
package is after\end{document}
:D – percusse Apr 5 '12 at 12:41