summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cleveref
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-26 23:16:58 +0000
committerKarl Berry <karl@freefriends.org>2011-01-26 23:16:58 +0000
commit3a0c110bdd5eb4e48c1849f73e895836b0ab3a04 (patch)
tree9afea3679a7eadc4f1838a750709fcde76abedd2 /Master/texmf-dist/tex/latex/cleveref
parentdba36815c3521f281d4962346b0b9dbdb7e787e7 (diff)
cleveref 0.17.8 (27jan11)
git-svn-id: svn://tug.org/texlive/trunk@21176 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cleveref')
-rw-r--r--Master/texmf-dist/tex/latex/cleveref/cleveref.sty74
1 files changed, 49 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/cleveref/cleveref.sty b/Master/texmf-dist/tex/latex/cleveref/cleveref.sty
index ed7c5767975..990c9e2c949 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}
- [2011/01/10 v0.17.7 Intelligent cross-referencing]
+ [2011/01/19 v0.17.8 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
@@ -2187,36 +2187,54 @@
\def\@othm#1[#2]#3{%
\edef\@tmpa{\expandafter\noexpand%
\csname cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeLowercase #3}%
- \edef\@tmpa{\expandafter\noexpand%
- \csname Cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeUppercase #3}%
+ \edef\@tmpb{\expandafter\noexpand%
+ \csname Cref@#1@name@preamble\endcsname}%
+ \def\@tmpc{#3}%
+ \ifx\@tmpc\@empty\relax%
+ \expandafter\gdef\@tmpa{}%
+ \expandafter\gdef\@tmpb{}%
+ \else%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeLowercase #3}%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeUppercase #3}%
+ \fi%
\cref@stack@add{#1}{\cref@label@types}%
\cref@old@othm{#1}[#2]{#3}}
\let\cref@old@xnthm\@xnthm
\def\@xnthm#1#2[#3]{%
\edef\@tmpa{\expandafter\noexpand%
\csname cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeLowercase #2}%
- \edef\@tmpa{\expandafter\noexpand%
- \csname Cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeUppercase #2}%
+ \edef\@tmpb{\expandafter\noexpand%
+ \csname Cref@#1@name@preamble\endcsname}%
+ \def\@tmpc{#2}%
+ \ifx\@tmpc\@empty\relax%
+ \expandafter\gdef\@tmpa{}%
+ \expandafter\gdef\@tmpb{}%
+ \else%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeLowercase #2}%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeUppercase #2}%
+ \fi%
\cref@stack@add{#1}{\cref@label@types}%
\cref@old@xnthm{#1}{#2}[#3]}
\let\cref@old@ynthm\@ynthm
\def\@ynthm#1#2{%
\edef\@tmpa{\expandafter\noexpand%
\csname cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeLowercase #2}%
- \edef\@tmpa{\expandafter\noexpand%
- \csname Cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeUppercase #2}%
+ \edef\@tmpb{\expandafter\noexpand%
+ \csname Cref@#1@name@preamble\endcsname}%
+ \def\@tmpc{#2}%
+ \ifx\@tmpc\@empty\relax%
+ \expandafter\gdef\@tmpa{}%
+ \expandafter\gdef\@tmpb{}%
+ \else%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeLowercase #2}%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeUppercase #2}%
+ \fi%
\cref@stack@add{#1}{\cref@label@types}%
\cref@old@ynthm{#1}{#2}}
\@ifpackageloaded{amsthm}{%
@@ -2246,12 +2264,18 @@
\def\@ynthm#1[#2]#3{%
\edef\@tmpa{\expandafter\noexpand%
\csname cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeLowercase #3}%
- \edef\@tmpa{\expandafter\noexpand%
- \csname Cref@#1@name@preamble\endcsname}%
- \expandafter\expandafter\expandafter\gdef\expandafter%
- \@tmpa\expandafter{\MakeUppercase #3}%
+ \edef\@tmpb{\expandafter\noexpand%
+ \csname Cref@#1@name@preamble\endcsname}%
+ \def\@tmpc{#3}%
+ \ifx\@tmpc\@empty\relax%
+ \expandafter\gdef\@tmpa{}%
+ \expandafter\gdef\@tmpb{}%
+ \else%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeLowercase #3}%
+ \expandafter\expandafter\expandafter\gdef\expandafter%
+ \@tmpa\expandafter{\MakeUppercase #3}%
+ \fi%
\cref@stack@add{#1}{\cref@label@types}%
\ifx\relax#2\relax%
\def\@tempa{\@oparg{\@xthm{#1}{#3}}[]}%