summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-10-02 23:04:08 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-10-02 23:04:08 +0000
commitff02932b3376f298f236f229b8feb9a20ac71cc3 (patch)
tree33f7e3e10b01439610b655c971acaabbd95e761a /Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
parent4664a0769936e4e203807fab82721d1f10abc09d (diff)
oberdiek update
git-svn-id: svn://tug.org/texlive/trunk@10833 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty16
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty b/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
index 6e219a1c0d1..90bb4ec773a 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty
@@ -28,20 +28,28 @@
%% zref-abspage.sty, zref-counter.sty, zref-dotfill.sty,
%% zref-hyperref.sty, zref-lastpage.sty, zref-perpage.sty,
%% zref-savepos.sty, zref-titleref.sty, zref-totpages.sty,
-%% zref-user.sty, zref-xr.sty, zref-example.tex.
+%% zref-user.sty, zref-xr.sty, zref-example.tex,
+%% zref-example-lastpage.tex, zref-test1.tex.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-lastpage}%
- [2008/09/21 v2.2 Module lastpage for zref (HO)]%
-\RequirePackage{zref-base}[2008/09/21]
+ [2008/10/01 v2.3 Module lastpage for zref (HO)]%
+\RequirePackage{zref-base}[2008/10/01]
\@ifundefined{ZREF@baseok}{\endinput}{}
+\zref@newlist{LastPage}
\AtBeginDocument{%
\AtEndDocument{%
\if@filesw
\clearpage
\begingroup
\advance\c@page\m@ne
- \zref@wrapper@immediate{\zref@label{LastPage}}%
+ \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
}%