diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/zref-base.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/zref-base.sty | 84 |
1 files changed, 45 insertions, 39 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty b/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty index d9002083971..73f6f08b3cf 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/zref-base.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,15 +29,17 @@ %% 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-base}% - [2009/12/08 v2.7 Module base for zref (HO)]% + [2010/03/26 v2.8 Module base for zref (HO)]% +\RequirePackage{ltxcmds}[2009/12/12] \def\ZREF@name{zref} \def\ZREF@ErrorNoLine#1#2{% \begingroup @@ -50,25 +52,22 @@ \def\ZREF@patch#1{% \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname #1\endcsname\relax - \expandafter\@gobble + \expandafter\ltx@gobble \else \expandafter\let\csname ZREF@org@#1\expandafter\endcsname \csname #1\endcsname - \expandafter\@firstofone + \expandafter\ltx@firstofone \fi } -\begingroup - \@ifundefined{eTeXversion}{% - \ZREF@ErrorNoLine{% - Missing support for eTeX; package is abandoned% - }{% - Use a TeX compiler that support eTeX and enable eTeX % - in the format.% - }% - \endgroup - \endinput - }{}% -\endgroup +\ltx@IfUndefined{eTeXversion}{% + \ZREF@ErrorNoLine{% + Missing support for eTeX; package is abandoned% + }{% + Use a TeX compiler that support eTeX and enable eTeX % + in the format.% + }% + \endinput +}{}% \RequirePackage{etexcmds}[2007/09/09] \ifetex@unexpanded \else @@ -103,9 +102,9 @@ } \def\zref@iflistundefined#1{% \expandafter\ifx\csname Z@L@#1\endcsname\relax - \expandafter\@firstoftwo + \expandafter\ltx@firstoftwo \else - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \fi } \def\zref@listexists#1{% @@ -131,9 +130,9 @@ }% \expandafter\endgroup \ifZREF@found - \expandafter\@firstoftwo + \expandafter\ltx@firstoftwo \else - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \fi } \def\zref@listforloop#1#2{% @@ -187,9 +186,9 @@ \fi \def\zref@ifpropundefined#1{% \expandafter\ifx\csname Z@E@#1\endcsname\relax - \expandafter\@firstoftwo + \expandafter\ltx@firstoftwo \else - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \fi } \def\zref@propexists#1{% @@ -308,11 +307,18 @@ } \def\zref@ifrefundefined#1{% \expandafter\ifx\csname Z@R@#1\endcsname\relax - \expandafter\@firstoftwo + \expandafter\ltx@firstoftwo \else - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \fi } +\newcommand*{\zifrefundefined}[1]{% + \zref@wrapper@babel\ZREF@ifrefundefined{#1}% +} +\def\ZREF@ifrefundefined#1{% + \zref@refused{#1}% + \zref@ifrefundefined{#1}% +} \def\zref@refused#1{% \zref@wrapper@babel\ZREF@refused{#1}% } @@ -335,7 +341,7 @@ } \def\zref@ifrefcontainsprop#1#2{% \zref@ifrefundefined{#1}{% - \@secondoftwo + \ltx@secondoftwo }{% \expandafter\ZREF@ifrefcontainsprop \csname Z@E@#2\expandafter\endcsname @@ -348,9 +354,9 @@ \def\ZREF@ifrefcontainsprop#1#2#3{% \expandafter\ifx\expandafter\ZREF@novalue #1#3#2\ZREF@novalue\ZREF@nil\@empty - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \else - \expandafter\@firstoftwo + \expandafter\ltx@firstoftwo \fi } \def\ZREF@novalue{\ZREF@NOVALUE} @@ -369,20 +375,20 @@ \long\def\zref@wrapper@unexpanded#1{% \let\ZREF@unexpanded\etex@unexpanded #1% - \let\ZREF@unexpanded\@firstofone + \let\ZREF@unexpanded\ltx@firstofone } -\let\ZREF@unexpanded\@firstofone +\let\ZREF@unexpanded\ltx@firstofone \long\def\zref@wrapper@babel#1#2{% \ifcsname if@safe@actives\endcsname - \expandafter\@firstofone + \expandafter\ltx@firstofone \else - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \fi {% \if@safe@actives - \expandafter\@secondoftwo + \expandafter\ltx@secondoftwo \else - \expandafter\@firstoftwo + \expandafter\ltx@firstoftwo \fi {% \begingroup @@ -401,7 +407,7 @@ \def\zref@require@unique{% \@ifundefined{c@zref@unique}{% \begingroup - \let\@addtoreset\@gobbletwo + \let\@addtoreset\ltx@gobbletwo \newcounter{zref@unique}% \endgroup \renewcommand*{\thezref@unique}{% |