summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty34
1 files changed, 16 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty b/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
index 791610b8e6b..830d67aa0ef 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
@@ -34,26 +34,24 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-lastpage}%
- [2009/08/07 v2.4 Module lastpage for zref (HO)]%
-\RequirePackage{zref-base}[2009/08/07]
+ [2009/12/08 v2.7 Module lastpage for zref (HO)]%
+\RequirePackage{zref-base}[2009/12/08]
+\RequirePackage{atveryend}[2009/12/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
\zref@newlist{LastPage}
-\AtBeginDocument{%
- \AtEndDocument{%
- \if@filesw
- \clearpage
- \begingroup
- \advance\c@page\m@ne
- \toks@\expandafter\expandafter\expandafter{%
- \expandafter\Z@L@main
- \Z@L@LastPage
- }%
- \expandafter\zref@wrapper@immediate\expandafter{%
- \expandafter\ZREF@label\expandafter{\the\toks@}{LastPage}%
- }%
- \endgroup
- \fi
- }%
+\AfterLastShipout{%
+ \if@filesw
+ \begingroup
+ \advance\c@page\m@ne
+ \toks@\expandafter\expandafter\expandafter{%
+ \expandafter\Z@L@main
+ \Z@L@LastPage
+ }%
+ \expandafter\zref@wrapper@immediate\expandafter{%
+ \expandafter\ZREF@label\expandafter{\the\toks@}{LastPage}%
+ }%
+ \endgroup
+ \fi
}
\endinput
%%