diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-24 23:51:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-24 23:51:55 +0000 |
commit | e2d2baec9bd8267295ba458fa84718e3d7ee8a76 (patch) | |
tree | cf6d8385167d531b29f0b09846ec1dfba23ef9b9 /Master/texmf-dist/source/latex | |
parent | 211b7130dc1fe594fb4f775af6249864a789f7b0 (diff) |
cleveref 0.18.1 (24dec11)
git-svn-id: svn://tug.org/texlive/trunk@24937 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/cleveref/cleveref.dtx | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx index 23bcbccf9ed..f977a23fd89 100644 --- a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx +++ b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx @@ -1,5 +1,5 @@ -\def\packagedate{2011/10/24} -\def\packageversion{0.18} +\def\packagedate{2011/12/24} +\def\packageversion{0.18.1} % \iffalse meta-comment % % Package 'cleveref' to use with LaTeX2e @@ -56,7 +56,7 @@ %</driver> % \fi % -% \CheckSum{18238} +% \CheckSum{18240} %% \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 @@ -251,6 +251,8 @@ % \package{revtex4-1} docclasses. Fixed \package{subfig} and % \package{caption} compatibility with optional argument to % \textbackslash{}label.} +% \changes{v0.18.1}{2011/12/24}{Fixed compatibility with newer versions +% of \package{caption} package.} % % \GetFileInfo{cleveref.sty} % @@ -1796,6 +1798,9 @@ % % % \begin{macro}{\label} +% \begin{macro}{\cref@label} +% \begin{macro}{\label@optarg} +% \begin{macro}{\label@noarg} % We redefine the \cmd{\label} command to make it define \emph{two} % labels each time it's called: the standard one, and an additional % \package{cleveref}-specific one with the prefix |cref@| added to the @@ -1835,6 +1840,9 @@ }% end of AtBeginDocument % \end{macrocode} % \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} % % % \begin{macro}{\@footnotetext} @@ -6664,18 +6672,26 @@ % % \subsubsection{\package{caption} support} % \begin{macro}{caption} -% The \package{caption} package redefines \cmd{\label} within floats, -% breaking \package{cleveref}'s optional argument, so we fix this here. +% The \package{caption} package redefines \cmd{\label} within floats. +% Since version 3.2c, it is careful to redefine \cmd{\label} in a way +% that doesn't break any optional arguments introduced by other +% packages (such as \package{cleveref}'s), so we no longer need to add +% any compatibility hacks. +% +% Earlier versions of \package{caption} do break \package{cleveref}'s +% optional argument, however, so we have to fix things here for those +% verions. % \begin{macrocode} \@ifpackageloaded{caption}{% - \PackageInfo{cleveref}{`caption' support loaded} + \@ifpackagelater{caption}{2011/08/19}{}{% + \PackageInfo{cleveref}{`caption' support loaded} % \end{macrocode} % % \begin{macro}{\cref@old@caption@xlabel} % \begin{macro}{\cref@old@label} % \begin{macro}{\cref@ORI@label} % \begin{macro}{\caption@ORI@label} -% We fix the \cmd{\label} argument passing by redefining +% We fix the \cmd{\label} argument parsing by redefining % \cmd{\caption@xlabel}, the macro which \cmd{\label} is let to inside % floats, to juggle around the various \package{cleveref} and % \package{caption} \cmd{\label}-processing macros so that everything @@ -6701,12 +6717,12 @@ % in \cmd{\cref@ORI@old@label}, and make \cmd{\caption@ORI@label} call % that. Oof! % \begin{macrocode} - \let\cref@old@caption@xlabel\caption@xlabel - \def\caption@xlabel{% - \let\cref@ORI@label\cref@old@label% - \let\cref@old@label\cref@old@caption@xlabel% - \let\caption@ORI@label\cref@ORI@label% - \cref@label}% + \let\cref@old@caption@xlabel\caption@xlabel + \def\caption@xlabel{% + \let\cref@ORI@label\cref@old@label% + \let\cref@old@label\cref@old@caption@xlabel% + \let\caption@ORI@label\cref@ORI@label% + \cref@label}% % \end{macrocode} % \end{macro} % \end{macro} @@ -6714,6 +6730,7 @@ % \end{macro} % % \begin{macrocode} + }% end of \@ifpackagelater }{}% end of \@ifpackageloaded{caption} % \end{macrocode} % \end{macro} |