summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cleveref
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-07-17 00:58:21 +0000
committerKarl Berry <karl@freefriends.org>2009-07-17 00:58:21 +0000
commita1e1019735070ba683719bbbf7aba33af09f329d (patch)
treee8d20083453cdf28ff34916c51dbd98c16daaf7a /Master/texmf-dist/tex/latex/cleveref
parent50e41b53ae966ed159cdb3fde4b26e0f6ce317fe (diff)
cleveref 0.13.1 (14jul09)
git-svn-id: svn://tug.org/texlive/trunk@14289 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cleveref')
-rw-r--r--Master/texmf-dist/tex/latex/cleveref/cleveref.sty68
1 files changed, 46 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/cleveref/cleveref.sty b/Master/texmf-dist/tex/latex/cleveref/cleveref.sty
index 5dc50fcd937..db7b11e7acb 100644
--- a/Master/texmf-dist/tex/latex/cleveref/cleveref.sty
+++ b/Master/texmf-dist/tex/latex/cleveref/cleveref.sty
@@ -22,7 +22,7 @@
%% version 1999/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{cleveref}
- [2009/17/04 v0.13 Intelligent cross-referencing]
+ [2009/01/07 v0.13.1 Intelligent cross-referencing]
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -164,28 +164,40 @@
}
\def\cref@getlabel#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoftwo\@tmpa}%
- \expandafter\@cref@getlabel\@tmpa\@nil#2}
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoftwo\@tmpa}%
+ \expandafter\@cref@getlabel\@tmpa\@nil#2}%
\def\@cref@getlabel{\@ifnextchar[%]
\@@cref@getlabel{\@@cref@getlabel[][][]}}
\def\@@cref@getlabel[#1][#2][#3]#4\@nil#5{\def#5{#4}}
\def\cref@gettype#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoftwo\@tmpa}%
- \expandafter\@cref@gettype\@tmpa\@nil#2}
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoftwo\@tmpa}%
+ \expandafter\@cref@gettype\@tmpa\@nil#2}%
\def\@cref@gettype{\@ifnextchar[%]
\@@cref@gettype{\@@cref@gettype[][][]}}
\def\@@cref@gettype[#1][#2][#3]#4\@nil#5{\def#5{#1}}
\def\cref@getcounter#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoftwo\@tmpa}%
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoftwo\@tmpa}%
\expandafter\@cref@getcounter\@tmpa\@nil#2}
\def\@cref@getcounter{\@ifnextchar[%]
\@@cref@getcounter{\@@cref@getcounter[][][]}}
\def\@@cref@getcounter[#1][#2][#3]#4\@nil#5{\def#5{#2}}
\def\cref@getprefix#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoftwo\@tmpa}%
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoftwo\@tmpa}%
\expandafter\@cref@getprefix\@tmpa\@nil#2}
\def\@cref@getprefix{\@ifnextchar[%]
\@@cref@getprefix{\@@cref@getprefix[][][]}}
@@ -1357,19 +1369,31 @@
\@fourthoffive\csname r@#1\endcsname}
\def\cref@getlabel#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoffive\@tmpa}%
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoffive\@tmpa}%
\expandafter\@cref@getlabel\@tmpa\@nil#2}
\def\cref@gettype#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoffive\@tmpa}%
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoffive\@tmpa}%
\expandafter\@cref@gettype\@tmpa\@nil#2}
\def\cref@getcounter#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoffive\@tmpa}%
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoffive\@tmpa}%
\expandafter\@cref@getcounter\@tmpa\@nil#2}
\def\cref@getprefix#1#2{%
\expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
- \edef\@tmpa{\expandafter\@firstoffive\@tmpa}%
+ \expandafter\expandafter\expandafter\def%
+ \expandafter\expandafter\expandafter\@tmpa%
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@firstoffive\@tmpa}%
\expandafter\@cref@getprefix\@tmpa\@nil#2}
\def\H@refstepcounter#1{%
\stepcounter{#1}%
@@ -1495,17 +1519,17 @@
{\hyper@linkstart{link}{\@linka}}{\hyper@linkend}%
{\hyper@linkstart{link}{\@linkb}}{\hyper@linkend}%
\fi}%
- }{}% end of \@ifpackageloaded
-\AtBeginDocument{%
- \DeclareRobustCommand{\ref}{\@ifstar\cref@refstar\cref@ref}
- \def\cref@refstar#1{%
- \expandafter\ifx\csname r@#1\endcsname\relax%
- \let\@result\relax%
- \else%
- \cref@getlabel{#1}{\@result}%
- \fi%
- \expandafter\real@setref\csname r@#1\endcsname{\cref@reflabel}{#1}}%
-}
+ \AtBeginDocument{%
+ \DeclareRobustCommand{\ref}{\@ifstar\cref@refstar\cref@ref}
+ \def\cref@refstar#1{%
+ \expandafter\ifx\csname r@#1\endcsname\relax%
+ \let\@result\relax%
+ \else%
+ \cref@getlabel{#1}{\@result}%
+ \fi%
+ \expandafter\real@setref\csname r@#1\endcsname{\cref@reflabel}{#1}}%
+ }
+}{}% end of \@ifpackageloaded{hyperref}
\@ifpackageloaded{ntheorem}{%
\PackageInfo{cleveref}{`ntheorem' support loaded}
\@ifpackagewith{ntheorem}{thref}{%