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 | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty b/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty index 7ac3d034f4d..7fc366adf6d 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/zref-base.sty @@ -28,11 +28,12 @@ %% 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-base}% - [2008/09/21 v2.2 Module base for zref (HO)]% + [2008/10/01 v2.3 Module base for zref (HO)]% \def\ZREF@name{zref} \def\ZREF@ErrorNoLine#1#2{% \begingroup @@ -131,6 +132,16 @@ \expandafter\@secondoftwo \fi } +\def\zref@listforloop#1#2{% + \expandafter\expandafter\expandafter\@tfor + \expandafter\expandafter\expandafter\zref@prop + \expandafter\expandafter\expandafter:% + \expandafter\expandafter\expandafter=% + \csname Z@L@#1\endcsname + \do{% + #2\zref@prop + }% +} \def\zref@addprop#1#2{% \zref@listexists{#1}{% \zref@propexists{#2}{% @@ -144,6 +155,32 @@ }% }% } +\def\zref@localaddprop#1#2{% + \zref@listexists{#1}{% + \zref@propexists{#2}{% + \zref@iflistcontainsprop{#1}{#2}{% + \PackageWarning\ZREF@name{% + Property `#2' is already in list `#1'% + }% + }{% + \expandafter\ZREF@l@addto@macro\csname Z@L@#1\endcsname{{#2}}% + }% + }% + }% +} +\ifetex@unexpanded + \def\ZREF@l@addto@macro#1#2{% + \global\let\ZREF@gtemp#1% + \g@addto@macro\ZREF@gtemp{#2}% + \let#1\ZREF@gtemp + }% +\else + \def\ZREF@l@addto@macro#1#2{% + \edef#1{% + \etex@unexpanded\expandafter{#1#2}% + }% + }% +\fi \def\zref@ifpropundefined#1{% \expandafter\ifx\csname Z@E@#1\endcsname\relax \expandafter\@firstoftwo |