Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created May 31, 2012 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zr-tex8r/2843556 to your computer and use it in GitHub Desktop.
Save zr-tex8r/2843556 to your computer and use it in GitHub Desktop.
Patch to correct non-e-TeX support of hyperref
% hyperref-lpfix.sty
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hyperref-lpfix}[2012/05/30 v0.2]
\RequirePackage{hopatch}
\def\bxqhl@pkgname{hyperref-lpfix}
\def\reserved@a{%
\begingroup
\count@\HOpatch@counter\relax
\advance\count@\ltx@one\relax
\edef\x{\endgroup
\noexpand\def\noexpand\HOpatch@counter{\the\count@}%
}%
}%
\ifx\HOpatch@StepCounter\reserved@a
\def\HOpatch@StepCounter{%
\begingroup
\count@\HOpatch@counter\relax
\advance\count@\ltx@one\relax
\edef\x{\endgroup
\noexpand\def\noexpand\HOpatch@counter{\the\count@}%
}%
\x
}%
\PackageInfo\bxqhl@pkgname{Patch to hopatch applied}
\fi
\endinput
%% EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment