diff options
author | Karl Berry <karl@freefriends.org> | 2010-03-26 23:30:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-03-26 23:30:06 +0000 |
commit | 9a032296aec6ef5b4ac4bb94209873531040284f (patch) | |
tree | 185ff5001a4624653e7264244b52edfe78bd705e /Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty | |
parent | a0ee1be019cc1fb6421bf81cc552cfb85ac9fa13 (diff) |
oberdiek update (26mar10)
git-svn-id: svn://tug.org/texlive/trunk@17570 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.sty | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty b/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty index c3a249cff33..9499cc12f6a 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/zref-lastpage.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006-2009 by +%% Copyright (C) 2006-2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,16 +29,18 @@ %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, %% zref-abspage.sty, zref-counter.sty, zref-dotfill.sty, -%% zref-hyperref.sty, zref-lastpage.sty, zref-perpage.sty, -%% zref-runs.sty, zref-savepos.sty, zref-titleref.sty, -%% zref-totpages.sty, zref-user.sty, zref-xr.sty, -%% zref-example.tex, zref-example-lastpage.tex, zref-test1.tex, -%% zref-test-runs.tex. +%% zref-hyperref.sty, zref-lastpage.sty, zref-nextpage.sty, +%% zref-perpage.sty, zref-runs.sty, zref-savepos.sty, +%% zref-thepage.sty, zref-titleref.sty, zref-totpages.sty, +%% zref-user.sty, zref-xr.sty, zref-example.tex, +%% zref-example-lastpage.tex, zref-example-nextpage.tex, +%% zref-test1.tex, zref-test-runs.tex. %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-lastpage}% - [2009/12/08 v2.7 Module lastpage for zref (HO)]% -\RequirePackage{zref-base}[2009/12/08] + [2010/03/26 v2.8 Module lastpage for zref (HO)]% +\RequirePackage{zref-base}[2010/03/26] +\RequirePackage{zref-abspage}[2010/03/26] \RequirePackage{atveryend}[2009/12/07] \@ifundefined{ZREF@baseok}{\endinput}{} \zref@newlist{LastPage} @@ -56,6 +58,22 @@ \endgroup \fi } +\def\zref@iflastpage#1{% + \ifnum\zref@extractdefault{#1}{abspage}{-1}=% + \zref@extractdefault{LastPage}{abspage}{-2} % + \expandafter\ltx@firstoftwo + \else + \expandafter\ltx@secondoftwo + \fi +} +\newcommand*{\ziflastpage}{% + \zref@wrapper@babel\ZREF@iflastpage +} +\def\ZREF@iflastpage#1{% + \zref@refused{LastPage}% + \zref@refused{#1}% + \zref@iflastpage{#1}% +} \endinput %% %% End of file `zref-lastpage.sty'. |