summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
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
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')
-rw-r--r--Master/texmf-dist/doc/latex/cleveref/cleveref.pdfbin554511 -> 555689 bytes
-rw-r--r--Master/texmf-dist/source/latex/cleveref/cleveref.dtx121
-rw-r--r--Master/texmf-dist/tex/latex/cleveref/cleveref.sty74
3 files changed, 126 insertions, 69 deletions
diff --git a/Master/texmf-dist/doc/latex/cleveref/cleveref.pdf b/Master/texmf-dist/doc/latex/cleveref/cleveref.pdf
index d3a0a4c36ad..543131f5c4d 100644
--- a/Master/texmf-dist/doc/latex/cleveref/cleveref.pdf
+++ b/Master/texmf-dist/doc/latex/cleveref/cleveref.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
index 56c96b80ebe..fc1dab3e96c 100644
--- a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
+++ b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
@@ -21,7 +21,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{cleveref}
-%<package> [2011/01/10 v0.17.7 Intelligent cross-referencing]
+%<package> [2011/01/19 v0.17.8 Intelligent cross-referencing]
%
%<*driver>
\documentclass{ltxdoc}
@@ -62,7 +62,7 @@
%</driver>
% \fi
%
-% \CheckSum{14252}
+% \CheckSum{14308}
%% \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
@@ -222,11 +222,14 @@
% \option{capitalise} option.}
% \changes{v0.17.7}{2011/01/10}{Fixed \textbackslash{}crefname to work
% with empty reference names.}
+% \changes{v0.17.8}{2011/01/19}{Fixed automatic
+% \textbackslash{}newtheorem name definitions to work with empty
+% names.}
%
% \GetFileInfo{cleveref.sty}
%
-% \def\fileversion{0.17.7}
-% \def\filedate{10/01/2011}
+% \def\fileversion{0.17.8}
+% \def\filedate{19/01/2011}
%
% \title{The \package{cleveref} package\thanks{This document
% corresponds to \textsf{cleveref}~\fileversion, dated
@@ -248,6 +251,11 @@
% types, sorting them, and compressing sequences of numerically
% consecutive labels. Again, the multiple-reference formatting is fully
% customisable.
+%
+% Normally, the latest version of the \package{cleveref} package is
+% available via CTAN.\ Occasionally, slightly newer ``pre-release''
+% versions are available at \url{www.dr-qubit.irg/latex.php#cleveref} a
+% little bit before they make their way onto CTAN.
% \end{abstract}
%
% \tableofcontents
@@ -282,17 +290,18 @@
% things like |Eq.~(\ref{eq1})| and |Theorems~\ref{thm1} to~\ref{thm3}|
% over and over again. Tedium isn't the only downside to this. What
% happens if you later decide you want equation references to be type-set
-% as |Equation~\ref{eq1}| instead (i.e.\ without the brackets)? What
-% happens if you decide to change the theorem labelled |thm1| into a
-% lemma? What if you move |thm3| so that it appears (and is numbered)
-% before |thm1|, so that references to the sequence of theorems 1 through
-% 3 should be ordered |Theorems~\ref{thm3} to~\ref{thm1}| (i.e.\ the
-% other way around)? What if you decide you prefer references to multiple
-% theorems to be written as |Theorems~\ref{thm1}--\ref{thm3}|? You have
-% to search through the entire \LaTeX{} source of your document,
-% modifying all references to equations, updating all references to
-% |thm1|, re-ordering all references to |thm1| and |thm3|, and changing
-% all the formatting of references to multiple theorems!
+% as |Equation~\ref{eq1}| instead (i.e.\ without the abbreviation and
+% without the brackets)? What happens if you decide to change the theorem
+% labelled |thm1| into a lemma? What if you move |thm3| so that it
+% appears (and is numbered) before |thm1|, so that references to the
+% sequence of theorems 1 through 3 should be ordered
+% |Theorems~\ref{thm3} to~\ref{thm1}| (i.e.\ the other way around)? What
+% if you decide you prefer references to multiple theorems to be written
+% as |Theorems~\ref{thm1}--\ref{thm3}|? You have to search through the
+% entire \LaTeX{} source of your document, modifying all references to
+% equations, updating all references to |thm1|, re-ordering all
+% references to |thm1| and |thm3|, and changing all the formatting of
+% references to multiple theorems!
%
% The \package{cleveref} package allows you to define the format for
% cross-references once-and-for-all in the preamble of your document. If
@@ -1472,11 +1481,11 @@
% order) to: Aleksander Gorohovski, Anand Deopurkar, Arne Meier, Bas
% Ploeger, Dan Luecking, David Gleich, Denis Bitouz\'e, Domenic Denicola,
% Donald Arsenau, Hendrik Maryns, James Sharam, Jens Mueller, Joel C.
-% Salomon, Joris Pinkse, Leo Shidai Liu, Lev Bishop, Matej Batic, Matt
-% Gately, Matthew Skala, Michael Barber, Michael Gorven, Michal Kaut,
-% Olivier Roy, Paul Gomme, Ricardo de Aldama S\'anchez, Stefan Pinnow,
-% Ted Pavlic, Thomas Arildsen, and Uwe L\"uck for their help. (If I
-% missed you out, please let me know!)
+% Salomon, Joris Pinkse, Leo Shidai Liu, Lev Bishop, Mak Trifkovic, Matej
+% Batic, Matt Gately, Matthew Skala, Michael Barber, Michael Gorven,
+% Michal Kaut, Olivier Roy, Paul Gomme, Ricardo de Aldama S\'anchez,
+% Stefan Pinnow, Ted Pavlic, Thomas Arildsen, and Uwe L\"uck for their
+% help. (If I missed you out, please let me know!)
%
%
% \StopEventually{\clearpage\PrintChanges\clearpage\PrintIndex}
@@ -4976,36 +4985,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}}
% \end{macrocode}
@@ -5069,12 +5096,18 @@
% \begin{macrocode}
\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}%
% \end{macrocode}
% Here's the original \package{amsthm} \cmd{\@ynthm} definition, with
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}}[]}%