From 4d4ea43a8bf97966797d265c2e82e4285c5993ad Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 28 May 2010 15:51:49 +0000
Subject: cleveref 0.16.3 (26may10)

git-svn-id: svn://tug.org/texlive/trunk@18556 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/cleveref/cleveref.sty | 904 +++++++++++++++++++++-
 1 file changed, 881 insertions(+), 23 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/cleveref/cleveref.sty')

diff --git a/Master/texmf-dist/tex/latex/cleveref/cleveref.sty b/Master/texmf-dist/tex/latex/cleveref/cleveref.sty
index d83d022d38e..25b6a21ceda 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/12 v0.16.2 Intelligent cross-referencing]
+ [2010/05/25 v0.16.3 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
@@ -54,7 +54,7 @@
   \cref@constructprefix{#2}{\@result}%
   \protected@edef\cref@currentlabel{%
     [#1][\arabic{#2}][\@result]%
-    \csname p@#1\endcsname\csname the#1\endcsname}}
+    \csname p@#2\endcsname\csname the#1\endcsname}}
 \let\cref@old@footnotetext\@footnotetext
 \let\cref@old@mpfootnotetext\@mpfootnotetext
 \def\@footnotetext#1{%
@@ -1258,6 +1258,32 @@
       \@latex@warning{Reference name for label type `\@tmpa' undefined}%
     }{\csname Cref@\@tmpa @name\endcsname}%
   \fi}
+\DeclareRobustCommand{\namecrefs}[1]{%
+  \expandafter\ifx\csname r@cref@#1\endcsname\relax%
+    \protect\G@refundefinedtrue%
+    \nfss@text{\reset@font\bfseries ??}%
+    \@latex@warning{Reference `#1' on page \thepage \space undefined}%
+  \else%
+    \cref@gettype{#1}{\@tmpa}%
+    \@ifundefined{cref@\@tmpa @name@plural}{%
+      \protect\G@refundefinedtrue%``
+      \nfss@text{\reset@font\bfseries ??}%
+      \@latex@warning{Reference name for label type `\@tmpa' undefined}%
+    }{\csname cref@\@tmpa @name@plural\endcsname}%
+  \fi}
+\DeclareRobustCommand{\nameCrefs}[1]{%
+  \expandafter\ifx\csname r@cref@#1\endcsname\relax%
+    \protect\G@refundefinedtrue%
+    \nfss@text{\reset@font\bfseries ??}%
+    \@latex@warning{Reference `#1' on page \thepage \space undefined}%
+  \else%
+    \cref@gettype{#1}{\@tmpa}%
+    \@ifundefined{Cref@\@tmpa @name@plural}{%
+      \protect\G@refundefinedtrue%``
+      \nfss@text{\reset@font\bfseries ??}%
+      \@latex@warning{Reference name for label type `\@tmpa' undefined}%
+    }{\csname Cref@\@tmpa @name@plural\endcsname}%
+  \fi}
 \cref@stack@init{\cref@label@types}
 \newcommand{\crefdefaultlabelformat}[1]{%
   \def\cref@default@label##1##2##3{#1}}
@@ -3569,8 +3595,8 @@
       \crefname@preamble{remark}{osservazione}{osservazioni}%
       \crefname@preamble{note}{nota}{note}%
     \fi%
-    \def\cref@language{italiano}%
-    \cref@addto\extrasenglish{%
+    \def\cref@language{italian}%
+    \cref@addto\extrasitalian{%
       \renewcommand{\crefrangeconjunction}{ a~}%
       \renewcommand\crefrangepreconjunction{da~}%
       \renewcommand\crefrangepostconjunction{}%
@@ -3668,6 +3694,814 @@
         \crefname{note}{nota}{note}%
       \fi%
     }}}
+\DeclareOption{russian}{%
+  \PackageInfo{cleveref}{loaded `russian' language definitions}
+  \AtBeginDocument{%
+    \def\crefrangeconjunction@preamble{--}%
+    \def\crefrangepreconjunction@preamble{}%
+    \def\crefrangepostconjunction@preamble{}%
+    \def\crefpairconjunction@preamble{ \cyri~}%
+    \def\crefmiddleconjunction@preamble{, }%
+    \def\creflastconjunction@preamble{ \cyri~}%
+    \def\crefpairgroupconjunction@preamble{ \cyri~}%
+    \def\crefmiddlegroupconjunction@preamble{, }%
+    \def\creflastgroupconjunction@preamble%
+      {, \cyra\ \cyrt\cyra\cyrk\cyrzh\cyre~}%
+    \Crefname@preamble{equation}%
+      {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}%
+      {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyrery}%
+    \Crefname@preamble{chapter}%
+      {\CYRG\cyrl\cyra\cyrv\cyra}%
+      {\CYRG\cyrl\cyra\cyrv\cyrery}%
+    \Crefname@preamble{section}%
+      {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}%
+      {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+    \Crefname@preamble{appendix}%
+      {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+      {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+    \Crefname@preamble{enumi}%
+      {\CYRP\cyru\cyrn\cyrk\cyrt}%
+      {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}%
+    \Crefname@preamble{footnote}%
+      {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}%
+      {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}%
+    \Crefname@preamble{figure}%
+      {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}%
+      {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%
+    \Crefname@preamble{table}%
+      {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}%
+      {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}%
+    \Crefname@preamble{theorem}%
+      {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+      {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}%
+    \Crefname@preamble{lemma}%
+      {\CYRL\cyre\cyrm\cyrm\cyra}%
+      {\CYRL\cyre\cyrm\cyrm\cyrery}%
+    \Crefname@preamble{corollary}%
+      {\CYRV\cyrery\cyrv\cyro\cyrd}%
+      {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}%
+    \Crefname@preamble{proposition}%
+      {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}%
+      {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}%
+    \Crefname@preamble{definition}%
+      {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}%
+      {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}%
+    \Crefname@preamble{result}%
+      {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+      {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}%
+    \Crefname@preamble{example}%
+      {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}%
+      {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}%
+    \Crefname@preamble{remark}%
+      {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}%
+      {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}%
+    \Crefname@preamble{note}%
+      {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
+      {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+    \if@cref@capitalise%
+      \crefname@preamble{equation}%
+        {\CYRF-\cyrl.}%
+        {\CYRF-\cyrl.}%
+      \crefname@preamble{chapter}%
+        {\CYRG\cyrl\cyra\cyrv\cyra}%
+        {\CYRG\cyrl\cyra\cyrv\cyrery}%
+      \crefname@preamble{section}%
+        {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}%
+        {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+      \crefname@preamble{appendix}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+      \crefname@preamble{enumi}{\CYRP.}{\CYRP.\cyrp.}%
+      \crefname@preamble{footnote}%
+        {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}%
+        {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}%
+      \crefname@preamble{figure}%
+        {\CYRR\cyri\cyrs.}%
+        {\CYRR\cyri\cyrs.}%
+      \crefname@preamble{table}%
+        {\CYRT\cyra\cyrb\cyrl.}%
+        {\CYRT\cyra\cyrb\cyrl.}%
+      \crefname@preamble{theorem}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}%
+      \crefname@preamble{lemma}%
+        {\CYRL\cyre\cyrm\cyrm\cyra}%
+        {\CYRL\cyre\cyrm\cyrm\cyrery}%
+      \crefname@preamble{corollary}%
+        {\CYRV\cyrery\cyrv\cyro\cyrd}%
+        {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}%
+      \crefname@preamble{proposition}%
+        {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}%
+        {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}%
+      \crefname@preamble{definition}%
+        {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}%
+        {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}%
+      \crefname@preamble{result}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}%
+      \crefname@preamble{example}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}%
+      \crefname@preamble{remark}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}%
+      \crefname@preamble{note}%
+        {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
+        {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+    \else%
+      \crefname@preamble{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
+      \crefname@preamble{chapter}%
+        {\cyrg\cyrl\cyra\cyrv.}%
+        {\cyrg\cyrl\cyra\cyrv.}%
+      \crefname@preamble{section}%
+        {\cyrr\cyra\cyrz\cyrd.}%
+        {\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}%
+      \crefname@preamble{appendix}%
+        {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+        {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+      \crefname@preamble{enumi}{\cyrp.}{\cyrp.\cyrp.}%
+      \crefname@preamble{footnote}%
+        {\cyrs\cyrn\cyro\cyrs\cyrk.}%
+        {\cyrs\cyrn\cyro\cyrs\cyrk.}%
+      \crefname@preamble{figure}%
+        {\cyrr\cyri\cyrs.}%
+        {\cyrr\cyri\cyrs.}%
+      \crefname@preamble{table}%
+        {\cyrt\cyra\cyrb\cyrl.}%
+        {\cyrt\cyra\cyrb\cyrl.}%
+      \crefname@preamble{theorem}%
+        {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+        {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+      \crefname@preamble{lemma}%
+        {\cyrl\cyre\cyrm\cyrm.}%
+        {\cyrl\cyre\cyrm\cyrm.}%
+      \crefname@preamble{corollary}%
+        {\cyrv\cyrery\cyrv\cyro\cyrd}%
+        {\cyrv\cyrery\cyrv\cyro\cyrd.}%
+      \crefname@preamble{proposition}%
+        {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}%
+        {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}%
+      \crefname@preamble{definition}%
+        {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}%
+        {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}%
+      \crefname@preamble{result}%
+        {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}%
+        {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}%
+      \crefname@preamble{example}%
+        {\cyrp\cyrr\cyri\cyrm.}%
+        {\cyrp\cyrr\cyri\cyrm\cyre\cyrr.}%
+      \crefname@preamble{remark}%
+        {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}%
+        {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}%
+      \crefname@preamble{note}%
+        {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+        {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+    \fi%
+    \def\cref@language{russian}%
+    \cref@addto\extrasrussian{%
+      \renewcommand{\crefrangeconjunction}{--}%
+      \renewcommand\crefrangepreconjunction{}%
+      \renewcommand\crefrangepostconjunction{}%
+      \renewcommand{\crefpairconjunction}{ \cyri~}%
+      \renewcommand{\crefmiddleconjunction}{, }%
+      \renewcommand{\creflastconjunction}{ \cyri~}%
+      \renewcommand{\crefpairgroupconjunction}{ \cyri~}%
+      \renewcommand{\crefmiddlegroupconjunction}{, }%
+      \renewcommand{\creflastgroupconjunction}%
+        {, \cyra\ \cyrt\cyra\cyrk\cyrzh\cyre~}%
+      \Crefname{equation}%
+        {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}%
+        {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyrery}%
+      \Crefname{chapter}%
+        {\CYRG\cyrl\cyra\cyrv\cyra}%
+        {\CYRG\cyrl\cyra\cyrv\cyrery}%
+      \Crefname{section}%
+        {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}%
+        {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+      \Crefname{subsection}%
+        {\CYRP\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl}%
+        {\CYRP\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+      \Crefname{subsubsection}%
+        {\CYRP\cyro\cyrd\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl}%
+        {\CYRP\cyro\cyrd\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+      \Crefname{appendix}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+      \Crefname{subappendix}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}
+      \Crefname{subsubappendix}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}
+      \Crefname{subsubsubappendix}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}
+      \Crefname{enumi}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}%
+      \Crefname{enumii}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}%
+      \Crefname{enumiii}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}%
+      \Crefname{enumiv}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}%
+      \Crefname{enumv}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}%
+      \Crefname{footnote}%
+        {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}%
+        {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}%
+      \Crefname{figure}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%
+      \Crefname{subfigure}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%
+      \Crefname{table}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}%
+      \Crefname{subtable}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}%
+      \Crefname{theorem}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}%
+      \Crefname{lemma}%
+        {\CYRL\cyre\cyrm\cyrm\cyra}%
+        {\CYRL\cyre\cyrm\cyrm\cyrery}%
+      \Crefname{corollary}%
+        {\CYRV\cyrery\cyrv\cyro\cyrd}%
+        {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}%
+      \Crefname{proposition}%
+        {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}%
+        {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}%
+      \Crefname{definition}%
+        {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}%
+        {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}%
+      \Crefname{result}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}%
+      \Crefname{example}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}%
+      \Crefname{remark}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}%
+        {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}%
+      \Crefname{note}%
+        {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
+        {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+      \if@cref@capitalise%
+        \crefname{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
+        \crefname{chapter}%
+          {\CYRG\cyrl\cyra\cyrv\cyra}%
+          {\CYRG\cyrl\cyra\cyrv\cyrery}%
+        \crefname{section}%
+          {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}%
+          {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+        \crefname{subsection}%
+          {\CYRP\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl}%
+          {\CYRP\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+        \crefname{subsubsection}%
+          {\CYRP\cyro\cyrd\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl}%
+          {\CYRP\cyro\cyrd\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}%
+        \crefname{appendix}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+        \crefname{subappendix}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+        \crefname{subsubappendix}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+        \crefname{subsubsubappendix}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}%
+          {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}%
+        \crefname{enumi}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumii}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumiii}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumiv}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumv}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{footnote}%
+          {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}%
+          {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}%
+        \crefname{figure}%
+          {\CYRR\cyri\cyrs.}%
+          {\CYRR\cyri\cyrs.}%
+        \crefname{subfigure}%
+          {\CYRR\cyri\cyrs.}%
+          {\CYRR\cyri\cyrs.}%
+        \crefname{table}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+        \crefname{subtable}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+        \crefname{theorem}%
+          {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+          {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}%
+        \crefname{lemma}%
+          {\CYRL\cyre\cyrm\cyrm\cyra}%
+          {\CYRL\cyre\cyrm\cyrm\cyrery}%
+        \crefname{corollary}%
+          {\CYRV\cyrery\cyrv\cyro\cyrd}%
+          {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}%
+        \crefname{proposition}%
+          {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}%
+          {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}%
+        \crefname{definition}%
+          {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}%
+          {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}%
+        \crefname{result}%
+          {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+          {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}%
+        \crefname{example}%
+          {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}%
+          {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}%
+        \crefname{remark}%
+          {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}%
+          {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}%
+        \crefname{note}%
+          {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}%
+          {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}%
+      \else%
+        \crefname{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
+        \crefname{chapter}{\cyrg\cyrl\cyra\cyrv.}{\cyrg\cyrl\cyra\cyrv.}%
+        \crefname{section}%
+          {\cyrr\cyra\cyrz\cyrd.}%
+          {\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}%
+        \crefname{subsection}%
+          {\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd.}%
+          {\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}%
+        \crefname{subsubsection}%
+          {\cyrp\cyro\cyrd\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd.}%
+          {\cyrp\cyro\cyrd\cyrp\cyro\cyrd\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}%
+        \crefname{appendix}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+        \crefname{subappendix}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+        \crefname{subsubappendix}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+        \crefname{subsubsubappendix}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+          {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}%
+        \crefname{enumi}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumii}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumiii}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumiv}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumv}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{footnote}%
+          {\cyrs\cyrn\cyro\cyrs\cyrk.}%
+          {\cyrs\cyrn\cyro\cyrs\cyrk.}%
+        \crefname{figure}%
+          {\cyrr\cyri\cyrs.}%
+          {\cyrr\cyri\cyrs.}%
+        \crefname{subfigure}%
+          {\cyrr\cyri\cyrs.}%
+          {\cyrr\cyri\cyrs.}%
+        \crefname{table}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+        \crefname{subtable}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+        \crefname{theorem}%
+          {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+          {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+        \crefname{lemma}%
+          {\cyrl\cyre\cyrm\cyrm.}%
+          {\cyrl\cyre\cyrm\cyrm.}%
+        \crefname{corollary}%
+          {\cyrv\cyrery\cyrv\cyro\cyrd}%
+          {\cyrv\cyrery\cyrv\cyro\cyrd.}%
+        \crefname{proposition}%
+          {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}%
+          {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}%
+        \crefname{definition}%
+          {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}%
+          {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}%
+        \crefname{result}%
+          {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}%
+          {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}%
+        \crefname{example}%
+          {\cyrp\cyrr\cyri\cyrm.}%
+          {\cyrp\cyrr\cyri\cyrm\cyre\cyrr.}%
+        \crefname{remark}%
+          {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}%
+          {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}%
+        \crefname{note}%
+          {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+          {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}%
+      \fi%
+    }}}
+\DeclareOption{ukrainian}{%
+  \PackageInfo{cleveref}{loaded `ukrainian' language definitions}
+  \AtBeginDocument{%
+    \def\crefrangeconjunction@preamble{--}%
+    \def\crefrangepreconjunction@preamble{}%
+    \def\crefrangepostconjunction@preamble{}%
+    \def\crefpairconjunction@preamble{ \cyrii~}%
+    \def\crefmiddleconjunction@preamble{, }%
+    \def\creflastconjunction@preamble{ \cyrii~}%
+    \def\crefpairgroupconjunction@preamble{ \cyrt\cyra~}%
+    \def\crefmiddlegroupconjunction@preamble{, }%
+    \def\creflastgroupconjunction@preamble%
+      {, \cyra\ \cyrt\cyra\cyrk\cyro\cyrzh~}%
+    \Crefname@preamble{equation}%
+      {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}%
+      {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyri}%
+    \Crefname@preamble{chapter}%
+      {\CYRG\cyrl\cyra\cyrv\cyra}%
+      {\CYRG\cyrl\cyra\cyrv\cyri}%
+    \Crefname@preamble{section}%
+      {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}%
+      {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+    \Crefname@preamble{appendix}%
+      {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+      {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+    \Crefname@preamble{enumi}%
+      {\CYRP\cyru\cyrn\cyrk\cyrt}%
+      {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}%
+    \Crefname@preamble{footnote}%
+      {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}%
+      {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}%
+    \Crefname@preamble{figure}%
+      {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}%
+      {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%
+    \Crefname@preamble{table}%
+      {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}%
+      {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}%
+    \Crefname@preamble{theorem}%
+      {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+      {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}%
+    \Crefname@preamble{lemma}%
+      {\CYRL\cyre\cyrm\cyrm\cyra}%
+      {\CYRL\cyre\cyrm\cyrm\cyri}%
+    \Crefname@preamble{corollary}%
+      {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}%
+      {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}%
+    \Crefname@preamble{proposition}%
+      {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+      {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+    \Crefname@preamble{definition}%
+      {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+      {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+    \Crefname@preamble{result}%
+      {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+      {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}%
+    \Crefname@preamble{example}%
+      {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}%
+      {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}%
+    \Crefname@preamble{remark}%
+      {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}%
+      {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}%
+    \Crefname@preamble{note}%
+      {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
+      {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+    \if@cref@capitalise%
+      \crefname@preamble{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
+      \crefname@preamble{chapter}%
+        {\CYRG\cyrl\cyra\cyrv\cyra}%
+        {\CYRG\cyrl\cyra\cyrv\cyri}%
+      \crefname@preamble{section}%
+        {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}%
+        {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+      \crefname@preamble{appendix}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+      \crefname@preamble{enumi}{\CYRP.}{\CYRP.\cyrp.}%
+      \crefname@preamble{footnote}%
+        {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}%
+        {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}%
+      \crefname@preamble{figure}%
+        {\CYRR\cyri\cyrs.}%
+        {\CYRR\cyri\cyrs.}%
+      \crefname@preamble{table}%
+        {\CYRT\cyra\cyrb\cyrl.}%
+        {\CYRT\cyra\cyrb\cyrl.}%
+      \crefname@preamble{theorem}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}%
+      \crefname@preamble{lemma}%
+        {\CYRL\cyre\cyrm\cyrm\cyra}%
+        {\CYRL\cyre\cyrm\cyrm\cyri}%
+      \crefname@preamble{corollary}%
+        {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}%
+        {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}%
+      \crefname@preamble{proposition}%
+        {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+        {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+      \crefname@preamble{definition}%
+        {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+        {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+      \crefname@preamble{result}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}%
+      \crefname@preamble{example}%
+        {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}%
+        {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}%
+      \crefname@preamble{remark}%
+        {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}%
+        {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}%
+      \crefname@preamble{note}%
+        {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
+        {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+    \else%
+      \crefname@preamble{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
+      \crefname@preamble{chapter}%
+        {\cyrg\cyrl\cyra\cyrv.}%
+        {\cyrg\cyrl\cyra\cyrv.}%
+      \crefname@preamble{section}%
+        {\cyrr\cyro\cyrz\cyrd.}%
+        {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}%
+      \crefname@preamble{appendix}%
+        {\cyrd\cyro\cyrd\cyra\cyrt.}%
+        {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}%
+      \crefname@preamble{enumi}{\cyrp.}{\cyrp.\cyrp.}%
+      \crefname@preamble{footnote}%
+        {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}%
+        {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}%
+      \crefname@preamble{figure}%
+        {\cyrr\cyri\cyrs.}%
+        {\cyrr\cyri\cyrs.}%
+      \crefname@preamble{table}%
+        {\cyrt\cyra\cyrb\cyrl.}%
+        {\cyrt\cyra\cyrb\cyrl.}%
+      \crefname@preamble{theorem}%
+        {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+        {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+      \crefname@preamble{lemma}%
+        {\cyrl\cyre\cyrm\cyrm.}%
+        {\cyrl\cyre\cyrm\cyrm.}%
+      \crefname@preamble{corollary}%
+        {\cyrv\cyri\cyrs\cyrn\cyro\cyrv.}%
+        {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyrk.}%
+      \crefname@preamble{proposition}%
+        {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}%
+        {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}%
+      \crefname@preamble{definition}%
+        {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}%
+        {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}%
+      \crefname@preamble{result}%
+        {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}%
+        {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt.}%
+      \crefname@preamble{example}%
+        {\cyrp\cyrr\cyri\cyrk\cyrl.}%
+        {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd.}%
+      \crefname@preamble{remark}%
+        {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}%
+        {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}%
+      \crefname@preamble{note}%
+        {\cyrz\cyra\cyrm\cyrii\cyrt.}%
+        {\cyrz\cyra\cyrm\cyrii\cyrt.}%
+    \fi%
+    \def\cref@language{ukrainian}%
+    \cref@addto\extrasukrainian{%
+      \renewcommand{\crefrangeconjunction}{--}%
+      \renewcommand\crefrangepreconjunction{}%
+      \renewcommand\crefrangepostconjunction{}%
+      \renewcommand{\crefpairconjunction}{ \cyrii~}%
+      \renewcommand{\crefmiddleconjunction}{, }%
+      \renewcommand{\creflastconjunction}{ \cyrii~}%
+      \renewcommand{\crefpairgroupconjunction}{ \cyrt\cyra~}%
+      \renewcommand{\crefmiddlegroupconjunction}{, }%
+      \renewcommand{\creflastgroupconjunction}%
+        {, \cyra\ \cyrt\cyra\cyrk\cyro\cyrzh~}%
+      \Crefname{equation}%
+        {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}%
+        {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyri}%
+      \Crefname{chapter}%
+        {\CYRG\cyrl\cyra\cyrv\cyra}%
+        {\CYRG\cyrl\cyra\cyrv\cyri}%
+      \Crefname{section}%
+        {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}%
+        {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+      \Crefname{subsection}%
+        {\CYRP\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}%
+        {\CYRP\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+      \Crefname{subsubsection}%
+        {\CYRP\cyrii\cyrd\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}%
+        {\CYRP\cyrii\cyrd\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+      \Crefname{appendix}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+      \Crefname{subappendix}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+      \Crefname{subsubappendix}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+      \Crefname{subsubsubappendix}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+        {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+      \Crefname{enumi}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}%
+      \Crefname{enumii}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}%
+      \Crefname{enumiii}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}%
+      \Crefname{enumiv}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}%
+      \Crefname{enumv}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt}%
+        {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}%
+      \Crefname{footnote}%
+        {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}%
+        {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}%
+      \Crefname{figure}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%
+      \Crefname{subfigure}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}%
+        {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%
+      \Crefname{table}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}%
+      \Crefname{subtable}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}%
+        {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}%
+      \Crefname{theorem}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+        {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}%
+      \Crefname{lemma}%
+        {\CYRL\cyre\cyrm\cyrm\cyra}%
+        {\CYRL\cyre\cyrm\cyrm\cyri}%
+      \Crefname{corollary}%
+        {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}%
+        {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}%
+      \Crefname{proposition}%
+        {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+        {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+      \Crefname{definition}%
+        {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+        {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+      \Crefname{result}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+        {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}%
+      \Crefname{example}%
+        {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}%
+        {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}%
+      \Crefname{remark}%
+        {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}%
+        {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}%
+      \Crefname{note}%
+        {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
+        {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+      \if@cref@capitalise%
+        \crefname{equation}{\CYRF-\cyrl.}{\CYRF-\cyrl.}%
+        \crefname{chapter}%
+          {\CYRG\cyrl\cyra\cyrv\cyra}%
+          {\CYRG\cyrl\cyra\cyrv\cyri}%
+        \crefname{section}%
+          {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}%
+          {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+        \crefname{subsection}%
+          {\CYRP\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}%
+          {\CYRP\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+        \crefname{subsubsection}%
+          {\CYRP\cyrii\cyrd\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}%
+          {\CYRP\cyrii\cyrd\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}%
+        \crefname{appendix}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+        \crefname{subappendix}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+        \crefname{subsubappendix}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+        \crefname{subsubsubappendix}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}%
+          {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%
+        \crefname{enumi}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumii}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumiii}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumiv}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{enumv}{\CYRP.}{\CYRP.\cyrp.}%
+        \crefname{footnote}%
+          {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}%
+          {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}%
+        \crefname{figure}%
+          {\CYRR\cyri\cyrs.}%
+          {\CYRR\cyri\cyrs.}%
+        \crefname{subfigure}%
+          {\CYRR\cyri\cyrs.}%
+          {\CYRR\cyri\cyrs.}%
+        \crefname{table}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+        \crefname{subtable}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+          {\CYRT\cyra\cyrb\cyrl.}%
+        \crefname{theorem}%
+          {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}%
+          {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}%
+        \crefname{lemma}%
+          {\CYRL\cyre\cyrm\cyrm\cyra}%
+          {\CYRL\cyre\cyrm\cyrm\cyri}%
+        \crefname{corollary}%
+          {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}%
+          {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}%
+        \crefname{proposition}%
+          {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+          {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}%
+        \crefname{definition}%
+          {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+          {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+        \crefname{result}%
+          {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}%
+          {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}%
+        \crefname{example}%
+          {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}%
+          {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}%
+        \crefname{remark}%
+          {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}%
+          {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}%
+        \crefname{note}%
+          {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}%
+          {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}%
+      \else%
+        \crefname{equation}{\cyrf-\cyrl.}{\cyrf-\cyrl.}%
+        \crefname{chapter}%
+          {\cyrg\cyrl\cyra\cyrv.}%
+          {\cyrg\cyrl\cyra\cyrv.}%
+        \crefname{section}%
+          {\cyrr\cyro\cyrz\cyrd.}%
+          {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}%
+        \crefname{subsection}%
+          {\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd.}%
+          {\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}%
+        \crefname{subsubsection}%
+          {\cyrp\cyrii\cyrd\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd.}%
+          {\cyrp\cyrii\cyrd\cyrp\cyrii\cyrd\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}%
+        \crefname{appendix}%
+          {\cyrd\cyro\cyrd\cyra\cyrt.}%
+          {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}%
+        \crefname{subappendix}%
+          {\cyrd\cyro\cyrd\cyra\cyrt.}%
+          {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}%
+        \crefname{subsubappendix}%
+          {\cyrd\cyro\cyrd\cyra\cyrt.}%
+          {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}%
+        \crefname{subsubsubappendix}%
+          {\cyrd\cyro\cyrd\cyra\cyrt.}%
+          {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}%
+        \crefname{enumi}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumii}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumiii}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumiv}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{enumv}{\cyrp.}{\cyrp.\cyrp.}%
+        \crefname{footnote}%
+          {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}%
+          {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}%
+        \crefname{figure}%
+          {\cyrr\cyri\cyrs.}%
+          {\cyrr\cyri\cyrs.}%
+        \crefname{subfigure}%
+          {\cyrr\cyri\cyrs.}%
+          {\cyrr\cyri\cyrs.}%
+        \crefname{table}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+        \crefname{subtable}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+          {\cyrt\cyra\cyrb\cyrl.}%
+        \crefname{theorem}%
+          {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+          {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}%
+        \crefname{lemma}{\cyrl\cyre\cyrm\cyrm.}{\cyrl\cyre\cyrm\cyrm.}%
+        \crefname{corollary}%
+          {\cyrv\cyri\cyrs\cyrn\cyro\cyrv.}%
+          {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyrk.}%
+        \crefname{proposition}%
+          {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}%
+          {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}%
+        \crefname{definition}%
+          {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}%
+          {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}%
+        \crefname{result}%
+          {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}%
+          {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt.}%
+        \crefname{example}%
+          {\cyrp\cyrr\cyri\cyrk\cyrl.}%
+          {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd.}%
+        \crefname{remark}%
+          {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}%
+          {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}%
+        \crefname{note}%
+          {\cyrz\cyra\cyrm\cyrii\cyrt.}%
+          {\cyrz\cyra\cyrm\cyrii\cyrt.}%
+      \fi%
+    }}}
 \edef\@curroptions{\@ptionlist{\@currname.\@currext}}%
 \@expandtwoargs\in@{,capitalise,}{%
   ,\@classoptionslist,\@curroptions,}%
@@ -3724,6 +4558,8 @@
       \expandafter{\crefpairconjunction}}%
     \expandafter\expandafter\expandafter\cref@addto%
       \expandafter\@tmpa\expandafter{\@tmpb}%
+    \@ifundefined{crefpairgroupconjunction}{%
+      \let\crefpairgroupconjunction\crefpairconjunction}{}%
   }%
   \@ifundefined{crefmiddleconjunction}{%
     \let\crefmiddleconjunction\crefmiddleconjunction@preamble%
@@ -3734,6 +4570,8 @@
       \expandafter{\crefmiddleconjunction}}%
     \expandafter\expandafter\expandafter\cref@addto%
       \expandafter\@tmpa\expandafter{\@tmpb}%
+    \@ifundefined{crefmiddlegroupconjunction}{%
+      \let\crefmiddlegroupconjunction\crefmiddleconjunction}{}%
   }%
   \@ifundefined{creflastconjunction}{%
     \let\creflastconjunction\creflastconjunction@preamble%
@@ -3744,10 +4582,12 @@
       \expandafter{\creflastconjunction}}%
     \expandafter\expandafter\expandafter\cref@addto%
       \expandafter\@tmpa\expandafter{\@tmpb}%
+    \@ifundefined{creflastgroupconjunction}{%
+      \edef\creflastgroupconjunction{, \creflastconjunction}}{}%
   }%
   \@ifundefined{crefpairgroupconjunction}{%
     \let\crefpairgroupconjunction%
-      \crefpairgroupconjunction@preamble%
+    \crefpairgroupconjunction@preamble%
   }{%
     \expandafter\def\expandafter\@tmpb\expandafter{%
       \expandafter\renewcommand\expandafter%
@@ -3762,8 +4602,8 @@
   }{%
     \expandafter\def\expandafter\@tmpb\expandafter{%
       \expandafter\renewcommand\expandafter%
-      {\expandafter\crefpairmiddleconjunction\expandafter}%
-      \expandafter{\crefpairmiddleconjunction}}%
+      {\expandafter\crefmiddlegroupconjunction\expandafter}%
+      \expandafter{\crefmiddlegroupconjunction}}%
     \expandafter\expandafter\expandafter\cref@addto%
       \expandafter\@tmpa\expandafter{\@tmpb}%
   }%
@@ -3773,17 +4613,11 @@
   }{%
     \expandafter\def\expandafter\@tmpb\expandafter{%
       \expandafter\renewcommand\expandafter%
-      {\expandafter\crefpairlastconjunction\expandafter}%
-      \expandafter{\crefpairlastconjunction}}%
+      {\expandafter\creflastgroupconjunction\expandafter}%
+      \expandafter{\creflastgroupconjunction}}%
     \expandafter\expandafter\expandafter\cref@addto%
       \expandafter\@tmpa\expandafter{\@tmpb}%
   }%
-  \@ifundefined{crefpairgroupconjunction}{%
-    \let\crefpairgroupconjunction\crefpairconjunction}{}%
-  \@ifundefined{crefmiddlegroupconjunction}{%
-    \let\crefmiddlegroupconjunction\crefmiddleconjunction}{}%
-  \@ifundefined{creflastgroupconjunction}{%
-    \edef\creflastgroupconjunction{, \creflastconjunction}}{}%
   \let\@tmpstack\cref@label@types%
   \cref@isstackfull{\@tmpstack}%
   \@whilesw\if@cref@stackfull\fi{%
@@ -3860,12 +4694,16 @@
         \expandafter\@crefrangedefinemultiformat\expandafter{\@tmpa}}}{}%
     \cref@stack@pop{\@tmpstack}%
     \cref@isstackfull{\@tmpstack}}%
+    \@ifundefined{cref@subsection@name}{%
+      \let\cref@subsection@name\cref@section@name%
+      \let\cref@subsection@name@plural\cref@section@name@plural}{}%
+    \@ifundefined{Cref@subsection@name}{%
+      \let\Cref@subsection@name\Cref@section@name%
+      \let\Cref@subsection@name@plural\Cref@section@name@plural}{}%
     \@ifundefined{cref@subsection@format}{%
-      \let\cref@subsection@format%
-      \cref@section@format}{}%
+      \let\cref@subsection@format\cref@section@format}{}%
     \@ifundefined{Cref@subsection@format}{%
-      \let\Cref@subsection@format%
-      \Cref@section@format}{}%
+      \let\Cref@subsection@format\Cref@section@format}{}%
     \@ifundefined{crefrange@subsection@format}{%
       \let\crefrange@subsection@format%
       \crefrange@section@format}{}%
@@ -3920,6 +4758,12 @@
     \@ifundefined{Crefrange@subsection@format@last}{%
       \let\Crefrange@subsection@format@last%
       \Crefrange@section@format@last}{}%
+    \@ifundefined{cref@subsubsection@name}{%
+      \let\cref@subsubsection@name\cref@section@name%
+      \let\cref@subsubsection@name@plural\cref@section@name@plural}{}%
+    \@ifundefined{Cref@subsection@name}{%
+      \let\Cref@subsection@name\Cref@section@name%
+      \let\Cref@subsection@name@plural\Cref@section@name@plural}{}%
     \@ifundefined{cref@subsubsection@format}{%
       \let\cref@subsubsection@format%
       \cref@subsection@format}{}%
@@ -3980,12 +4824,18 @@
     \@ifundefined{Crefrange@subsubsection@format@last}{%
       \let\Crefrange@subsubsection@format@last%
       \Crefrange@subsection@format@last}{}%
+    \@ifundefined{cref@subappendix@name}{%
+      \let\cref@subappendix@name\cref@appendix@name%
+      \let\cref@subappendix@name@plural%
+        \cref@appendix@name@plural}{}%
+    \@ifundefined{Cref@subappendix@name}{%
+      \let\Cref@subappendix@name\Cref@section@name%
+      \let\Cref@subappendixsection@name@plural%
+        \Cref@appendix@name@plural}{}%
     \@ifundefined{cref@subappendix@format}{%
-      \let\cref@subappendix@format%
-      \cref@appendix@format}{}%
+      \let\cref@subappendix@format\cref@appendix@format}{}%
     \@ifundefined{Cref@subappendix@format}{%
-      \let\Cref@subappendix@format%
-      \Cref@appendix@format}{}%
+      \let\Cref@subappendix@format\Cref@appendix@format}{}%
     \@ifundefined{crefrange@subappendix@format}{%
       \let\crefrange@subappendix@format%
       \crefrange@appendix@format}{}%
@@ -4040,6 +4890,14 @@
     \@ifundefined{Crefrange@subappendix@format@last}{%
       \let\Crefrange@subappendix@format@last%
       \Crefrange@appendix@format@last}{}%
+    \@ifundefined{cref@subsubappendix@name}{%
+      \let\cref@subsubappendix@name\cref@appendix@name%
+      \let\cref@subsubappendix@name@plural%
+        \cref@appendix@name@plural}{}%
+    \@ifundefined{Cref@subsubappendix@name}{%
+      \let\Cref@subsubappendix@name\Cref@section@name%
+      \let\Cref@subsubappendixsection@name@plural%
+        \Cref@appendix@name@plural}{}%
     \@ifundefined{cref@subsubappendix@format}{%
       \let\cref@subsubappendix@format%
       \cref@subappendix@format}{}%
-- 
cgit v1.2.3

