From b3a11ba60a021bc8ec849629e75c578fa2d0da62 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 23 Apr 2011 22:42:42 +0000
Subject: oberdiek (23apr11)

git-svn-id: svn://tug.org/texlive/trunk@22180 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/generic/oberdiek/hobsub-hyperref.sty       | 52 +++++++++++++---------
 1 file changed, 31 insertions(+), 21 deletions(-)

(limited to 'Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty')

diff --git a/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty b/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
index fe7c3eed6a3..71354f61e92 100644
--- a/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
+++ b/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
@@ -23,7 +23,7 @@
 %% This is a generated file.
 %% 
 %% Project: hobsub
-%% Version: 2011/04/18 v1.3
+%% Version: 2011/04/23 v1.4
 %% 
 %% Copyright (C) 2011 by
 %%    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
@@ -116,7 +116,7 @@
 \fi
 \expandafter\x\csname ver@hobsub-hyperref.sty\endcsname
 \ProvidesPackage{hobsub-hyperref}%
- [2011/04/18 v1.3 Bundle oberdiek, subset hyperref (HO)]%
+ [2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)]%
 \begingroup\catcode61\catcode48\catcode32=10\relax%
 \catcode13=5 % ^^M
 \endlinechar=13 %
@@ -161,7 +161,7 @@
 \TMP@EnsureCode{96}{12}% `
 \edef\HOBsub@AtEnd{\HOBsub@AtEnd\noexpand\endinput}
 \NeedsTeXFormat{LaTeX2e}
-\RequirePackage{hobsub-generic}[2011/04/18]
+\RequirePackage{hobsub-generic}[2011/04/23]
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ver@hobsub.sty\endcsname\relax
 \else
@@ -242,11 +242,11 @@
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
 \immediate\write-1{%
- Package: hobsub 2011/04/18 v1.3 Subsetting bundle oberdiek (HO)%
+ Package: hobsub 2011/04/23 v1.4 Subsetting bundle oberdiek (HO)%
 }%
 \else
 \ProvidesPackage{hobsub}%
- [2011/04/18 v1.3 Subsetting bundle oberdiek (HO)]%
+ [2011/04/23 v1.4 Subsetting bundle oberdiek (HO)]%
 \fi
 \endinput
 <hobsub>
@@ -769,7 +769,15 @@
 \edef\AtVeryEnd@AtEnd{\AtVeryEnd@AtEnd\noexpand\endinput}
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{atveryend}%
- [2011/04/15 v1.6 Hooks at very end of document (HO)]
+ [2011/04/23 v1.7 Hooks at very end of document (HO)]
+\def\AtVeryEnd@ifundefined#1{%
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname #1\endcsname\relax
+\expandafter\@firstoftwo
+\else
+\expandafter\@secondoftwo
+\fi
+}
 \let\AtVeryEnd@BeforeClearDocumentHook\@empty
 \let\AtVeryEnd@AfterLastShipoutHook\@empty
 \let\AtVeryEnd@AtVeryEndDocumentHook\@empty
@@ -1157,20 +1165,6 @@
 \AtVeryEnd@RedefEndDocument\a@enddocument % alatex.sty
 \AtVeryEnd@RedefEndDocument\enddocumentasusual % frenchle.sty
 \AtVeryEnd@RedefEndDocument\old@enddocument % uwthesis.cls
-\AtBeginDocument{%
-\@ifpackageloaded{scrlfile}{%
-\@ifundefined{BeforeClosingMainAux}{}{%
-\BeforeClosingMainAux{\Call@AfterLastShipout}%
-}%
-\@ifundefined{AfterReadingMainAux}{}{%
-\AfterReadingMainAux{\Call@AtVeryEndDocument}%
-}%
-}{}%
-\@ifpackageloaded{etoolbox}{%
-\@ifundefined{AfterEndDocument}{}{%
-\AfterEndDocument{\Call@AtVeryEndDocument}%
-}%
-}{}%
 \def\AtVeryEnd@document{document}%
 \def\AtVeryEnd@RedefCheckEnd{%
 \expandafter\def\expandafter\@checkend
@@ -1189,6 +1183,7 @@
 }%
 \aftergroup\AtVeryEnd@RedefCheckEnd
 }%
+\AtBeginDocument{%
 \AtEndDocument{%
 \AtVeryEnd@RedefCheckEnd
 }%
@@ -1210,6 +1205,21 @@
 \endgroup
 }%
 }
+\AtBeginDocument{%
+\@ifpackageloaded{scrlfile}{%
+\AtVeryEnd@ifundefined{BeforeClosingMainAux}{}{%
+\BeforeClosingMainAux{\Call@AfterLastShipout}%
+}%
+\AtVeryEnd@ifundefined{AfterReadingMainAux}{}{%
+\AfterReadingMainAux{\Call@AtVeryEndDocument}%
+}%
+}{}%
+\@ifpackageloaded{etoolbox}{%
+\AtVeryEnd@ifundefined{AfterEndDocument}{}{%
+\AfterEndDocument{\Call@AtVeryEndDocument}%
+}%
+}{}%
+}
 \def\AtVeryEnd@temp{%
 \AtBeginDocument{%
 \let\@startlabels\startlabels
@@ -1291,7 +1301,7 @@
 }%
 }%
 \AtEndDocument{%
-\@ifundefined{@startlabels}{%
+\AtVeryEnd@ifundefined{@startlabels}{%
 }{%
 \clearpage
 \@startlabels
-- 
cgit v1.2.3

