summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hopatch.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/hopatch.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/hopatch.sty38
1 files changed, 21 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hopatch.sty b/Master/texmf-dist/tex/latex/oberdiek/hopatch.sty
index 3a39695a467..a5180680764 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/hopatch.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/hopatch.sty
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: hopatch
-%% Version: 2011/01/30 v1.0
+%% Version: 2011/06/24 v1.1
%%
%% Copyright (C) 2011 by
%% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
@@ -75,7 +75,7 @@
\edef\HOpatch@AtEnd{\HOpatch@AtEnd\noexpand\endinput}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hopatch}%
- [2011/01/30 v1.0 Wrapper for package hooks (HO)]
+ [2011/06/24 v1.1 Wrapper for package hooks (HO)]
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax
\def\TMP@RequirePackage#1[#2]{%
@@ -147,23 +147,27 @@
}
\AtBeginDocument{\HOpatch@list}
\ltx@ifundefined{AtEndPreamble}{}{%
- \AtEndPreamble{\HOpatch@list}%
+ \ltx@ifundefined{@endpreamblehook}{}{%
+ \AtEndPreamble{\HOpatch@list}%
+ }%
}
\ltx@ifundefined{AfterEndPreamble}{}{%
- \AfterEndPreamble{%
- \let\HOpatch@OrgIfPackageLoaded\@ifpackageloaded
- \let\HOpatch@OrgIfPackageLater\@ifpackagelater
- \let\HOpatch@OrgIfClassLoaded\@ifclassloaded
- \let\HOpatch@OrgIfClassLater\@ifclasslater
- \let\@ifpackageloaded\ltx@ifpackageloaded
- \let\@ifpackagelater\ltx@ifpackagelater
- \let\@ifclassloaded\ltx@ifclassloaded
- \let\@ifclasslater\ltx@ifclasslater
- \HOpatch@list
- \let\@ifpackageloaded\HOpatch@OrgIfPackageLoaded
- \let\@ifpackagelater\HOpatch@OrgIfPackageLater
- \let\@ifclassloaded\HOpatch@OrgIfClassLoaded
- \let\@ifclasslater\HOpatch@OrgIfClassLater
+ \ltx@ifundefined{@afterendpreamblehook}{}{%
+ \AfterEndPreamble{%
+ \let\HOpatch@OrgIfPackageLoaded\@ifpackageloaded
+ \let\HOpatch@OrgIfPackageLater\@ifpackagelater
+ \let\HOpatch@OrgIfClassLoaded\@ifclassloaded
+ \let\HOpatch@OrgIfClassLater\@ifclasslater
+ \let\@ifpackageloaded\ltx@ifpackageloaded
+ \let\@ifpackagelater\ltx@ifpackagelater
+ \let\@ifclassloaded\ltx@ifclassloaded
+ \let\@ifclasslater\ltx@ifclasslater
+ \HOpatch@list
+ \let\@ifpackageloaded\HOpatch@OrgIfPackageLoaded
+ \let\@ifpackagelater\HOpatch@OrgIfPackageLater
+ \let\@ifclassloaded\HOpatch@OrgIfClassLoaded
+ \let\@ifclasslater\HOpatch@OrgIfClassLater
+ }%
}%
}
\HOpatch@AtEnd%