diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/refcount.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/refcount.sty | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/refcount.sty b/Master/texmf-dist/tex/latex/oberdiek/refcount.sty index aa5de92420f..ddf89306d51 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/refcount.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/refcount.sty @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: refcount -%% Version: 2010/12/01 v3.2 +%% Version: 2011/10/16 v3.4 %% -%% Copyright (C) 1998, 2000, 2006, 2008, 2010 by +%% Copyright (C) 1998, 2000, 2006, 2008, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -32,7 +32,7 @@ %% and the derived files %% refcount.sty, refcount.pdf, refcount.ins, refcount.drv, %% refcount-test1.tex, refcount-test2.tex, refcount-test3.tex, -%% refcount-test4.tex. +%% refcount-test4.tex, refcount-test5.tex. %% \begingroup\catcode61\catcode48\catcode32=10\relax% \catcode13=5 % ^^M @@ -100,7 +100,7 @@ \fi \expandafter\x\csname ver@refcount.sty\endcsname \ProvidesPackage{refcount}% - [2010/12/01 v3.2 Data extraction from references (HO)]% + [2011/10/16 v3.4 Data extraction from label references (HO)]% \begingroup\catcode61\catcode48\catcode32=10\relax% \catcode13=5 % ^^M \endlinechar=13 % @@ -148,7 +148,7 @@ \input ltxcmds.sty\relax \input infwarerr.sty\relax \else - \RequirePackage{ltxcmds}[2010/04/08]% + \RequirePackage{ltxcmds}[2011/11/09]% \RequirePackage{infwarerr}[2010/04/08]% \fi \ltx@IfUndefined{@ifdefinable}{% @@ -177,12 +177,22 @@ #1\def#3##1{#4}% }% }% + \def\rc@RobustDefZero#1#2{% + \rc@IfDefinable#1{% + \def#1{#2}% + }% + }% }{% \def\rc@RobustDefOne#1#2#3#4{% \rc@IfDefinable#3{% \DeclareRobustCommand#2#3[1]{#4}% }% }% + \def\rc@RobustDefZero#1#2{% + \rc@IfDefinable#1{% + \DeclareRobustCommand#1{#2}% + }% + }% }% }{% \def\rc@RobustDefOne#1#2#3#4{% @@ -190,6 +200,11 @@ \protected#1\def#3##1{#4}% }% }% + \def\rc@RobustDefZero#1#2{% + \rc@IfDefinable#1{% + \protected\def#1{#2}% + }% + }% } \ltx@IfUndefined{newcommand}{% \def\rc@newcommand*#1[#2]#3{% hash-ok @@ -253,7 +268,7 @@ \def\rc@set#1#2#3#4{% \begingroup \csname @safe@activestrue\endcsname - \rc@refused{#4}% + \refused{#4}% \expandafter\rc@@set\csname r@#4\endcsname{#1}{#2}{#3}% \endgroup } @@ -266,17 +281,17 @@ }% \fi } -\rc@newcommand*{\setcounterref}[0]{% +\rc@RobustDefZero\setcounterref{% \rc@set\setcounter\ltx@car } -\rc@newcommand*{\addtocounterref}[0]{% +\rc@RobustDefZero\addtocounterref{% \rc@set\addtocounter\ltx@car } -\rc@newcommand*{\setcounterpageref}[0]{% - \rc@set\setcounter\ltx@cartwo +\rc@RobustDefZero\setcounterpageref{% + \rc@set\setcounter\ltx@carsecond } -\rc@newcommand*{\addtocounterpageref}[0]{% - \rc@set\addtocounter\ltx@cartwo +\rc@RobustDefZero\addtocounterpageref{% + \rc@set\addtocounter\ltx@carsecond } \rc@newcommand*{\getrefnumber}[1]{% \romannumeral |