summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-09 00:22:40 +0000
committerKarl Berry <karl@freefriends.org>2010-06-09 00:22:40 +0000
commitdb4b63b8fcc7e0f818d11deaf7e1e11afdd60c11 (patch)
tree15f70001ceb206627eab99deb5aef0e0ef9585cb /Master
parente75495f92d91038a568dec3fd1cc854d51daf4c7 (diff)
cleveref 0.17 (8jun10)
git-svn-id: svn://tug.org/texlive/trunk@18826 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/cleveref/cleveref.pdfbin587863 -> 596253 bytes
-rw-r--r--Master/texmf-dist/source/latex/cleveref/cleveref.dtx430
-rw-r--r--Master/texmf-dist/tex/latex/cleveref/cleveref.sty284
3 files changed, 596 insertions, 118 deletions
diff --git a/Master/texmf-dist/doc/latex/cleveref/cleveref.pdf b/Master/texmf-dist/doc/latex/cleveref/cleveref.pdf
index fe353ec9418..b4d465c1448 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 472169b32f2..c429b43cc5f 100644
--- a/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
+++ b/Master/texmf-dist/source/latex/cleveref/cleveref.dtx
@@ -21,11 +21,11 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{cleveref}
-%<package> [2010/05/25 v0.16.3 Intelligent cross-referencing]
+%<package> [2010/06/07 v0.17 Intelligent cross-referencing]
%
%<*driver>
-%\documentclass{ltxdoc}
-\documentclass[draft]{ltxdoc}
+\documentclass{ltxdoc}
+%\documentclass[draft]{ltxdoc}
\usepackage{url}
\usepackage{pifont} % FIXME: find nicer line-continuation symbol than \ding{229}
% \usepackage{hyperref} % breaks index
@@ -62,7 +62,7 @@
%</driver>
% \fi
%
-% \CheckSum{12685}
+% \CheckSum{13168}
%% \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
@@ -180,12 +180,21 @@
% works for those (and also switching language in the middle of a
% document). Added \package{babel} support for Russian and Ukranian.
% Fixed bug in \textbackslash{}refstepcounter@optarg.}
+% \changes{v0.17}{2010/06/07}{Fixed bug in non-\package{hyperref}
+% version of \textbackslash{}refstepcounter. Added
+% \textbackslash{}crefalias command for aliasing a counter to a
+% different cross-reference type. Added support for \package{algorithm}
+% package. Improved support for \package{subfig} package. Added support
+% for \package{listings} package. Fixed bugs in \package{amsmath}
+% \textbackslash{}tag command when used with \option{sort} option, and
+% in the \package{amsmath} multline environment's support for the
+% optional argument to \textbackslash{}label.}
%
%
% \GetFileInfo{cleveref.sty}
%
-% \def\fileversion{0.16.3}
-% \def\filedate{25/05/2010}
+% \def\fileversion{0.17}
+% \def\filedate{07/06/2010}
%
% \title{The \package{cleveref} package\thanks{This document
% corresponds to \textsf{cleveref}~\fileversion, dated
@@ -1082,11 +1091,23 @@
% \label{sec:label_type}
% \DescribeMacro\label
% As described previously, a label's ``type'' is usually determined by
-% its counter, or in the case of \package{ntheorem} theorem-like
-% environments by the environment name. Occasionally, you may want to
-% override the cross-reference type for a particular label. You can do
-% this by supplying the desired type as an optional argument to the
-% |\label| command:
+% its counter, or in the case of \package{ntheorem} or \package{amsthm}
+% theorem-like environments by the environment name. However, sometimes
+% it is useful to override the type. \package{cleveref} provides two
+% different mechanisms for accomplishing this.
+%
+% You can alias a counter to a different cross-reference type using the
+% |\crefalias| command:
+% \begin{quote}
+% |\crefalias{|\meta{counter}|}{|\meta{type}|}|
+% \end{quote}
+% \meta{counter} will then use the cross-reference formatting of
+% \meta{type}. This can be useful if you want multiple counters to use
+% the same cross-reference format.
+%
+% Occasionally, you may want to override the cross-reference type for one
+% particular label, one-off. You can do this by supplying the desired
+% type as an optional argument to the |\label| command:
% \begin{quote}
% |\label[|\meta{type}|]{|\meta{label}|}|
% \end{quote}
@@ -1425,9 +1446,11 @@
% so that it first calls the old version to define the standard
% \cmd{\@currentlabel} macro, before defining \package{cleveref}'s
% \cmd{\cref@currentlabel}, which contains the extra information. The
-% new \cmd{\refstepcounter} can take an optional argument, which
-% overrides the default ``type'' stored in \cmd{\cref@currentlabel},
-% which is otherwise inferred from the counter.
+% cross-reference ``type'' stored in \cmd{cref@currentlabel} is usually
+% inferred from the counter. This can be overridden by aliasing the
+% counter name to a different type using \cmd{\crefalias}. The new
+% \cmd{\refstepcounter} can also take an optional argument, which
+% always overrides the type.
% \begin{macrocode}
\def\cref@currentlabel{}
\let\cref@old@refstepcounter\refstepcounter
@@ -1437,15 +1460,18 @@
\def\refstepcounter@noarg#1{%
\cref@old@refstepcounter{#1}%
\cref@constructprefix{#1}{\@result}%
- \protected@edef\cref@currentlabel{%
- [#1][\arabic{#1}][\@result]%
+ \@ifundefined{cref@#1@alias}%
+ {\def\@tmpa{#1}}%
+ {\def\@tmpa{\csname cref@#1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{#1}][\@result]%
\csname p@#1\endcsname\csname the#1\endcsname}}
\def\refstepcounter@optarg[#1]#2{%
\cref@old@refstepcounter{#2}%
\cref@constructprefix{#2}{\@result}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[#1][\arabic{#2}][\@result]%
- \csname p@#2\endcsname\csname the#1\endcsname}}
+ \csname p@#2\endcsname\csname the#2\endcsname}}
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -1454,20 +1480,20 @@
% \begin{macro}{\@footnotetext}
% \begin{macro}{\@mpfootnotetext}
% Footnotes don't use the \cmd{\refstepcounter} mechansism, but instead
-% set \cmd{\@currentlabel} directly in \cmd{\@footnotetext} or
-% \cmd{\@mpfootnotetext}. We modifiy these to make them also set
-% \cmd{\cref@currentlabel} appropriately.
+% set\linebreak[4] \cmd{\@currentlabel} directly in
+% \cmd{\@footnotetext} or \cmd{\@mpfootnotetext}. We modifiy these to
+% make them also set \cmd{\cref@currentlabel} appropriately.
% \begin{macrocode}
\let\cref@old@footnotetext\@footnotetext
\let\cref@old@mpfootnotetext\@mpfootnotetext
\def\@footnotetext#1{%
\cref@constructprefix{footnote}{\@result}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[footnote][\arabic{footnote}][\@result]\p@footnote\@thefnmark}%
\cref@old@footnotetext{#1}}
\def\@mpfootnotetext#1{%
\cref@constructprefix{mpfootnote}{\@result}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[footnote][\arabic{mpfootnote}][\@result]\p@footnote\@thefnmark}%
\cref@old@mpfootnotetext{#1}}
% \end{macrocode}
@@ -1504,7 +1530,7 @@
\def\label@optarg[#1]#2{%
\@bsphack%
\cref@old@label{#2}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
\expandafter\cref@override@label@type%
\cref@currentlabel\@nil{#1}}%
\protected@write\@auxout{}%
@@ -1734,7 +1760,7 @@
\let\tag\tag@in@align
\global\tag@false \global\let\raise@tag\@empty
\mmeasure@{#1}%
- \let\tag\gobble@tag \let\label\@gobble% <<< cleveref modification
+ \let\tag\gobble@tag \let\label\@gobble@optarg% <<< cleveref modification
\tabskip \if@fleqn \@mathmargin \else \z@skip \fi
\totwidth@\displaywidth
\if@fleqn
@@ -1826,15 +1852,18 @@
% \begin{macro}{\make@df@tag@@}
% \begin{macro}{\make@df@tag@@@}
% We override the internals of the \package{amsmath} \cmd{\tag} command
-% to add the additional information to the label definition.
+% to add the additional information to the label definition. Since
+% labels produced by \cmd{\tag} have no logical ordering when sorting a
+% list of references, we give them a large numerical value so that they
+% get pushed to the end of sorted cross-reference lists.
% \begin{macrocode}
\def\make@df@tag@@#1{%
\gdef\df@tag{\maketag@@@{#1}%
- \def\cref@currentlabel{[equation][][]#1}}}
+ \def\cref@currentlabel{[equation][2147483647][]#1}}}
\def\make@df@tag@@@#1{%
\gdef\df@tag{\tagform@{#1}%
\toks@\@xp{\p@equation{#1}}%
- \edef\cref@currentlabel{[equation][][]\the\toks@}}}
+ \edef\cref@currentlabel{[equation][2147483647][]\the\toks@}}}
}{}% end of \@ifpackageloaded{amsmath}
}% end of AtBeginDocument
% \end{macrocode}
@@ -1877,27 +1906,30 @@
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi}%
@@ -1920,34 +1952,37 @@
\def\@tmpa{##1}%
\def\@tmpb{chapter}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi%
@@ -2328,7 +2363,7 @@
% \end{macrocode}
% In order to ensure empty references end up in the right place when
% sorting lists of multiple references, we make the comparison macro
-% sorts them before a non-empty reference.
+% sort them before a non-empty reference.
% \begin{macrocode}
\ifx\@tmpa\@empty%
\def\@result{1}%
@@ -2357,19 +2392,17 @@
\cref@stack@init{\@countstacka}%
\expandafter\cref@stack@push\expandafter%
{\@countera}{\@countstacka}%
- \ifx\@prefixa\@empty%
- \else%
+ \ifx\@prefixa\@empty\else%
\expandafter\cref@stack@push\expandafter%
{\@prefixa}{\@countstacka}%
\fi%
\cref@stack@init{\@countstackb}%
\expandafter\cref@stack@push\expandafter%
{\@counterb}{\@countstackb}%
- \ifx\@prefixb\@empty%
- \else%
- \expandafter\cref@stack@push\expandafter%
- {\@prefixb}{\@countstackb}%
- \fi%
+ \ifx\@prefixb\@empty\else%
+ \expandafter\cref@stack@push\expandafter%
+ {\@prefixb}{\@countstackb}%
+ \fi%
\@cref@countercmp%
\fi%
\fi%
@@ -3368,6 +3401,16 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}{\crefalias}
+% The \cmd{\crefalias} command aliases a counter name to another
+% cross-reference type, so can be used to make the same cross-reference
+% format apply to multiple different counters.
+%\begin{macrocode}
+\newcommand{\crefalias}[2]{%
+ \expandafter\def\csname cref@#1@alias\endcsname{#2}}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\crefname@preamble}
% \begin{macro}{\Crefname@preamble}
% The \cmd{\crefname@preamble} and \cmd{\Crefname@preamble} commands
@@ -4170,8 +4213,11 @@
\def\H@refstepcounter#1{%
\cref@old@H@refstepcounter{#1}%
\cref@constructprefix{#1}{\@result}%
- \protected@edef\cref@currentlabel{%
- [#1][\arabic{#1}][\@result]%
+ \@ifundefined{cref@#1@alias}%
+ {\def\@tmpa{#1}}%
+ {\def\@tmpa{\csname cref@#1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{#1}][\@result]%
\csname p@#1\endcsname\csname the#1\endcsname}}
% \end{macrocode}
% \end{macro}
@@ -4183,17 +4229,19 @@
% \cmd{\H@refstepcounter}, and we just redefined the latter to store
% the extra information. So we only need to change
% \cmd{\cref@currentlabel} in \emph{our} \cmd{\refstepcounter} if an
-% optional argument was supplied. (Note that, in this case, the
+% optional argument was supplied. Note that, in this case, the
% mechanism for setting \cmd{\cref@currentlabel} is slightly different
% than it is without \package{hyperref}: \cmd{\cref@currentlabel} first
% gets set by our modified \cmd{\H@refstepcounter}, which gets called
-% via \cmd{\cref@old@refstepcounter}. \cmd{\cref@refstepcounter@optarg}
-% then overrides the label type.)
+% via \package{hyperref}'s original version, as stored in
+% \cmd{\cref@old@refstepcounter}. The version of
+% \cmd{\cref@refstepcounter@optarg} defined below then overrides the
+% label type.
% \begin{macrocode}
- \def\refstepcounter@noarg#1{\cref@old@refstepcounter{#1}}
+ \let\refstepcounter@noarg\cref@old@refstepcounter%
\def\refstepcounter@optarg[#1]#2{%
\cref@old@refstepcounter{#2}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
\expandafter\cref@override@label@type%
\cref@currentlabel\@nil{#1}}}
% \end{macrocode}
@@ -4228,27 +4276,30 @@
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi}%
@@ -4271,34 +4322,37 @@
\def\@tmpa{##1}%
\def\@tmpb{chapter}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi%
@@ -4464,7 +4518,7 @@
% \begin{macro}{\@ynthm}
% After sorting out its arguments, \cmd{\newtheorem} calls one of
% \cmd{\@othm}, \cmd{\@xthm} or \cmd{\@ythm}. We add automatic
-% definitions of \cmd{\cref@\meta{type}@name} and
+% definitions of \cmd{\cref@\meta{type}@name} and\linebreak[4]
% \cmd{\Cref@\meta{type}@name} to all three of these, and add the
% theorem-like environment to the list of cross-reference types that
% need to be defined from components at |\||begin{document}|. Since we
@@ -4626,6 +4680,92 @@
%
%
%
+% \begin{macro}{algorithm}
+% If \package{algorithm} is loaded, we modify its line numbering
+% mechanism so that labels referring to line numbers in algorithms work
+% with \package{cleveref}.
+% \begin{macrocode}
+ \@ifpackageloaded{algorithm}{%
+ \PackageInfo{cleveref}{`algorithm' support loaded}
+% \end{macrocode}
+%
+% \begin{macro}{\ALG@step}
+% We modify \package{algorithm}'s \cmd{ALG@step} macro, which
+% increments the line number, so that it stores the necessary
+% information in \cmd{\cref@currentlabel}. \cmd{ALG@step} already
+% increments the line number counter \cmd{ALG@line} using
+% \cmd{\addtocounter}, but to get \package{cleveref} support working,
+% it's cleaner to hook into the \cmd{\refstepcounter} mechanism, so we
+% first decrement the counter and then re-increment it using
+% \cmd{\refstepcounter}. Finally, since \cmd{ALG@step} is called within
+% a group, we have to make the definition of \cmd{cref@currentlabel}
+% global.
+% \begin{macrocode}
+ \let\cref@old@ALG@step\ALG@step
+ \def\ALG@step{%
+ \cref@old@ALG@step%
+ \addtocounter{ALG@line}{-1}%
+ \refstepcounter[line]{ALG@line}}
+ }{}% end of \@ifpackageloaded{algorithm}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
+%
+% \begin{macro}{listings}
+% The only thing we need to do in order to support cross-references to
+% line numbers produced by the \package{listings} package is to alias
+% the counter is uses, \cmd{lstnumber}, to the ``line'' cross-reference
+% type.
+% \begin{macrocode}
+ \@ifpackageloaded{listings}{%
+ \PackageInfo{cleveref}{`listings' support loaded}
+ \crefalias{lstnumber}{line}}{}% end of \@ifpackageloaded{listings}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \begin{macro}{subfig}
+% The \package{subfig} package modifies \cmd{\refstepcounter} within
+% floats. Most of the time, this isn't a problem for
+% \package{cleveref}, as \package{subfig}'s modified
+% \cmd{refstepcounter} calls \package{cleveref}'s version after it's
+% done its stuff. However, this breaks support the
+% \cmd{\refstepcounter} optional argument, so we fix that here.
+% \begin{macrocode}
+ \@ifpackageloaded{subfig}{%
+ \PackageInfo{cleveref}{`subfig' support loaded}
+% \end{macrocode}
+%
+% \begin{macro}{\refsteponlycounter}
+% \package{subfig} replaces \cmd{\refstepcounter} with
+% \cmd{\refsteonlycounter} within floats, which calls the saved
+% \package{cleveref} \cmd{\refstepcounter} after doing some extra
+% \package{subfig}-related processing. We redefine
+% \cmd{refsteponlycounter} so that passing it an optional argument
+% bypasses \package{subfig}'s code entirely and just calls the
+% \package{cleveref} code directly. Since only
+% \package{cleveref}-specific commands will ever pass an optional
+% argument to \cmd{\refstepcounter}, this won't affect
+% \package{subfig}'s use of \cmd{\refstepcounter}. We have to postpone
+% this redefinition until the beginning of the document because
+% \package{subfig} does.
+% \begin{macrocode}
+ \AtBeginDocument{
+ \let\cref@old@refsteponlycounter\refsteponlycounter
+ \def\refsteponlycounter{%
+ \@ifnextchar[{\refstepcounter@optarg}%
+ {\cref@old@refsteponlycounter}%]
+ }}
+ }{}% end of \@ifpackageloaded{subfig}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
+%
% \subsection{\package{varioref} Support}
% \begin{macro}{varioref}
% If \package{varioref} is loaded, we redefine its commands to use
@@ -5741,6 +5881,8 @@
\Crefname@preamble{example}{Example}{Examples}%
\Crefname@preamble{remark}{Remark}{Remarks}%
\Crefname@preamble{note}{Note}{Notes}%
+ \Crefname@preamble{algorithm}{Algorithm}{Algorithms}%
+ \Crefname@preamble{line}{Line}{Lines}%
\if@cref@capitalise%
\crefname@preamble{equation}{Eq.}{Eqs.}%
\crefname@preamble{chapter}{Chapter}{Chapters}%
@@ -5759,6 +5901,8 @@
\crefname@preamble{example}{Example}{Examples}%
\crefname@preamble{remark}{Remark}{Remarks}%
\crefname@preamble{note}{Note}{Notes}%
+ \crefname@preamble{algorithm}{Algorithm}{Algorithms}%
+ \crefname@preamble{line}{Line}{Lines}%
\else%
\crefname@preamble{equation}{eq.}{eqs.}%
\crefname@preamble{chapter}{chapter}{chapters}%
@@ -5777,6 +5921,8 @@
\crefname@preamble{example}{example}{examples}%
\crefname@preamble{remark}{remark}{remarks}%
\crefname@preamble{note}{note}{notes}%
+ \crefname@preamble{algorithm}{algorithm}{algorithms}%
+ \crefname@preamble{line}{line}{lines}%
\fi%
\def\cref@language{english}%
% \end{macrocode}
@@ -5823,6 +5969,8 @@
\Crefname{example}{Example}{Examples}%
\Crefname{remark}{Remark}{Remarks}%
\Crefname{note}{Note}{Notes}%
+ \Crefname{algorithm}{Algorithm}{Algorithms}%
+ \Crefname{line}{Line}{Lines}%
\if@cref@capitalise%
\crefname{equation}{Eq.}{Eqs.}%
\crefname{chapter}{Chapter}{Chapters}%
@@ -5852,6 +6000,8 @@
\crefname{example}{Example}{Examples}%
\crefname{remark}{Remark}{Remarks}%
\crefname{note}{Note}{Notes}%
+ \crefname{algorithm}{Algorithm}{Algorithms}%
+ \crefname{line}{Line}{Lines}%
\else%
\crefname{equation}{eq.}{eqs.}%
\crefname{chapter}{chapter}{chapters}%
@@ -5881,6 +6031,8 @@
\crefname{example}{example}{examples}%
\crefname{remark}{remark}{remarks}%
\crefname{note}{note}{notes}%
+ \crefname{algorithm}{algorithm}{algorithms}%
+ \crefname{line}{line}{lines}%
\fi%
}}}
% \end{macrocode}
@@ -5932,6 +6084,8 @@
\Crefname@preamble{example}{Beispiel}{Beispiele}%
\Crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
\Crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \Crefname@preamble{algorithm}{Algorithmus}{Algorithmen}%
+ \Crefname@preamble{line}{Linie}{Linien}%
\if@cref@capitalise%
\crefname@preamble{equation}{Gleichung}{Gleichungen}%
\crefname@preamble{chapter}{Kapitel}{Kapitel}%
@@ -5950,6 +6104,8 @@
\crefname@preamble{example}{Beispiel}{Beispiele}%
\crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
\crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \crefname@preamble{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname@preamble{line}{Linie}{Linien}%
\else%
\crefname@preamble{equation}{Gleichung}{Gleichungen}%
\crefname@preamble{chapter}{Kapitel}{Kapitel}%
@@ -5968,6 +6124,8 @@
\crefname@preamble{example}{Beispiel}{Beispiele}%
\crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
\crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \crefname@preamble{algorithm}{algorithmus}{algorithmen}%
+ \crefname@preamble{line}{linie}{linien}%
\fi%
\def\cref@language{german}%
% \end{macrocode}
@@ -6014,6 +6172,8 @@
\Crefname{example}{Beispiel}{Beispiele}%
\Crefname{remark}{Bemerkung}{Bemerkungen}%
\Crefname{note}{Anmerkung}{Anmerkungen}%
+ \Crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \Crefname{line}{Linie}{Linien}%
\if@cref@capitalise%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -6043,6 +6203,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\else%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -6072,6 +6234,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\fi%
}}}
% \end{macrocode}
@@ -6128,6 +6292,8 @@
\Crefname{example}{Beispiel}{Beispiele}%
\Crefname{remark}{Bemerkung}{Bemerkungen}%
\Crefname{note}{Anmerkung}{Anmerkungen}%
+ \Crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \Crefname{line}{Linie}{Linien}%
\if@cref@capitalise%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -6157,6 +6323,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\else%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -6186,6 +6354,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\fi%
}}}
% \end{macrocode}
@@ -6234,6 +6404,8 @@
\Crefname@preamble{example}{Voorbeeld}{Voorbeelden}%
\Crefname@preamble{remark}{Opmerking}{Opmerkingen}%
\Crefname@preamble{note}{Aantekening}{Aantekeningen}%
+ \Crefname@preamble{algorithm}{Algoritme}{Algoritmen}%
+ \Crefname@preamble{line}{Lijn}{Lijnen}%
\if@cref@capitalise%
\crefname@preamble{equation}{Verg.}{Verg's.}%
\crefname@preamble{chapter}{Hoofdstuk}{Hoofdstukken}%
@@ -6252,6 +6424,8 @@
\crefname@preamble{example}{Voorbeeld}{Voorbeelden}%
\crefname@preamble{remark}{Opmerking}{Opmerkingen}%
\crefname@preamble{note}{Aantekening}{Aantekeningen}%
+ \crefname@preamble{algorithm}{Algoritme}{Algoritmen}%
+ \crefname@preamble{line}{Lijn}{Lijnen}%
\else%
\crefname@preamble{equation}{verg.}{verg's.}%
\crefname@preamble{chapter}{hoofdstuk}{hoofdstukken}%
@@ -6270,6 +6444,8 @@
\crefname@preamble{example}{voorbeeld}{voorbeelden}%
\crefname@preamble{remark}{opmerking}{opmerkingen}%
\crefname@preamble{note}{aantekening}{aantekeningen}%
+ \crefname@preamble{algorithm}{algoritme}{algoritmen}%
+ \crefname@preamble{line}{lijn}{lijnen}%
\fi%
\def\cref@language{dutch}%
% \end{macrocode}
@@ -6316,6 +6492,8 @@
\Crefname{example}{Voorbeeld}{Voorbeelden}%
\Crefname{remark}{Opmerking}{Opmerkingen}%
\Crefname{note}{Aantekening}{Aantekeningen}%
+ \Crefname{algorithm}{Algoritme}{Algoritmen}%
+ \Crefname{line}{Lijn}{Lijnen}%
\if@cref@capitalise%
\crefname{equation}{Verg.}{Verg's.}%
\crefname{chapter}{Hoofdstuk}{Hoofdstukken}%
@@ -6334,6 +6512,8 @@
\crefname{example}{Voorbeeld}{Voorbeelden}%
\crefname{remark}{Opmerking}{Opmerkingen}%
\crefname{note}{Aantekening}{Aantekeningen}%
+ \crefname{algorithm}{Algoritme}{Algoritmen}%
+ \crefname{line}{Lijn}{Lijnen}%
\else%
\crefname{equation}{verg.}{verg's.}%
\crefname{chapter}{hoofdstuk}{hoofdstukken}%
@@ -6352,6 +6532,8 @@
\crefname{example}{voorbeeld}{voorbeelden}%
\crefname{remark}{opmerking}{opmerkingen}%
\crefname{note}{aantekening}{aantekeningen}%
+ \crefname{algorithm}{algoritme}{algoritmen}%
+ \crefname{line}{lijn}{lijnen}%
\fi%
}}}
% \end{macrocode}
@@ -6399,6 +6581,8 @@
\Crefname@preamble{result}{R\'esultat}{R\'esultats}%
\Crefname@preamble{example}{Exemple}{Exemples}%
\Crefname@preamble{remark}{Remarque}{Remarques}%
+ \Crefname@preamble{algorithm}{Algorithme}{Algorithmes}%
+ \Crefname@preamble{line}{Ligne}{Lignes}%
\if@cref@capitalise%
\crefname@preamble{equation}{{\'E}quation}{{\'E}quations}%
\crefname@preamble{chapter}{Chapitre}{Chapitres}%
@@ -6417,6 +6601,8 @@
\crefname@preamble{example}{Exemple}{Exemples}%
\crefname@preamble{remark}{Remarque}{Remarques}%
\crefname@preamble{note}{Commentaire}{Commentaires}%
+ \crefname@preamble{algorithm}{Algorithme}{Algorithmes}%
+ \crefname@preamble{line}{Ligne}{Lignes}%
\else%
\crefname@preamble{equation}{{\'e}quation}{{\'e}quations}%
\crefname@preamble{chapter}{chapitre}{chapitres}%
@@ -6435,6 +6621,8 @@
\crefname@preamble{example}{exemple}{exemples}%
\crefname@preamble{remark}{remarque}{remarques}%
\crefname@preamble{note}{commentaire}{commentaires}%
+ \crefname@preamble{algorithm}{algorithme}{algorithmes}%
+ \crefname@preamble{line}{ligne}{lignes}%
\fi%
\def\cref@language{french}%
% \end{macrocode}
@@ -6481,6 +6669,8 @@
\Crefname{example}{Exemple}{Exemples}%
\Crefname{remark}{Remarque}{Remarques}%
\Crefname{note}{Commentaire}{Commentaires}%
+ \Crefname{algorithm}{Algorithme}{Algorithmes}%
+ \Crefname{line}{Ligne}{Lignes}%
\if@cref@capitalise%
\crefname{equation}{{\'E}quation}{{\'E}quations}%
\crefname{chapter}{Chapitre}{Chapitres}%
@@ -6510,6 +6700,8 @@
\crefname{example}{Exemple}{Exemples}%
\crefname{remark}{Remarque}{Remarques}%
\crefname{note}{Commentaire}{Commentaires}%
+ \crefname{algorithm}{Algorithme}{Algorithmes}%
+ \crefname{line}{Ligne}{Lignes}%
\else%
\crefname{equation}{{\'e}quation}{{\'e}quations}%
\crefname{chapter}{chapitre}{chapitres}%
@@ -6539,6 +6731,8 @@
\crefname{example}{exemple}{exemples}%
\crefname{remark}{remarque}{remarques}%
\crefname{note}{commentaire}{commentaires}%
+ \crefname{algorithm}{algorithme}{algorithmes}%
+ \crefname{line}{ligne}{lignes}%
\fi%
}}}
% \end{macrocode}
@@ -6581,6 +6775,8 @@
\Crefname@preamble{example}{Ejemplo}{Ejemplos}%
\Crefname@preamble{remark}{Observaci\'on}{Observaciones}%
\Crefname@preamble{note}{Nota}{Notas}%
+ \Crefname@preamble{algorithm}{Algoritmo}{Algoritmos}%
+ \Crefname@preamble{line}{L\'inea}{L\'ineas}%
\if@cref@capitalise%
\crefname@preamble{equation}{Ecuaci\'on}{ecuaciones}%
\crefname@preamble{chapter}{Cap\'itulo}{cap\'itulos}%
@@ -6599,6 +6795,8 @@
\crefname@preamble{example}{Ejemplo}{ejemplos}%
\crefname@preamble{remark}{Observaci\'on}{observaciones}%
\crefname@preamble{note}{Nota}{notas}%
+ \crefname@preamble{algorithm}{Algoritmo}{Algoritmos}%
+ \crefname@preamble{line}{L\'inea}{L\'ineas}%
\else%
\crefname@preamble{equation}{ecuaci\'on}{ecuaciones}%
\crefname@preamble{chapter}{cap\'itulo}{cap\'itulos}%
@@ -6617,6 +6815,8 @@
\crefname@preamble{example}{ejemplo}{ejemplos}%
\crefname@preamble{remark}{observaci\'on}{observaciones}%
\crefname@preamble{note}{nota}{notas}%
+ \crefname@preamble{algorithm}{algoritmo}{algoritmos}%
+ \crefname@preamble{line}{l\'inea}{l\'ineas}%
\fi%
\def\cref@language{spanish}%
% \end{macrocode}
@@ -6663,6 +6863,8 @@
\Crefname{example}{Ejemplo}{Ejemplos}%
\Crefname{remark}{Observaci\'on}{Observaci\'on}%
\Crefname{note}{Nota}{Notas}%
+ \Crefname{algorithm}{Algoritmo}{Algoritmos}%
+ \Crefname{line}{L\'inea}{L\'ineas}%
\if@cref@capitalise%
\crefname{equation}{Ecuaci\'on}{Ecuaciones}%
\crefname{chapter}{Cap\'itulo}{Cap\'itulos}%
@@ -6692,6 +6894,8 @@
\crefname{example}{Ejemplo}{Ejemplos}%
\crefname{remark}{Observaci\'on}{Observaci\'ones}%
\crefname{note}{Nota}{Notas}%
+ \crefname{algorithm}{Algoritmo}{Algoritmos}%
+ \crefname{line}{L\'inea}{L\'ineas}%
\else%
\crefname{equation}{ecuaci\'on}{ecuaciones}%
\crefname{chapter}{cap\'itulo}{cap\'itulos}%
@@ -6721,6 +6925,8 @@
\crefname{example}{ejemplo}{ejemplos}%
\crefname{remark}{observaci\'on}{observaci\'ones}%
\crefname{note}{nota}{notas}%
+ \crefname{algorithm}{algoritmo}{algoritmos}%
+ \crefname{line}{l\'inea}{l\'ineas}%
\fi%
}}}
% \end{macrocode}
@@ -6771,6 +6977,8 @@
\Crefname@preamble{example}{esempio}{esempi}%
\Crefname@preamble{remark}{Osservazione}{Osservazioni}%
\Crefname@preamble{note}{Nota}{Note}%
+ \Crefname@preamble{algorithm}{Algoritmo}{Algoritmi}%
+ \Crefname@preamble{line}{Linea}{Linee}%
\if@cref@capitalise%
\crefname@preamble{equation}{Eq.}{Eq.}%
\crefname@preamble{chapter}{Capitolo}{Capitoli}%
@@ -6789,6 +6997,8 @@
\crefname@preamble{example}{Esempio}{Esempi}%
\crefname@preamble{remark}{Osservazione}{Osservazioni}%
\crefname@preamble{note}{Nota}{Note}%
+ \crefname@preamble{algorithm}{Algoritmo}{Algoritmi}%
+ \crefname@preamble{line}{Linea}{Linee}%
\else%
\crefname@preamble{equation}{eq.}{eq.}%
\crefname@preamble{chapter}{capitolo}{capitoli}%
@@ -6807,6 +7017,8 @@
\crefname@preamble{example}{esempio}{esempi}%
\crefname@preamble{remark}{osservazione}{osservazioni}%
\crefname@preamble{note}{nota}{note}%
+ \crefname@preamble{algorithm}{algoritmo}{algoritmi}%
+ \crefname@preamble{line}{linea}{linee}%
\fi%
\def\cref@language{italian}%
% \end{macrocode}
@@ -6853,6 +7065,8 @@
\Crefname{example}{esempio}{esempi}%
\Crefname{remark}{Osservazione}{Osservazioni}%
\Crefname{note}{Nota}{Note}%
+ \Crefname{algorithm}{Algoritmo}{Algoritmi}%
+ \Crefname{line}{Linea}{Linee}%
\if@cref@capitalise%
\crefname{equation}{Eq.}{Eq.}%
\crefname{chapter}{Capitolo}{Capitoli}%
@@ -6882,6 +7096,8 @@
\crefname{example}{Esempio}{Esempi}%
\crefname{remark}{Osservazione}{Osservazioni}%
\crefname{note}{Nota}{Note}%
+ \crefname{algorithm}{Algoritmo}{Algoritmi}%
+ \crefname{line}{Linea}{Linee}%
\else%
\crefname{equation}{eq.}{eq.}%
\crefname{chapter}{capitolo}{capitoli}%
@@ -6911,6 +7127,8 @@
\crefname{example}{esempio}{esempi}%
\crefname{remark}{osservazione}{osservazioni}%
\crefname{note}{nota}{note}%
+ \crefname{algorithm}{algoritmo}{algoritmi}%
+ \crefname{line}{linea}{linee}%
\fi%
}}}
% \end{macrocode}
@@ -6995,6 +7213,12 @@
\Crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \Crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \Crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname@preamble{equation}%
{\CYRF-\cyrl.}%
@@ -7045,6 +7269,12 @@
\crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname@preamble{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname@preamble{chapter}%
@@ -7093,6 +7323,12 @@
\crefname@preamble{note}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+ \crefname@preamble{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname@preamble{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
\def\cref@language{russian}%
% \end{macrocode}
@@ -7196,6 +7432,12 @@
\Crefname{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \Crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \Crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
\crefname{chapter}%
@@ -7269,6 +7511,12 @@
\crefname{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname{chapter}{\cyrg\cyrl\cyra\cyrv.}{\cyrg\cyrl\cyra\cyrv.}%
@@ -7340,6 +7588,12 @@
\crefname{note}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+ \crefname{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
}}}
% \end{macrocode}
@@ -7424,6 +7678,12 @@
\Crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \Crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \Crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname@preamble{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
\crefname@preamble{chapter}%
@@ -7472,6 +7732,12 @@
\crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname@preamble{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname@preamble{chapter}%
@@ -7520,6 +7786,12 @@
\crefname@preamble{note}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
+ \crefname@preamble{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname@preamble{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
\def\cref@language{ukrainian}%
% \end{macrocode}
@@ -7623,6 +7895,12 @@
\Crefname{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \Crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \Crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
\crefname{chapter}%
@@ -7696,6 +7974,12 @@
\crefname{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname{chapter}%
@@ -7767,6 +8051,12 @@
\crefname{note}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
+ \crefname{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
}}}
% \end{macrocode}
diff --git a/Master/texmf-dist/tex/latex/cleveref/cleveref.sty b/Master/texmf-dist/tex/latex/cleveref/cleveref.sty
index 25b6a21ceda..a8699ee5913 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}
- [2010/05/25 v0.16.3 Intelligent cross-referencing]
+ [2010/06/07 v0.17 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
@@ -46,25 +46,28 @@
\def\refstepcounter@noarg#1{%
\cref@old@refstepcounter{#1}%
\cref@constructprefix{#1}{\@result}%
- \protected@edef\cref@currentlabel{%
- [#1][\arabic{#1}][\@result]%
+ \@ifundefined{cref@#1@alias}%
+ {\def\@tmpa{#1}}%
+ {\def\@tmpa{\csname cref@#1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{#1}][\@result]%
\csname p@#1\endcsname\csname the#1\endcsname}}
\def\refstepcounter@optarg[#1]#2{%
\cref@old@refstepcounter{#2}%
\cref@constructprefix{#2}{\@result}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[#1][\arabic{#2}][\@result]%
- \csname p@#2\endcsname\csname the#1\endcsname}}
+ \csname p@#2\endcsname\csname the#2\endcsname}}
\let\cref@old@footnotetext\@footnotetext
\let\cref@old@mpfootnotetext\@mpfootnotetext
\def\@footnotetext#1{%
\cref@constructprefix{footnote}{\@result}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[footnote][\arabic{footnote}][\@result]\p@footnote\@thefnmark}%
\cref@old@footnotetext{#1}}
\def\@mpfootnotetext#1{%
\cref@constructprefix{mpfootnote}{\@result}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[footnote][\arabic{mpfootnote}][\@result]\p@footnote\@thefnmark}%
\cref@old@mpfootnotetext{#1}}
\AtBeginDocument{%
@@ -79,7 +82,7 @@
\def\label@optarg[#1]#2{%
\@bsphack%
\cref@old@label{#2}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
\expandafter\cref@override@label@type%
\cref@currentlabel\@nil{#1}}%
\protected@write\@auxout{}%
@@ -261,7 +264,7 @@
\let\tag\tag@in@align
\global\tag@false \global\let\raise@tag\@empty
\mmeasure@{#1}%
- \let\tag\gobble@tag \let\label\@gobble% <<< cleveref modification
+ \let\tag\gobble@tag \let\label\@gobble@optarg% <<< cleveref modification
\tabskip \if@fleqn \@mathmargin \else \z@skip \fi
\totwidth@\displaywidth
\if@fleqn
@@ -333,11 +336,11 @@
}%
\def\make@df@tag@@#1{%
\gdef\df@tag{\maketag@@@{#1}%
- \def\cref@currentlabel{[equation][][]#1}}}
+ \def\cref@currentlabel{[equation][2147483647][]#1}}}
\def\make@df@tag@@@#1{%
\gdef\df@tag{\tagform@{#1}%
\toks@\@xp{\p@equation{#1}}%
- \edef\cref@currentlabel{[equation][][]\the\toks@}}}
+ \edef\cref@currentlabel{[equation][2147483647][]\the\toks@}}}
}{}% end of \@ifpackageloaded{amsmath}
}% end of AtBeginDocument
\let\cref@old@appendix\appendix
@@ -355,27 +358,30 @@
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi}%
@@ -391,34 +397,37 @@
\def\@tmpa{##1}%
\def\@tmpb{chapter}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi%
@@ -644,19 +653,17 @@
\cref@stack@init{\@countstacka}%
\expandafter\cref@stack@push\expandafter%
{\@countera}{\@countstacka}%
- \ifx\@prefixa\@empty%
- \else%
+ \ifx\@prefixa\@empty\else%
\expandafter\cref@stack@push\expandafter%
{\@prefixa}{\@countstacka}%
\fi%
\cref@stack@init{\@countstackb}%
\expandafter\cref@stack@push\expandafter%
{\@counterb}{\@countstackb}%
- \ifx\@prefixb\@empty%
- \else%
- \expandafter\cref@stack@push\expandafter%
- {\@prefixb}{\@countstackb}%
- \fi%
+ \ifx\@prefixb\@empty\else%
+ \expandafter\cref@stack@push\expandafter%
+ {\@prefixb}{\@countstackb}%
+ \fi%
\@cref@countercmp%
\fi%
\fi%
@@ -1298,6 +1305,8 @@
\expandafter\def\csname cref@#1@rangelabel\endcsname%
##1##2##3##4##5##6{#2}%
\cref@stack@add{#1}{\cref@label@types}}
+\newcommand{\crefalias}[2]{%
+ \expandafter\def\csname cref@#1@alias\endcsname{#2}}
\newcommand{\crefname@preamble}[3]{%
\@crefname{cref}{#1}{#2}{#3}{@preamble}}
\newcommand{\Crefname@preamble}[3]{%
@@ -1747,13 +1756,16 @@
\def\H@refstepcounter#1{%
\cref@old@H@refstepcounter{#1}%
\cref@constructprefix{#1}{\@result}%
- \protected@edef\cref@currentlabel{%
- [#1][\arabic{#1}][\@result]%
+ \@ifundefined{cref@#1@alias}%
+ {\def\@tmpa{#1}}%
+ {\def\@tmpa{\csname cref@#1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{#1}][\@result]%
\csname p@#1\endcsname\csname the#1\endcsname}}
- \def\refstepcounter@noarg#1{\cref@old@refstepcounter{#1}}
+ \let\refstepcounter@noarg\cref@old@refstepcounter%
\def\refstepcounter@optarg[#1]#2{%
\cref@old@refstepcounter{#2}%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
\expandafter\cref@override@label@type%
\cref@currentlabel\@nil{#1}}}
\renewcommand\appendix{%
@@ -1770,27 +1782,30 @@
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi}%
@@ -1806,34 +1821,37 @@
\def\@tmpa{##1}%
\def\@tmpb{chapter}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[appendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{section}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
\def\@tmpa{##1}%
\def\@tmpb{subsubsection}%
\ifx\@tmpa\@tmpb%
- \protected@edef\cref@currentlabel{%
+ \protected@xdef\cref@currentlabel{%
[subsubsubappendix][\arabic{##1}][\@result]%
\csname p@##1\endcsname\csname the##1\endcsname}%
\else%
- \protected@edef\cref@currentlabel{%
- [##1][\arabic{##1}][\@result]%
- \csname p@##1\endcsname\csname the##1\endcsname}%
+ \@ifundefined{cref@##1@alias}%
+ {\def\@tmpa{##1}}%
+ {\def\@tmpa{\csname cref@##1@alias\endcsname}}%
+ \protected@xdef\cref@currentlabel{%
+ [\@tmpa][\arabic{##1}][\@result]%
+ \csname p@##1\endcsname\csname the##1\endcsname}
\fi%
\fi%
\fi%
@@ -1994,6 +2012,26 @@
\@tempa}
\let\@xnthm\cref@old@xnthm
}{}% end of \@ifpackageloaded{amsthm}
+ \@ifpackageloaded{algorithm}{%
+ \PackageInfo{cleveref}{`algorithm' support loaded}
+ \let\cref@old@ALG@step\ALG@step
+ \def\ALG@step{%
+ \cref@old@ALG@step%
+ \addtocounter{ALG@line}{-1}%
+ \refstepcounter[line]{ALG@line}}
+ }{}% end of \@ifpackageloaded{algorithm}
+ \@ifpackageloaded{listings}{%
+ \PackageInfo{cleveref}{`listings' support loaded}
+ \crefalias{lstnumber}{line}}{}% end of \@ifpackageloaded{listings}
+ \@ifpackageloaded{subfig}{%
+ \PackageInfo{cleveref}{`subfig' support loaded}
+ \AtBeginDocument{
+ \let\cref@old@refsteponlycounter\refsteponlycounter
+ \def\refsteponlycounter{%
+ \@ifnextchar[{\refstepcounter@optarg}%
+ {\cref@old@refsteponlycounter}%]
+ }}
+ }{}% end of \@ifpackageloaded{subfig}
\@ifpackageloaded{varioref}{%
\PackageInfo{cleveref}{`varioref' support loaded}
\PackageInfo{cleveref}{`cleveref' supersedes `varioref's %
@@ -2654,6 +2692,8 @@
\Crefname@preamble{example}{Example}{Examples}%
\Crefname@preamble{remark}{Remark}{Remarks}%
\Crefname@preamble{note}{Note}{Notes}%
+ \Crefname@preamble{algorithm}{Algorithm}{Algorithms}%
+ \Crefname@preamble{line}{Line}{Lines}%
\if@cref@capitalise%
\crefname@preamble{equation}{Eq.}{Eqs.}%
\crefname@preamble{chapter}{Chapter}{Chapters}%
@@ -2672,6 +2712,8 @@
\crefname@preamble{example}{Example}{Examples}%
\crefname@preamble{remark}{Remark}{Remarks}%
\crefname@preamble{note}{Note}{Notes}%
+ \crefname@preamble{algorithm}{Algorithm}{Algorithms}%
+ \crefname@preamble{line}{Line}{Lines}%
\else%
\crefname@preamble{equation}{eq.}{eqs.}%
\crefname@preamble{chapter}{chapter}{chapters}%
@@ -2690,6 +2732,8 @@
\crefname@preamble{example}{example}{examples}%
\crefname@preamble{remark}{remark}{remarks}%
\crefname@preamble{note}{note}{notes}%
+ \crefname@preamble{algorithm}{algorithm}{algorithms}%
+ \crefname@preamble{line}{line}{lines}%
\fi%
\def\cref@language{english}%
\cref@addto\extrasenglish{%
@@ -2730,6 +2774,8 @@
\Crefname{example}{Example}{Examples}%
\Crefname{remark}{Remark}{Remarks}%
\Crefname{note}{Note}{Notes}%
+ \Crefname{algorithm}{Algorithm}{Algorithms}%
+ \Crefname{line}{Line}{Lines}%
\if@cref@capitalise%
\crefname{equation}{Eq.}{Eqs.}%
\crefname{chapter}{Chapter}{Chapters}%
@@ -2759,6 +2805,8 @@
\crefname{example}{Example}{Examples}%
\crefname{remark}{Remark}{Remarks}%
\crefname{note}{Note}{Notes}%
+ \crefname{algorithm}{Algorithm}{Algorithms}%
+ \crefname{line}{Line}{Lines}%
\else%
\crefname{equation}{eq.}{eqs.}%
\crefname{chapter}{chapter}{chapters}%
@@ -2788,6 +2836,8 @@
\crefname{example}{example}{examples}%
\crefname{remark}{remark}{remarks}%
\crefname{note}{note}{notes}%
+ \crefname{algorithm}{algorithm}{algorithms}%
+ \crefname{line}{line}{lines}%
\fi%
}}}
\DeclareOption{german}{%
@@ -2819,6 +2869,8 @@
\Crefname@preamble{example}{Beispiel}{Beispiele}%
\Crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
\Crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \Crefname@preamble{algorithm}{Algorithmus}{Algorithmen}%
+ \Crefname@preamble{line}{Linie}{Linien}%
\if@cref@capitalise%
\crefname@preamble{equation}{Gleichung}{Gleichungen}%
\crefname@preamble{chapter}{Kapitel}{Kapitel}%
@@ -2837,6 +2889,8 @@
\crefname@preamble{example}{Beispiel}{Beispiele}%
\crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
\crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \crefname@preamble{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname@preamble{line}{Linie}{Linien}%
\else%
\crefname@preamble{equation}{Gleichung}{Gleichungen}%
\crefname@preamble{chapter}{Kapitel}{Kapitel}%
@@ -2855,6 +2909,8 @@
\crefname@preamble{example}{Beispiel}{Beispiele}%
\crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
\crefname@preamble{note}{Anmerkung}{Anmerkungen}%
+ \crefname@preamble{algorithm}{algorithmus}{algorithmen}%
+ \crefname@preamble{line}{linie}{linien}%
\fi%
\def\cref@language{german}%
\cref@addto\extrasgerman{%
@@ -2895,6 +2951,8 @@
\Crefname{example}{Beispiel}{Beispiele}%
\Crefname{remark}{Bemerkung}{Bemerkungen}%
\Crefname{note}{Anmerkung}{Anmerkungen}%
+ \Crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \Crefname{line}{Linie}{Linien}%
\if@cref@capitalise%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -2924,6 +2982,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\else%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -2953,6 +3013,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\fi%
}}}
\DeclareOption{ngerman}{%
@@ -2998,6 +3060,8 @@
\Crefname{example}{Beispiel}{Beispiele}%
\Crefname{remark}{Bemerkung}{Bemerkungen}%
\Crefname{note}{Anmerkung}{Anmerkungen}%
+ \Crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \Crefname{line}{Linie}{Linien}%
\if@cref@capitalise%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -3027,6 +3091,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\else%
\crefname{equation}{Gleichung}{Gleichungen}%
\crefname{chapter}{Kapitel}{Kapitel}%
@@ -3056,6 +3122,8 @@
\crefname{example}{Beispiel}{Beispiele}%
\crefname{remark}{Bemerkung}{Bemerkungen}%
\crefname{note}{Anmerkung}{Anmerkungen}%
+ \crefname{algorithm}{Algorithmus}{Algorithmen}%
+ \crefname{line}{Linie}{Linien}%
\fi%
}}}
\DeclareOption{dutch}{%
@@ -3086,6 +3154,8 @@
\Crefname@preamble{example}{Voorbeeld}{Voorbeelden}%
\Crefname@preamble{remark}{Opmerking}{Opmerkingen}%
\Crefname@preamble{note}{Aantekening}{Aantekeningen}%
+ \Crefname@preamble{algorithm}{Algoritme}{Algoritmen}%
+ \Crefname@preamble{line}{Lijn}{Lijnen}%
\if@cref@capitalise%
\crefname@preamble{equation}{Verg.}{Verg's.}%
\crefname@preamble{chapter}{Hoofdstuk}{Hoofdstukken}%
@@ -3104,6 +3174,8 @@
\crefname@preamble{example}{Voorbeeld}{Voorbeelden}%
\crefname@preamble{remark}{Opmerking}{Opmerkingen}%
\crefname@preamble{note}{Aantekening}{Aantekeningen}%
+ \crefname@preamble{algorithm}{Algoritme}{Algoritmen}%
+ \crefname@preamble{line}{Lijn}{Lijnen}%
\else%
\crefname@preamble{equation}{verg.}{verg's.}%
\crefname@preamble{chapter}{hoofdstuk}{hoofdstukken}%
@@ -3122,6 +3194,8 @@
\crefname@preamble{example}{voorbeeld}{voorbeelden}%
\crefname@preamble{remark}{opmerking}{opmerkingen}%
\crefname@preamble{note}{aantekening}{aantekeningen}%
+ \crefname@preamble{algorithm}{algoritme}{algoritmen}%
+ \crefname@preamble{line}{lijn}{lijnen}%
\fi%
\def\cref@language{dutch}%
\cref@addto\extrasdutch{%
@@ -3162,6 +3236,8 @@
\Crefname{example}{Voorbeeld}{Voorbeelden}%
\Crefname{remark}{Opmerking}{Opmerkingen}%
\Crefname{note}{Aantekening}{Aantekeningen}%
+ \Crefname{algorithm}{Algoritme}{Algoritmen}%
+ \Crefname{line}{Lijn}{Lijnen}%
\if@cref@capitalise%
\crefname{equation}{Verg.}{Verg's.}%
\crefname{chapter}{Hoofdstuk}{Hoofdstukken}%
@@ -3180,6 +3256,8 @@
\crefname{example}{Voorbeeld}{Voorbeelden}%
\crefname{remark}{Opmerking}{Opmerkingen}%
\crefname{note}{Aantekening}{Aantekeningen}%
+ \crefname{algorithm}{Algoritme}{Algoritmen}%
+ \crefname{line}{Lijn}{Lijnen}%
\else%
\crefname{equation}{verg.}{verg's.}%
\crefname{chapter}{hoofdstuk}{hoofdstukken}%
@@ -3198,6 +3276,8 @@
\crefname{example}{voorbeeld}{voorbeelden}%
\crefname{remark}{opmerking}{opmerkingen}%
\crefname{note}{aantekening}{aantekeningen}%
+ \crefname{algorithm}{algoritme}{algoritmen}%
+ \crefname{line}{lijn}{lijnen}%
\fi%
}}}
\DeclareOption{french}{%
@@ -3228,6 +3308,8 @@
\Crefname@preamble{result}{R\'esultat}{R\'esultats}%
\Crefname@preamble{example}{Exemple}{Exemples}%
\Crefname@preamble{remark}{Remarque}{Remarques}%
+ \Crefname@preamble{algorithm}{Algorithme}{Algorithmes}%
+ \Crefname@preamble{line}{Ligne}{Lignes}%
\if@cref@capitalise%
\crefname@preamble{equation}{{\'E}quation}{{\'E}quations}%
\crefname@preamble{chapter}{Chapitre}{Chapitres}%
@@ -3246,6 +3328,8 @@
\crefname@preamble{example}{Exemple}{Exemples}%
\crefname@preamble{remark}{Remarque}{Remarques}%
\crefname@preamble{note}{Commentaire}{Commentaires}%
+ \crefname@preamble{algorithm}{Algorithme}{Algorithmes}%
+ \crefname@preamble{line}{Ligne}{Lignes}%
\else%
\crefname@preamble{equation}{{\'e}quation}{{\'e}quations}%
\crefname@preamble{chapter}{chapitre}{chapitres}%
@@ -3264,6 +3348,8 @@
\crefname@preamble{example}{exemple}{exemples}%
\crefname@preamble{remark}{remarque}{remarques}%
\crefname@preamble{note}{commentaire}{commentaires}%
+ \crefname@preamble{algorithm}{algorithme}{algorithmes}%
+ \crefname@preamble{line}{ligne}{lignes}%
\fi%
\def\cref@language{french}%
\cref@addto\extrasfrench{%
@@ -3304,6 +3390,8 @@
\Crefname{example}{Exemple}{Exemples}%
\Crefname{remark}{Remarque}{Remarques}%
\Crefname{note}{Commentaire}{Commentaires}%
+ \Crefname{algorithm}{Algorithme}{Algorithmes}%
+ \Crefname{line}{Ligne}{Lignes}%
\if@cref@capitalise%
\crefname{equation}{{\'E}quation}{{\'E}quations}%
\crefname{chapter}{Chapitre}{Chapitres}%
@@ -3333,6 +3421,8 @@
\crefname{example}{Exemple}{Exemples}%
\crefname{remark}{Remarque}{Remarques}%
\crefname{note}{Commentaire}{Commentaires}%
+ \crefname{algorithm}{Algorithme}{Algorithmes}%
+ \crefname{line}{Ligne}{Lignes}%
\else%
\crefname{equation}{{\'e}quation}{{\'e}quations}%
\crefname{chapter}{chapitre}{chapitres}%
@@ -3362,6 +3452,8 @@
\crefname{example}{exemple}{exemples}%
\crefname{remark}{remarque}{remarques}%
\crefname{note}{commentaire}{commentaires}%
+ \crefname{algorithm}{algorithme}{algorithmes}%
+ \crefname{line}{ligne}{lignes}%
\fi%
}}}
\DeclareOption{spanish}{%
@@ -3393,6 +3485,8 @@
\Crefname@preamble{example}{Ejemplo}{Ejemplos}%
\Crefname@preamble{remark}{Observaci\'on}{Observaciones}%
\Crefname@preamble{note}{Nota}{Notas}%
+ \Crefname@preamble{algorithm}{Algoritmo}{Algoritmos}%
+ \Crefname@preamble{line}{L\'inea}{L\'ineas}%
\if@cref@capitalise%
\crefname@preamble{equation}{Ecuaci\'on}{ecuaciones}%
\crefname@preamble{chapter}{Cap\'itulo}{cap\'itulos}%
@@ -3411,6 +3505,8 @@
\crefname@preamble{example}{Ejemplo}{ejemplos}%
\crefname@preamble{remark}{Observaci\'on}{observaciones}%
\crefname@preamble{note}{Nota}{notas}%
+ \crefname@preamble{algorithm}{Algoritmo}{Algoritmos}%
+ \crefname@preamble{line}{L\'inea}{L\'ineas}%
\else%
\crefname@preamble{equation}{ecuaci\'on}{ecuaciones}%
\crefname@preamble{chapter}{cap\'itulo}{cap\'itulos}%
@@ -3429,6 +3525,8 @@
\crefname@preamble{example}{ejemplo}{ejemplos}%
\crefname@preamble{remark}{observaci\'on}{observaciones}%
\crefname@preamble{note}{nota}{notas}%
+ \crefname@preamble{algorithm}{algoritmo}{algoritmos}%
+ \crefname@preamble{line}{l\'inea}{l\'ineas}%
\fi%
\def\cref@language{spanish}%
\cref@addto\extrasspanish{%
@@ -3469,6 +3567,8 @@
\Crefname{example}{Ejemplo}{Ejemplos}%
\Crefname{remark}{Observaci\'on}{Observaci\'on}%
\Crefname{note}{Nota}{Notas}%
+ \Crefname{algorithm}{Algoritmo}{Algoritmos}%
+ \Crefname{line}{L\'inea}{L\'ineas}%
\if@cref@capitalise%
\crefname{equation}{Ecuaci\'on}{Ecuaciones}%
\crefname{chapter}{Cap\'itulo}{Cap\'itulos}%
@@ -3498,6 +3598,8 @@
\crefname{example}{Ejemplo}{Ejemplos}%
\crefname{remark}{Observaci\'on}{Observaci\'ones}%
\crefname{note}{Nota}{Notas}%
+ \crefname{algorithm}{Algoritmo}{Algoritmos}%
+ \crefname{line}{L\'inea}{L\'ineas}%
\else%
\crefname{equation}{ecuaci\'on}{ecuaciones}%
\crefname{chapter}{cap\'itulo}{cap\'itulos}%
@@ -3527,6 +3629,8 @@
\crefname{example}{ejemplo}{ejemplos}%
\crefname{remark}{observaci\'on}{observaci\'ones}%
\crefname{note}{nota}{notas}%
+ \crefname{algorithm}{algoritmo}{algoritmos}%
+ \crefname{line}{l\'inea}{l\'ineas}%
\fi%
}}}
\DeclareOption{italian}{%
@@ -3558,6 +3662,8 @@
\Crefname@preamble{example}{esempio}{esempi}%
\Crefname@preamble{remark}{Osservazione}{Osservazioni}%
\Crefname@preamble{note}{Nota}{Note}%
+ \Crefname@preamble{algorithm}{Algoritmo}{Algoritmi}%
+ \Crefname@preamble{line}{Linea}{Linee}%
\if@cref@capitalise%
\crefname@preamble{equation}{Eq.}{Eq.}%
\crefname@preamble{chapter}{Capitolo}{Capitoli}%
@@ -3576,6 +3682,8 @@
\crefname@preamble{example}{Esempio}{Esempi}%
\crefname@preamble{remark}{Osservazione}{Osservazioni}%
\crefname@preamble{note}{Nota}{Note}%
+ \crefname@preamble{algorithm}{Algoritmo}{Algoritmi}%
+ \crefname@preamble{line}{Linea}{Linee}%
\else%
\crefname@preamble{equation}{eq.}{eq.}%
\crefname@preamble{chapter}{capitolo}{capitoli}%
@@ -3594,6 +3702,8 @@
\crefname@preamble{example}{esempio}{esempi}%
\crefname@preamble{remark}{osservazione}{osservazioni}%
\crefname@preamble{note}{nota}{note}%
+ \crefname@preamble{algorithm}{algoritmo}{algoritmi}%
+ \crefname@preamble{line}{linea}{linee}%
\fi%
\def\cref@language{italian}%
\cref@addto\extrasitalian{%
@@ -3634,6 +3744,8 @@
\Crefname{example}{esempio}{esempi}%
\Crefname{remark}{Osservazione}{Osservazioni}%
\Crefname{note}{Nota}{Note}%
+ \Crefname{algorithm}{Algoritmo}{Algoritmi}%
+ \Crefname{line}{Linea}{Linee}%
\if@cref@capitalise%
\crefname{equation}{Eq.}{Eq.}%
\crefname{chapter}{Capitolo}{Capitoli}%
@@ -3663,6 +3775,8 @@
\crefname{example}{Esempio}{Esempi}%
\crefname{remark}{Osservazione}{Osservazioni}%
\crefname{note}{Nota}{Note}%
+ \crefname{algorithm}{Algoritmo}{Algoritmi}%
+ \crefname{line}{Linea}{Linee}%
\else%
\crefname{equation}{eq.}{eq.}%
\crefname{chapter}{capitolo}{capitoli}%
@@ -3692,6 +3806,8 @@
\crefname{example}{esempio}{esempi}%
\crefname{remark}{osservazione}{osservazioni}%
\crefname{note}{nota}{note}%
+ \crefname{algorithm}{algoritmo}{algoritmi}%
+ \crefname{line}{linea}{linee}%
\fi%
}}}
\DeclareOption{russian}{%
@@ -3758,6 +3874,12 @@
\Crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \Crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \Crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname@preamble{equation}%
{\CYRF-\cyrl.}%
@@ -3808,6 +3930,12 @@
\crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname@preamble{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname@preamble{chapter}%
@@ -3856,6 +3984,12 @@
\crefname@preamble{note}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+ \crefname@preamble{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname@preamble{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
\def\cref@language{russian}%
\cref@addto\extrasrussian{%
@@ -3953,6 +4087,12 @@
\Crefname{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \Crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \Crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
\crefname{chapter}%
@@ -4026,6 +4166,12 @@
\crefname{note}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+ \crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}%
+ \crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname{chapter}{\cyrg\cyrl\cyra\cyrv.}{\cyrg\cyrl\cyra\cyrv.}%
@@ -4097,6 +4243,12 @@
\crefname{note}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
{\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+ \crefname{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
}}}
\DeclareOption{ukrainian}{%
@@ -4163,6 +4315,12 @@
\Crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \Crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \Crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname@preamble{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
\crefname@preamble{chapter}%
@@ -4211,6 +4369,12 @@
\crefname@preamble{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \crefname@preamble{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \crefname@preamble{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname@preamble{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname@preamble{chapter}%
@@ -4259,6 +4423,12 @@
\crefname@preamble{note}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
+ \crefname@preamble{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname@preamble{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
\def\cref@language{ukrainian}%
\cref@addto\extrasukrainian{%
@@ -4356,6 +4526,12 @@
\Crefname{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \Crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \Crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\if@cref@capitalise%
\crefname{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
\crefname{chapter}%
@@ -4429,6 +4605,12 @@
\crefname{note}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
{\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+ \crefname{algorithm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}%
+ {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}%
+ \crefname{line}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}%
+ {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}%
\else%
\crefname{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
\crefname{chapter}%
@@ -4500,6 +4682,12 @@
\crefname{note}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
{\cyrz\cyra\cyrm\cyrii\cyrt.}%
+ \crefname{algorithm}%
+ {\cyra\cyrl\cyrg.}%
+ {\cyra\cyrl\cyrg.}%
+ \crefname{line}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
+ {\cyrs\cyrt\cyrr\cyrk.}%
\fi%
}}}
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}%