introduction/main.tex: Fix 'ion strength' -> 'ionic strength'
[thesis.git] / src / package / cleveref.sty
1 %%
2 %% This is file `cleveref.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% cleveref.dtx  (with options: `package')
8 %% 
9 %% LaTeX package for automatic cross-referencing text.
10 %% 
11 %% Copyright (C) 2006  Toby Cubitt
12 %% See the files README and COPYING.
13 %% 
14 %% This file may be distributed and/or modified under the
15 %% conditions of the LaTeX Project Public License, either version 1.2
16 %% of this license or (at your option) any later version.
17 %% The latest version of this license is in:
18 %%
19 %%    http://www.latex-project.org/lppl.txt
20 %%
21 %% and version 1.2 or later is part of all distributions of LaTeX
22 %% version 1999/12/01 or later.
23 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
24 \ProvidesPackage{cleveref}
25  [2009/12/11 v0.15.3 Intelligent cross-referencing]
26 %% \CharacterTable
27 %%  {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
28 %%   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
29 %%   Digits        \0\1\2\3\4\5\6\7\8\9
30 %%   Exclamation   \!     Double quote  \"     Hash (number) \#
31 %%   Dollar        \$     Percent       \%     Ampersand     \&
32 %%   Acute accent  \'     Left paren    \(     Right paren   \)
33 %%   Asterisk      \*     Plus          \+     Comma         \,
34 %%   Minus         \-     Point         \.     Solidus       \/
35 %%   Colon         \:     Semicolon     \;     Less than     \<
36 %%   Equals        \=     Greater than  \>     Question mark \?
37 %%   Commercial at \@     Left bracket  \[     Backslash     \\
38 %%   Right bracket \]     Circumflex    \^     Underscore    \_
39 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
40 %%   Right brace   \}     Tilde         \~}
41 \let\cref@old@refstepcounter\refstepcounter
42 \def\refstepcounter{%
43   \@ifnextchar[{\refstepcounter@optarg}{\refstepcounter@noarg}%]
44 }
45 \def\refstepcounter@noarg#1{%
46   \cref@old@refstepcounter{#1}%
47   \cref@constructprefix{#1}{\@result}%
48   \protected@edef\@currentlabel{%
49     [#1][\arabic{#1}][\@result]%
50     \csname p@#1\endcsname\csname the#1\endcsname}}
51 \def\refstepcounter@optarg[#1]#2{%
52   \cref@old@refstepcounter{#2}%
53   \cref@constructprefix{#2}{\@result}%
54   \protected@edef\@currentlabel{%
55     [#1][\arabic{#2}][\@result]\@currentlabel}}
56 \def\cref@override@label@type[#1][#2][#3]#4\@nil#5{[#5][#2][#3]#4}
57 \AtBeginDocument{%
58   \let\cref@old@label\label
59   \def\label{\@ifnextchar[\label@optarg\cref@old@label}%]
60   \def\label@optarg[#1]{%
61     \protected@edef\@currentlabel{%
62       \expandafter\cref@override@label@type\@currentlabel\@nil{#1}}%
63     \cref@old@label}%
64   \@ifpackageloaded{amsmath}{%
65     \let\cref@label\label
66     \let\cref@old@label@in@display\label@in@display
67     \def\label@in@display{%
68       \@ifnextchar[\label@in@display@optarg\label@in@display@noarg}%]
69     \def\label@in@display@noarg#1{\cref@old@label@in@display{{#1}}}
70     \def\label@in@display@optarg[#1]#2{%
71       \cref@old@label@in@display{[#1]{#2}}}
72     \def\ltx@label#1{\cref@label#1}
73     \let\cref@old@make@df@tag@@\make@df@tag@@
74   \let\cref@old@subequations\subequations%
75   \let\cref@old@endsubequations\endsubequations%
76   \cref@resetby{equation}{\@result}%
77   \ifx\@result\relax\else%
78     \@addtoreset{parentequation}{\@result}%
79   \fi%
80   \renewenvironment{subequations}{%
81     \@addtoreset{equation}{parentequation}%
82     \cref@old@subequations%
83   }{%
84     \gdef\cl@parentequation{}%
85     \cref@old@endsubequations%
86     \setcounter{parentequation}{0}%
87   }%
88     \def\make@df@tag@@#1{%
89       \gdef\df@tag{\maketag@@@{#1}%
90         \def\@currentlabel{[equation][][]#1}}}
91     \def\make@df@tag@@@#1{%
92       \gdef\df@tag{\tagform@{#1}%
93         \toks@\@xp{\p@equation{#1}}%
94           \edef\@currentlabel{[equation][][]\the\toks@}}}
95   }{}%
96 }
97 \def\cref@reflabel#1#2{\@result}
98 \AtBeginDocument{%
99   \DeclareRobustCommand{\ref}{\cref@ref}
100   \def\cref@ref#1{%
101     \expandafter\ifx\csname r@#1\endcsname\relax%
102       \let\@result\relax%
103     \else%
104       \cref@getlabel{#1}{\@result}%
105     \fi%
106     \expandafter\@setref\csname r@#1\endcsname{\cref@reflabel}{#1}}%
107 }
108 \let\cref@old@appendix\appendix
109 \renewcommand\appendix{%
110   \cref@old@appendix%
111   \@ifundefined{chapter}{%
112     \gdef\refstepcounter@noarg##1{%
113       \cref@old@refstepcounter{##1}%
114       \cref@constructprefix{##1}{\@result}%
115       \ifx\@result\@empty%
116         \def\@result{2147483647}%
117       \else%
118         \edef\@result{2147483647,\@result}%
119       \fi%
120       \def\@tmpa{##1}%
121       \def\@tmpb{section}%
122       \ifx\@tmpa\@tmpb%
123         \protected@edef\@currentlabel{%
124           [appendix][\arabic{##1}][\@result]\@currentlabel}%
125       \else%
126         \def\@tmpa{##1}%
127         \def\@tmpb{subsection}%
128         \ifx\@tmpa\@tmpb%
129           \protected@edef\@currentlabel{%
130             [subappendix][\arabic{##1}][\@result]\@currentlabel}%
131         \else%
132           \def\@tmpa{##1}%
133           \def\@tmpb{subsubsection}%
134           \ifx\@tmpa\@tmpb%
135             \protected@edef\@currentlabel{%
136               [subsubappendix][\arabic{##1}][\@result]%
137               \@currentlabel}%
138           \else%
139             \protected@edef\@currentlabel{%
140               [##1][\arabic{##1}][\@result]\@currentlabel}%
141           \fi%
142         \fi%
143       \fi}%
144   }{%
145     \def\refstepcounter@noarg##1{%
146       \cref@old@refstepcounter{##1}%
147       \cref@constructprefix{##1}{\@result}%
148       \ifx\@result\@empty%
149         \def\@result{2147483647}%
150       \else%
151         \edef\@result{2147483647,\@result}%
152       \fi%
153       \def\@tmpa{##1}%
154       \def\@tmpb{chapter}%
155       \ifx\@tmpa\@tmpb%
156         \protected@edef\@currentlabel{%
157           [appendix][\arabic{##1}][\@result]\@currentlabel}%
158       \else%
159         \def\@tmpa{##1}%
160         \def\@tmpb{section}%
161         \ifx\@tmpa\@tmpb%
162           \protected@edef\@currentlabel{%
163             [subappendix][\arabic{##1}][\@result]\@currentlabel}%
164         \else%
165           \def\@tmpa{##1}%
166           \def\@tmpb{subsection}%
167           \ifx\@tmpa\@tmpb%
168             \protected@edef\@currentlabel{%
169               [subsubappendix][\arabic{##1}][\@result]%
170               \@currentlabel}%
171           \else%
172             \def\@tmpa{##1}%
173             \def\@tmpb{subsubsection}%
174             \ifx\@tmpa\@tmpb%
175               \protected@edef\@currentlabel{%
176                 [subsubsubappendix][\arabic{##1}]%
177                 [\@result]\@currentlabel}%
178             \else%
179               \protected@edef\@currentlabel{%
180                 [##1][\arabic{##1}][\@result]\@currentlabel}%
181             \fi%
182           \fi%
183         \fi%
184       \fi}%
185   }%
186 }
187 \def\cref@getlabel#1#2{%
188   \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
189   \expandafter\expandafter\expandafter\def%
190     \expandafter\expandafter\expandafter\@tmpa%
191     \expandafter\expandafter\expandafter{%
192       \expandafter\@firstoftwo\@tmpa}%
193   \expandafter\@cref@getlabel\@tmpa\@nil#2}%
194 \def\@cref@getlabel{\@ifnextchar[%]
195   \@@cref@getlabel{\@@cref@getlabel[][][]}}
196 \def\@@cref@getlabel[#1][#2][#3]#4\@nil#5{\def#5{#4}}
197 \def\cref@gettype#1#2{%
198   \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
199   \expandafter\expandafter\expandafter\def%
200     \expandafter\expandafter\expandafter\@tmpa%
201     \expandafter\expandafter\expandafter{%
202       \expandafter\@firstoftwo\@tmpa}%
203   \expandafter\@cref@gettype\@tmpa\@nil#2}%
204 \def\@cref@gettype{\@ifnextchar[%]
205   \@@cref@gettype{\@@cref@gettype[][][]}}
206 \def\@@cref@gettype[#1][#2][#3]#4\@nil#5{\def#5{#1}}
207 \def\cref@getcounter#1#2{%
208   \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
209   \expandafter\expandafter\expandafter\def%
210     \expandafter\expandafter\expandafter\@tmpa%
211     \expandafter\expandafter\expandafter{%
212       \expandafter\@firstoftwo\@tmpa}%
213   \expandafter\@cref@getcounter\@tmpa\@nil#2}
214 \def\@cref@getcounter{\@ifnextchar[%]
215   \@@cref@getcounter{\@@cref@getcounter[][][]}}
216 \def\@@cref@getcounter[#1][#2][#3]#4\@nil#5{\def#5{#2}}
217 \def\cref@getprefix#1#2{%
218   \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
219   \expandafter\expandafter\expandafter\def%
220     \expandafter\expandafter\expandafter\@tmpa%
221     \expandafter\expandafter\expandafter{%
222       \expandafter\@firstoftwo\@tmpa}%
223   \expandafter\@cref@getprefix\@tmpa\@nil#2}
224 \def\@cref@getprefix{\@ifnextchar[%]
225   \@@cref@getprefix{\@@cref@getprefix[][][]}}
226 \def\@@cref@getprefix[#1][#2][#3]#4\@nil#5{\def#5{#3}}
227 \def\cref@constructprefix#1#2{%
228   \cref@stack@init{\@tmpstack}%
229   \edef\@tmpa{\noexpand{#1\noexpand}}%
230   \expandafter\def\expandafter\@tmpa\expandafter{\@tmpa{#2}}%
231   \expandafter\@cref@constructprefix\@tmpa%
232   \cref@stack@to@list{\@tmpstack}{\@tmpa}%
233   \expandafter\def\expandafter#2\expandafter{\@tmpa}}
234 \def\@cref@constructprefix#1#2{%
235   \cref@resetby{#1}{#2}%
236   \ifx#2\relax%
237   \else%
238     \edef\@tmpa{\the\csname c@#2\endcsname}%
239     \expandafter\cref@stack@push\expandafter{\@tmpa}{\@tmpstack}%
240     \edef\@tmpa{{#2}}%
241     \expandafter\expandafter\expandafter\@cref@constructprefix%
242       \expandafter\@tmpa\expandafter{\expandafter#2\expandafter}%
243   \fi}
244 \def\cref@append@toks#1#2{\toks0={#2}%
245   \edef\act{\noexpand#1={\the#1\the\toks0}}%
246   \act}%
247 \def\cref@stack@init#1{\def#1{\@nil}}
248 \def\cref@stack@top#1{\expandafter\@cref@stack@top#1}
249 \def\@cref@stack@top#1,#2\@nil{#1}
250 \def\cref@stack@pop#1{\expandafter\@cref@stack@pop#1#1}
251 \def\@cref@stack@pop#1,#2\@nil#3{\def#3{#2\@nil}}
252 \def\cref@stack@push#1#2{%
253   \expandafter\@cref@stack@push\expandafter{#2}{#1}{#2}}
254 \def\@cref@stack@push#1#2#3{\def#3{#2,#1}}
255 \def\cref@stack@pull#1#2{\expandafter\@cref@stack@pull#2{#1}{#2}}
256 \def\@cref@stack@pull#1\@nil#2#3{\def#3{#1#2,\@nil}}
257 \def\cref@stack@to@list#1#2{%
258   \cref@isstackfull{#1}%
259   \if@cref@stackfull%
260     \expandafter\expandafter\expandafter\def%
261     \expandafter\expandafter\expandafter#2%
262     \expandafter\expandafter\expandafter{%
263       \expandafter\@cref@stack@to@list#1}%
264   \else%
265     \def#2{}%
266   \fi}
267 \def\@cref@stack@to@list#1,\@nil{#1}
268 \def\cref@stack@topandbottom#1#2#3{%
269   \def#2{}%
270   \def#3{}%
271   \cref@isstackfull{#1}%
272   \if@cref@stackfull%
273     \edef#2{\cref@stack@top{#1}}%
274     \cref@stack@pop{#1}%
275     \cref@isstackfull{#1}%
276     \@whilesw\if@cref@stackfull\fi{%
277       \edef#3{\cref@stack@top{#1}}%
278       \cref@stack@pop{#1}%
279       \cref@isstackfull{#1}}%
280   \fi}
281 \def\cref@stack@add#1#2{%
282   \begingroup%
283     \def\@arg1{#1}%
284     \let\@tmpstack#2%
285     \newif\if@notthere%
286     \@nottheretrue%
287     \cref@isstackfull{\@tmpstack}%
288     \@whilesw\if@cref@stackfull\fi{%
289       \edef\@tmpb{\cref@stack@top{\@tmpstack}}%
290       \def\@tmpa{#1}%
291       \ifx\@tmpa\@tmpb%
292         \@cref@stackfullfalse%
293         \@nottherefalse%
294       \else%
295         \cref@stack@pop{\@tmpstack}%
296         \cref@isstackfull{\@tmpstack}%
297       \fi}%
298   \expandafter\endgroup%
299   \if@notthere\cref@stack@push{#1}{#2}\fi}
300 \newif\if@cref@stackempty
301 \newif\if@cref@stackfull
302 \def\cref@isstackempty#1{%
303   \def\@tmpa{\@nil}%
304   \ifx#1\@tmpa\@cref@stackemptytrue%
305   \else\@cref@stackemptyfalse\fi}
306 \def\cref@isstackfull#1{%
307   \def\@tmpa{\@nil}%
308   \ifx#1\@tmpa\@cref@stackfullfalse%
309   \else\@cref@stackfulltrue\fi}
310 \def\cref@stack@sort#1#2{%
311   \begingroup%
312   \cref@stack@init{\@sortstack}%
313   \edef\@element{\cref@stack@top{#1}}%
314   \expandafter\cref@stack@push\expandafter{\@element}{\@sortstack}%
315   \cref@stack@pop{#1}%
316   \cref@isstackfull{#1}%
317   \if@cref@stackfull%
318     \edef\@tmpa{\cref@stack@top{#1}}%
319     \@whilesw\ifx\@tmpa\@empty\fi{%
320       \cref@stack@pull{}{\@sortstack}%
321       \cref@stack@pop{#1}%
322       \cref@isstackempty{#1}%
323       \if@cref@stackempty%
324         \let\@tmpa\relax%
325       \else%
326         \edef\@tmpa{\cref@stack@top{#1}}%
327       \fi}%
328   \fi%
329   \cref@isstackfull{#1}%
330   \@whilesw\if@cref@stackfull\fi{%
331     \edef\@element{\cref@stack@top{#1}}%
332     \cref@stack@pop{#1}%
333     \def\@empties{}%
334     \cref@isstackfull{#1}%
335     \if@cref@stackfull%
336       \edef\@tmpa{\cref@stack@top{#1}}%
337       \@whilesw\ifx\@tmpa\@empty\fi{%
338         \edef\@empties{\@empties,}%
339         \cref@stack@pop{#1}%
340         \cref@isstackempty{#1}%
341         \if@cref@stackempty%
342           \let\@tmpa\relax%
343         \else%
344           \edef\@tmpa{\cref@stack@top{#1}}%
345         \fi}%
346     \fi%
347     \edef\@tmpa{{\expandafter\noexpand\@element}%
348       {\expandafter\noexpand\@empties}%
349       {\noexpand\@sortstack}{\noexpand#2}}%
350     \expandafter\cref@stack@insert\@tmpa%
351     \cref@isstackfull{#1}}%
352   \expandafter\endgroup\expandafter%
353   \def\expandafter#1\expandafter{\@sortstack}}
354 \def\cref@stack@insert#1#2#3#4{%
355   \let\@cmp#4%
356   \@cref@stack@insert{}{#1}{#2}{#3}%
357   \cref@stack@pop{#3}}
358 \def\@cref@stack@insert#1#2#3#4{%
359   \let\@iterate\relax%
360   \cref@isstackempty{#4}%
361   \if@cref@stackempty%
362     \cref@stack@push{#1,#2#3}{#4}%
363   \else%
364     \edef\@tmpa{\cref@stack@top{#4}}%
365     \expandafter\@cmp\expandafter{\@tmpa}{#2}{\@result}%
366     \ifnum\@result=2\relax%
367       \cref@stack@push{#1,#2#3}{#4}%
368     \else%
369       \cref@stack@pop{#4}%
370       \edef\@tmpa{{\noexpand#1,\@tmpa}{\noexpand#2}%
371         {\noexpand#3}{\noexpand#4}}%
372       \expandafter\def\expandafter\@iterate\expandafter%
373         {\expandafter\@cref@stack@insert\@tmpa}%
374     \fi%
375   \fi%
376   \@iterate}
377 \def\cref@counter@first#1#2\@nil{#1}
378 \def\cref@counter@rest#1#2\@nil{#2}
379 \def\cref@countercmp#1#2#3{%
380   \begingroup%
381   \def\@tmpa{#1}%
382   \ifx\@tmpa\@empty%
383     \def\@result{1}%
384   \else%
385     \def\@tmpa{#2}%
386     \ifx\@tmpa\@empty%
387       \def\@result{2}%
388     \else%
389       \expandafter\ifx\csname r@#1\endcsname\relax%
390         \def\@result{2}%
391       \else%
392         \expandafter\ifx\csname r@#2\endcsname\relax%
393           \def\@result{1}%
394         \else%
395           \cref@getcounter{#1}{\@countera}%
396           \cref@getprefix{#1}{\@prefixa}%
397           \cref@getcounter{#2}{\@counterb}%
398           \cref@getprefix{#2}{\@prefixb}%
399           \cref@stack@init{\@countstacka}%
400           \expandafter\cref@stack@push\expandafter%
401             {\@countera}{\@countstacka}%
402           \ifx\@prefixa\@empty%
403           \else%
404             \expandafter\cref@stack@push\expandafter%
405               {\@prefixa}{\@countstacka}%
406           \fi%
407           \cref@stack@init{\@countstackb}%
408           \expandafter\cref@stack@push\expandafter%
409             {\@counterb}{\@countstackb}%
410             \ifx\@prefixb\@empty%
411             \else%
412               \expandafter\cref@stack@push\expandafter%
413                 {\@prefixb}{\@countstackb}%
414             \fi%
415           \@cref@countercmp%
416         \fi%
417       \fi%
418     \fi%
419   \fi%
420   \expandafter\endgroup\expandafter%
421   \chardef\expandafter#3\expandafter=\@result\relax}
422 \def\@cref@countercmp{%
423   \let\@iterate\relax%
424   \cref@isstackempty{\@countstacka}%
425   \if@cref@stackempty%
426     \cref@isstackempty{\@countstackb}%
427     \if@cref@stackempty%
428       \def\@result{0}%
429     \else%
430       \def\@result{1}%
431     \fi%
432   \else%
433     \cref@isstackempty{\@countstackb}%
434     \if@cref@stackempty%
435       \def\@result{2}%
436     \else%
437       \edef\@tmpa{\cref@stack@top{\@countstacka}}%
438       \cref@stack@pop{\@countstacka}%
439       \edef\@tmpb{\cref@stack@top{\@countstackb}}%
440       \cref@stack@pop{\@countstackb}%
441       \ifnum\@tmpa<\@tmpb\relax%
442         \def\@result{1}%
443       \else%
444         \ifnum\@tmpa>\@tmpb\relax%
445           \def\@result{2}%
446         \else%
447           \def\@iterate{\@cref@countercmp}%
448         \fi%
449       \fi%
450     \fi%
451   \fi%
452   \@iterate}
453 \newif\if@cref@inresetlist
454 \def\cref@isinresetlist#1#2{%
455   \begingroup%
456     \def\@counter{#1}%
457     \def\@elt##1{##1,}%
458     \expandafter\ifx\csname cl@#2\endcsname\relax%
459       \def\cref@resetstack{,\@nil}%
460     \else%
461       \edef\cref@resetstack{\csname cl@#2\endcsname\noexpand\@nil}%
462     \fi%
463     \let\@nextcounter\relax%
464     \cref@isstackfull{\cref@resetstack}%
465     \@whilesw\if@cref@stackfull\fi{%
466       \edef\@nextcounter{\cref@stack@top{\cref@resetstack}}%
467       \ifx\@nextcounter\@counter%
468         \@cref@stackfullfalse%
469       \else%
470         \let\@nextcounter\relax%
471         \cref@stack@pop{\cref@resetstack}%
472         \cref@isstackfull{\cref@resetstack}%
473       \fi}%
474     \ifx\@nextcounter\relax%
475       \def\@next{\@cref@inresetlistfalse}%
476     \else%
477       \def\@next{\@cref@inresetlisttrue}%
478     \fi%
479   \expandafter%
480   \endgroup%
481   \@next}
482 \def\cref@resetby#1#2{%
483   \let#2\relax%
484   \def\@tmpa{#1}%
485   \def\@tmpb{subfigure}%
486   \ifx\@tmpa\@tmpb%
487     \cref@isinresetlist{#1}{figure}%
488     \if@cref@inresetlist%
489       \def#2{figure}%
490     \fi%
491   \fi%
492   \def\@tmpa{#1}%
493   \def\@tmpb{subtable}%
494   \ifx\@tmpa\@tmpb%
495     \cref@isinresetlist{#1}{table}%
496     \if@cref@inresetlist%
497       \def#2{table}%
498     \fi%
499   \fi%
500   \@ifundefined{cl@parentequation}{}{%
501     \def\@tmpa{#1}%
502     \def\@tmpb{equation}%
503     \ifx\@tmpa\@tmpb%
504       \cref@isinresetlist{#1}{parentequation}%
505       \if@cref@inresetlist%
506         \expandafter\ifnum\c@parentequation=0\else%
507           \def#2{parentequation}%
508         \fi%
509       \fi%
510     \fi}%
511   \def\@tmpa{#1}%
512   \def\@tmpb{enumii}%
513   \ifx\@tmpa\@tmpb%
514     \def#2{enum}%
515   \fi%
516   \def\@tmpb{enumiii}%
517   \ifx\@tmpa\@tmpb%
518     \def#2{enum}%
519   \fi%
520   \def\@tmpb{enumiv}%
521   \ifx\@tmpa\@tmpb%
522     \def#2{enum}%
523   \fi%
524   \def\@tmpb{enumv}%
525   \ifx\@tmpa\@tmpb%
526     \def#2{enum}%
527   \fi%
528   \def\@tmpb{enum}%
529   \ifx#2\@tmpb%
530     \cref@isinresetlist{#1}{enumiv}%
531     \if@cref@inresetlist%
532       \def#2{enumiv}%
533     \else%
534       \cref@isinresetlist{#1}{enumiii}%
535       \if@cref@inresetlist%
536         \def#2{enumiii}%
537       \else%
538         \cref@isinresetlist{#1}{enumii}%
539         \if@cref@inresetlist%
540           \def#2{enumii}%
541         \else%
542           \cref@isinresetlist{#1}{enumi}%
543           \if@cref@inresetlist%
544             \def#2{enumi}%
545           \else%
546            \cref@isinresetlist{#1}{part}%
547             \if@cref@inresetlist%
548               \def#2{part}%
549             \else%
550               \let#2\relax%
551             \fi%
552           \fi%
553         \fi%
554       \fi%
555     \fi%
556   \fi%
557   \ifx#2\relax%
558     \cref@isinresetlist{#1}{table}%
559     \if@cref@inresetlist%
560       \def#2{table}%
561     \else%
562       \cref@isinresetlist{#1}{subsubsection}%
563       \if@cref@inresetlist%
564         \def#2{subsubsection}%
565       \else%
566         \cref@isinresetlist{#1}{subsection}%
567         \if@cref@inresetlist%
568           \def#2{subsection}%
569         \else%
570           \cref@isinresetlist{#1}{section}%
571           \if@cref@inresetlist%
572             \def#2{section}%
573           \else%
574             \cref@isinresetlist{#1}{chapter}%
575             \if@cref@inresetlist%
576               \def#2{chapter}%
577             \else%
578              \cref@isinresetlist{#1}{part}%
579               \if@cref@inresetlist%
580                 \def#2{part}%
581               \else%
582                 \let#2\relax%
583               \fi%
584             \fi%
585           \fi%
586         \fi%
587       \fi%
588     \fi%
589   \fi}
590 \newif\if@cref@refconsecutive%
591 \def\cref@isrefconsecutive#1#2{%
592   \begingroup%
593     \countdef\refa@counter=0%
594     \countdef\refb@counter=1%
595     \cref@getcounter{#1}{\@result}%
596     \refa@counter=\@result%
597     \cref@getcounter{#2}{\@result}%
598     \refb@counter=\@result%
599     \cref@getprefix{#1}{\refa@prefix}%
600     \cref@getprefix{#2}{\refb@prefix}%
601     \def\@after{\@cref@refconsecutivefalse}%
602     \ifx\refa@prefix\refb@prefix%
603       \ifnum\refa@counter=\refb@counter\relax%
604         \def\@after{\@cref@refconsecutivetrue}%
605       \else%
606         \advance\refa@counter 1\relax%
607         \ifnum\refa@counter=\refb@counter\relax%
608           \def\@after{\@cref@refconsecutivetrue}%
609         \fi%
610       \fi%
611     \fi%
612   \expandafter\endgroup\@after}
613 \def\cref@processgroup#1#2{%
614   \edef\@nextref{\cref@stack@top{#1}}%
615   \expandafter\ifx\csname r@\@nextref\endcsname\relax%
616     \def\@grouptype{\@undefined}%
617     \def\@groupformat{\@undefined}%
618   \else%
619     \expandafter\cref@gettype\expandafter{\@nextref}{\@grouptype}%
620     \expandafter\expandafter\expandafter\def%
621       \expandafter\expandafter\expandafter\@groupformat%
622       \expandafter\expandafter\expandafter{%
623         \csname cref@\@grouptype @format\endcsname%
624         {\@dummya}{\@dummyb}{\@dummyc}}%
625   \fi%
626   \let\@nexttype\@grouptype%
627   \let\@nextformat\@groupformat%
628   \@whilesw\ifx\@nextformat\@groupformat\fi{%
629     \expandafter\cref@stack@pull\expandafter{\@nextref}{#2}%
630     \cref@stack@pop{#1}%
631     \cref@isstackempty{#1}%
632     \if@cref@stackempty%
633       \let\@nexttype\relax%
634       \let\@nextformat\relax%
635     \else%
636       \edef\@nextref{\cref@stack@top{#1}}%
637       \ifx\@nextref\@empty%
638         \let\@nexttype\@grouptype%
639         \let\@nextforamt\@groupformat%
640       \else%
641         \expandafter\ifx\csname r@\@nextref\endcsname\relax%
642           \def\@nexttype{\@undefined}%
643           \def\@nextformat{\@undefined}%
644         \else%
645           \expandafter\cref@gettype\expandafter%
646             {\@nextref}{\@nexttype}%
647           \def\@tmpa{\@undefined}%
648           \ifx\@nexttype\@tmpa%
649             \def\@nextformat{\@undefined}%
650           \else%
651             \expandafter\expandafter\expandafter\def%
652               \expandafter\expandafter\expandafter\@nextformat%
653               \expandafter\expandafter\expandafter{%
654                 \csname cref@\@nexttype @format\endcsname%
655                 {\@dummya}{\@dummyb}{\@dummyc}}%
656           \fi%
657         \fi%
658       \fi%
659     \fi}%
660 }
661 \def\cref@processgroupall#1#2{%
662   \cref@stack@init{\@tmpstack}%
663   \edef\@nextref{\cref@stack@top{#1}}%
664   \expandafter\ifx\csname r@\@nextref\endcsname\relax%
665     \def\@grouptype{\@undefined}%
666     \def\@groupformat{\@undefined}%
667   \else%
668     \expandafter\cref@gettype\expandafter{\@nextref}{\@grouptype}%
669     \expandafter\expandafter\expandafter\def%
670       \expandafter\expandafter\expandafter\@groupformat%
671       \expandafter\expandafter\expandafter{%
672         \csname cref@\@grouptype @format\endcsname%
673         {\@dummya}{\@dummyb}{\@dummyc}}%
674   \fi%
675   \let\@lasttype\@grouptype%
676   \let\@lastformat\@groupformat%
677   \cref@isstackfull{#1}%
678   \@whilesw\if@cref@stackfull\fi{%
679     \edef\@nextref{\cref@stack@top{#1}}%
680     \ifx\@nextref\@empty%
681       \ifx\@lastformat\@groupformat%
682         \let\@nexttype\@grouptype%
683         \let\@nextformat\@groupformat%
684       \else%
685         \let\@nexttype\relax%
686         \let\@nextformat\relax%
687       \fi%
688     \else%
689       \expandafter\ifx\csname r@\@nextref\endcsname\relax%
690         \def\@nexttype{\@undefined}%
691         \def\@nextformat{\@undefined}%
692       \else%
693         \expandafter\cref@gettype\expandafter%
694           {\@nextref}{\@nexttype}%
695         \def\@tmpa{\@undefined}%
696         \ifx\@nexttype\@tmpa%
697           \def\@nextformat{\@undefined}%
698         \else%
699           \expandafter\expandafter\expandafter\def%
700             \expandafter\expandafter\expandafter\@nextformat%
701             \expandafter\expandafter\expandafter{%
702               \csname cref@\@nexttype @format\endcsname%
703               {\@dummya}{\@dummyb}{\@dummyc}}%
704         \fi%
705       \fi%
706     \fi%
707     \ifx\@nextformat\@groupformat%
708       \expandafter\cref@stack@pull\expandafter{\@nextref}{#2}%
709     \else%
710       \expandafter\cref@stack@pull\expandafter{\@nextref}{\@tmpstack}%
711     \fi%
712     \cref@stack@pop{#1}%
713     \let\@lasttype\@nexttype%
714     \let\@lastformat\@nextformat%
715     \cref@isstackfull{#1}}%
716   \let#1\@tmpstack}
717 \def\cref@processconsecutive#1#2#3#4{%
718   #4=0%
719   \edef\@nextref{\cref@stack@top{#1}}%
720   \cref@stack@pop{#1}%
721   \cref@isstackempty{#1}%
722   \if@cref@stackempty%
723     \edef#2{\@nextref}%
724     \let#3\relax%
725     #4=1\relax%
726   \else%
727     \edef#2{\@nextref}%
728     \let#3\relax%
729     \edef\@nextref{\cref@stack@top{#1}}%
730     #4=1\relax%
731     \expandafter\ifx\csname r@#2\endcsname\relax%
732       \@cref@refconsecutivefalse%
733     \else%
734       \ifx\@nextref\@empty%
735         \@cref@refconsecutivefalse%
736         \@whilesw\ifx\@nextref\@empty\fi{%
737           \cref@stack@pop{#1}%
738           \cref@isstackempty{#1}%
739           \if@cref@stackempty%
740             \let\@nextref\relax%
741           \else%
742             \edef\@nextref{\cref@stack@top{#1}}%
743           \fi}%
744       \else%
745         \expandafter\ifx\csname r@\@nextref\endcsname\relax%
746           \@cref@refconsecutivefalse%
747         \else%
748           \edef\@tmpa{{#2}{\@nextref}}%
749           \expandafter\cref@isrefconsecutive\@tmpa%
750         \fi%
751       \fi%
752     \fi%
753     \@whilesw\if@cref@refconsecutive\fi{%
754       \advance#4 1%
755       \let#3\@nextref%
756       \cref@stack@pop{#1}%
757       \cref@isstackempty{#1}%
758       \if@cref@stackempty%
759         \@cref@refconsecutivefalse%
760       \else%
761         \edef\@nextref{\cref@stack@top{#1}}%
762         \ifx\@nextref\@empty%
763           \@cref@refconsecutivefalse%
764           \@whilesw\ifx\@nextref\@empty\fi{%
765             \cref@stack@pop{#1}%
766             \cref@isstackempty{#1}%
767             \if@cref@stackempty%
768               \let\@nextref\relax%
769             \else%
770               \edef\@nextref{\cref@stack@top{#1}}%
771             \fi}%
772         \else%
773           \expandafter\ifx\csname r@\@nextref\endcsname\relax%
774             \@cref@refconsecutivefalse%
775           \else%
776             \edef\@tmpa{{#3}{\@nextref}}%
777             \expandafter\cref@isrefconsecutive\@tmpa%
778           \fi%
779         \fi%
780       \fi}%
781   \fi}
782 \DeclareRobustCommand{\cref}[1]{\@cref{cref}{#1}}
783 \DeclareRobustCommand{\Cref}[1]{\@cref{Cref}{#1}}
784 \DeclareRobustCommand{\crefrange}[2]{\@setcrefrange{#1}{#2}{cref}{}}
785 \DeclareRobustCommand{\Crefrange}[2]{\@setcrefrange{#1}{#2}{Cref}{}}
786 \@ifpackageloaded{hyperref}{\newif\if@crefstarred}{%
787   \@ifpackageloaded{varioref}{\newif\if@crefstarred}{}}
788 \def\@cref#1#2{%
789   \leavevmode%
790   \begingroup%
791   \countdef\count@consecutive=0%
792   \countdef\count@group=1%
793   \count@group=1%
794   \def\cref@variant{#1}%
795   \newif\if@secondref%
796   \cref@stack@init{\@refstack}%
797   \edef\@tmpa{#2}%
798   \expandafter\cref@stack@push\expandafter{\@tmpa}{\@refstack}%
799   \cref@isstackfull{\@refstack}%
800   \@whilesw\if@cref@stackfull\fi{%
801     \cref@stack@init{\@refsubstack}%
802     \if@cref@sort%
803       \cref@processgroupall{\@refstack}{\@refsubstack}%
804       \cref@stack@sort{\@refsubstack}{\cref@countercmp}%
805     \else%
806       \cref@processgroup{\@refstack}{\@refsubstack}%
807     \fi%
808     \ifnum\count@group=1\relax%
809       \advance\count@group 1%
810     \else%
811       \cref@isstackfull{\@refstack}%
812       \if@cref@stackfull%
813         \@setcref@middlegroupconjunction%
814       \else%
815         \ifnum\count@group=2\relax%
816           \@setcref@pairgroupconjunction%
817         \else%
818           \@setcref@lastgroupconjunction%
819         \fi%
820       \fi%
821       \advance\count@group 1%
822       \def\cref@variant{cref}%
823     \fi%
824     \if@cref@compress%
825       \cref@processconsecutive%
826         {\@refsubstack}{\@beginref}{\@endref}{\count@consecutive}%
827     \else%
828       \edef\@beginref{\cref@stack@top{\@refsubstack}}%
829       \cref@stack@pop{\@refsubstack}%
830       \@whilesw\ifx\@beginref\@empty\fi{%
831         \cref@stack@pop{\@refsubstack}%
832         \cref@isstackempty{\@refsubstack}%
833         \if@cref@stackempty%
834           \let\@beginref\relax%
835         \else%
836           \edef\@beginref{\cref@stack@top{\@refsubstack}}%
837         \fi}%
838       \let\@endref\relax%
839       \count@consecutive=1\relax%
840     \fi%
841     \ifnum\count@consecutive=1\relax%
842       \cref@isstackfull{\@refsubstack}%
843       \if@cref@stackfull%
844         \expandafter\@setcref%
845           \expandafter{\@beginref}{\cref@variant}{@first}%
846       \else%
847         \expandafter\@setcref%
848           \expandafter{\@beginref}{\cref@variant}{}%
849       \fi%
850     \else%
851       \ifnum\count@consecutive=2\relax%
852         \expandafter\@setcref%
853           \expandafter{\@beginref}{\cref@variant}{@first}%
854         \expandafter\cref@stack@push\expandafter%
855           {\@endref,}{\@refsubstack}%
856       \else%
857         \edef\@tmpa{{\@beginref}{\@endref}}%
858         \if@cref@stackempty%
859           \expandafter\@setcrefrange\@tmpa{\cref@variant}{}%
860         \else%
861           \expandafter\@setcrefrange\@tmpa{\cref@variant}{@first}%
862         \fi%
863       \fi%
864     \fi%
865     \@secondreftrue%
866     \cref@isstackfull{\@refsubstack}%
867     \@whilesw\if@cref@stackfull\fi{%
868       \if@cref@compress%
869         \cref@processconsecutive%
870           {\@refsubstack}{\@beginref}{\@endref}{\count@consecutive}%
871       \else%
872         \edef\@beginref{\cref@stack@top{\@refsubstack}}%
873         \cref@stack@pop{\@refsubstack}%
874         \@whilesw\ifx\@beginref\@empty\fi{%
875           \cref@stack@pop{\@refsubstack}%
876           \cref@isstackempty{\@refsubstack}%
877           \if@cref@stackempty%
878             \let\@beginref\relax%
879           \else%
880             \edef\@beginref{\cref@stack@top{\@refsubstack}}%
881           \fi}%
882         \let\@endref\relax%
883         \count@consecutive=1\relax%
884       \fi%
885       \cref@isstackempty{\@refsubstack}%
886       \if@cref@stackempty%
887         \if@secondref%
888           \def\@pos{@second}%
889         \else%
890           \def\@pos{@last}%
891         \fi%
892       \else%
893         \def\@pos{@middle}%
894       \fi%
895       \ifnum\count@consecutive=1\relax%
896         \edef\@tmpa{{\@beginref}{cref}{\@pos}}%
897         \expandafter\@setcref\@tmpa%
898       \else%
899         \ifnum\count@consecutive=2\relax%
900           \expandafter\@setcref\expandafter%
901             {\@beginref}{cref}{@middle}%
902           \expandafter\cref@stack@push\expandafter%
903             {\@endref}{\@refsubstack}%
904         \else%
905           \edef\@tmpa{{\@beginref}{\@endref}{cref}{\@pos}}%
906           \expandafter\@setcrefrange\@tmpa%
907         \fi%
908       \fi%
909       \@secondreffalse%
910       \cref@isstackfull{\@refsubstack}%
911     }% end loop over reference substack
912     \cref@isstackfull{\@refstack}%
913   }% end loop over main reference stack
914   \endgroup}
915 \def\@setcref#1#2#3{%
916   \expandafter\ifx\csname r@#1\endcsname\relax%
917     \protect\G@refundefinedtrue%
918     \nfss@text{\reset@font\bfseries ??}%
919     \@latex@warning{Reference `#1' on page \thepage \space undefined}%
920   \else%
921     \cref@gettype{#1}{\@temptype}%  puts label type in \@temptype
922     \cref@getlabel{#1}{\@templabel}%  puts label in \@templabel
923     \expandafter\ifx\csname #2@\@temptype @format#3\endcsname\relax%
924       \protect\G@refundefinedtrue%
925       \nfss@text{\reset@font\bfseries ??}~\@templabel%
926       \@latex@warning{\string\Cref \space reference format for label
927         type `\@temptype' undefined}%
928     \else%
929       \expandafter\@@setcref\expandafter%
930         {\csname #2@\@temptype @format#3\endcsname}{#1}%
931     \fi%
932   \fi}
933 \def\@@setcref#1#2{\cref@getlabel{#2}{\@templabel}#1{\@templabel}{}{}}
934 \def\@setcrefrange#1#2#3#4{%
935   \begingroup%
936     \expandafter\ifx\csname r@#1\endcsname\relax%
937       \protect\G@refundefinedtrue%
938       \@latex@warning{Reference `#1' on page \thepage \space%
939         undefined}%
940       \expandafter\ifx\csname r@#2\endcsname\relax%
941         \nfss@text{\reset@font\bfseries ??}--%
942         \nfss@text{\reset@font\bfseries ??}%
943         \@latex@warning{Reference `#2' on page \thepage \space%
944           undefined}%
945       \else%
946         \cref@getlabel{#2}{\@labelb}%
947         \nfss@text{\reset@font\bfseries ??}--\@labelb%
948       \fi%
949     \else%
950       \expandafter\ifx\csname r@#2\endcsname\relax%
951         \protect\G@refundefinedtrue%
952         \cref@getlabel{#1}{\@labela}%
953         \@labela--\nfss@text{\reset@font\bfseries ??}%
954         \@latex@warning{Reference `#2' on page \thepage %
955           \space undefined}%
956       \else%
957         \cref@gettype{#1}{\@typea}%
958         \cref@gettype{#2}{\@typeb}%
959         \cref@getlabel{#1}{\@labela}%
960         \cref@getlabel{#2}{\@labelb}%
961         \edef\@formata{\expandafter\noexpand%
962           \csname #3range@\@typea @format#4\endcsname}%
963         \edef\@formatb{\expandafter\noexpand%
964           \csname #3range@\@typeb @format#4\endcsname}%
965         \expandafter\ifx\@formata\relax%
966           \protect\G@refundefinedtrue%
967           \nfss@text{\reset@font\bfseries ??}~\@labela--\@labelb%
968           \@latex@warning{#3\space reference range format for label
969             type `\@typea' undefined}%
970         \else%
971           \ifx\formata\formatb%
972             \expandafter\@@setcrefrange\expandafter{\@formata}{#1}{#2}%
973           \else%
974             \protect\G@refundefinedtrue%
975             \nfss@text{\reset@font\bfseries ??}~\@labela--\@labelb%
976             \@latex@warning{Types inconsistent in reference range for
977               references `#1' and `#2' on page \thepage}%
978           \fi%
979         \fi%
980       \fi%
981     \fi%
982   \endgroup}
983 \def\@@setcrefrange#1#2#3{%
984   \cref@getlabel{#2}{\@labela}%
985   \cref@getlabel{#3}{\@labelb}%
986   #1{\@labela}{\@labelb}{}{}{}{}}
987 \def\@setcref@pairgroupconjunction{\crefpairgroupconjunction}
988 \def\@setcref@middlegroupconjunction{\crefmiddlegroupconjunction}
989 \def\@setcref@lastgroupconjunction{\creflastgroupconjunction}
990 \cref@stack@init{\cref@label@types}
991 \newcommand{\crefdefaultlabelformat}[1]{%
992   \def\cref@default@label##1##2##3{#1}}
993 \newcommand{\crefname}[3]{%
994   \@crefname{cref}{#1}{#2}{#3}{}}
995 \newcommand{\Crefname}[3]{%
996   \@crefname{Cref}{#1}{#2}{#3}{}}
997 \newcommand{\creflabelformat}[2]{%
998   \expandafter\def\csname cref@#1@label\endcsname##1##2##3{#2}%
999   \cref@stack@add{#1}{\cref@label@types}}
1000 \newcommand{\crefrangelabelformat}[2]{%
1001   \expandafter\def\csname cref@#1@rangelabel\endcsname%
1002     ##1##2##3##4##5##6{#2}%
1003   \cref@stack@add{#1}{\cref@label@types}}
1004 \newcommand{\crefname@preamble}[3]{%
1005   \@crefname{cref}{#1}{#2}{#3}{@preamble}}
1006 \newcommand{\Crefname@preamble}[3]{%
1007   \@crefname{Cref}{#1}{#2}{#3}{@preamble}}
1008 \def\@crefname#1#2#3#4#5{%
1009   \begingroup%
1010     \expandafter\gdef\csname #1@#2@name#5\endcsname{#3}%
1011     \expandafter\gdef\csname #1@#2@name@plural#5\endcsname{#4}%
1012     \def\@tmpa##1##2\@nil{%
1013       \if##1c%
1014         \def\@other{C##2}%
1015         \def\@changecase{\expandafter\MakeUppercase}%
1016       \else%
1017         \def\@other{c##2}%
1018         \if@cref@capitalise%
1019           \def\@changecase{}%
1020         \else%
1021           \def\@changecase{\MakeLowercase}%
1022         \fi%
1023       \fi}%
1024     \@tmpa#1\@nil%
1025     \@ifundefined{\@other @#2@name#5}{%
1026       \expandafter\expandafter\expandafter\def%
1027       \expandafter\expandafter\expandafter\@tmpa%
1028       \expandafter\expandafter\expandafter{%
1029         \csname#1@#2@name\endcsname}%
1030       \expandafter\expandafter\expandafter\def%
1031       \expandafter\expandafter\expandafter\@tmpb%
1032       \expandafter\expandafter\expandafter{%
1033         \csname#1@#2@name@plural\endcsname}%
1034       \expandafter\expandafter\expandafter\def%
1035       \expandafter\expandafter\expandafter\@tmpa%
1036       \expandafter\expandafter\expandafter{%
1037         \expandafter\@changecase\@tmpa}%
1038       \expandafter\expandafter\expandafter\def%
1039       \expandafter\expandafter\expandafter\@tmpb%
1040       \expandafter\expandafter\expandafter{%
1041         \expandafter\@changecase\@tmpb}%
1042       \toksdef\@toksa=0%
1043       \@toksa={%
1044         \expandafter\gdef\csname\@other @#2@name#5\endcsname}%
1045       \expandafter\the\expandafter\@toksa\expandafter{\@tmpa}%
1046       \@toksa={%
1047         \expandafter\gdef\csname\@other @#2@name@plural#5\endcsname}%
1048       \expandafter\the\expandafter\@toksa\expandafter{\@tmpb}%
1049     }{}%
1050   \endgroup%
1051   \cref@stack@add{#2}{\cref@label@types}}
1052 \def\@crefconstructcomponents#1{%
1053   \@ifundefined{cref@#1@label}{%
1054     \let\@tmplabel\cref@default@label%
1055   }{%
1056     \expandafter\let\expandafter\@tmplabel%
1057     \csname cref@#1@label\endcsname%
1058   }%
1059   \@ifundefined{cref@#1@rangelabel}{%
1060     \expandafter\def\expandafter\@tmpa\expandafter{%
1061       \@tmplabel{####1}{####3}{####4}}%
1062     \expandafter\def\expandafter\@tmpb\expandafter{%
1063       \@tmplabel{####2}{####5}{####6}}%
1064     \toksdef\@toksa=0%
1065     \@toksa={\def\@tmprangelabel##1##2##3##4##5##6}%
1066     \expandafter\expandafter\expandafter\the%
1067     \expandafter\expandafter\expandafter\@toksa%
1068     \expandafter\expandafter\expandafter{%
1069       \expandafter\expandafter\expandafter\crefrangepreconjunction%
1070       \expandafter\@tmpa\expandafter\crefrangeconjunction\@tmpb%
1071       \crefrangepostconjunction}%
1072   }{%
1073     \expandafter\let\expandafter\@tmprangelabel%
1074     \csname cref@#1@rangelabel\endcsname%
1075   }%
1076   \expandafter\def\expandafter\@tmplabel\expandafter{%
1077     \@tmplabel{########1}{########2}{########3}}%
1078   \expandafter\def\expandafter\@tmprangelabel\expandafter{%
1079     \@tmprangelabel{########1}{########2}{########3}%
1080     {########4}{########5}{########6}}%
1081   % \expandafter\expandafter\expandafter\def%
1082   % \expandafter\expandafter\expandafter\@tmpname%
1083   % \expandafter\expandafter\expandafter{%
1084   %   \csname cref@#1@name\endcsname}%
1085   \expandafter\def\expandafter\@tmpname\expandafter{%
1086     \csname cref@#1@name\endcsname}%
1087   % \expandafter\expandafter\expandafter\def%
1088   % \expandafter\expandafter\expandafter\@tmpName%
1089   % \expandafter\expandafter\expandafter{%
1090   %   \csname Cref@#1@name\endcsname}%
1091   \expandafter\def\expandafter\@tmpName\expandafter{%
1092     \csname Cref@#1@name\endcsname}%
1093   \expandafter\def\expandafter\@tmpnameplural\expandafter{%
1094     \csname cref@#1@name@plural\endcsname}%
1095   \expandafter\def\expandafter\@tmpNameplural\expandafter{%
1096     \csname Cref@#1@name@plural\endcsname}%
1097 }
1098 \def\@crefdefineformat#1{%
1099   \begingroup%
1100     \@crefconstructcomponents{#1}%
1101     \expandafter\expandafter\expandafter\def%
1102     \expandafter\expandafter\expandafter\@tmpfirst%
1103     \expandafter\expandafter\expandafter{%
1104       \expandafter\@tmpname\expandafter~\@tmplabel}%
1105     \expandafter\expandafter\expandafter\def%
1106     \expandafter\expandafter\expandafter\@tmpFirst%
1107     \expandafter\expandafter\expandafter{%
1108       \expandafter\@tmpName\expandafter~\@tmplabel}%
1109     \toksdef\@toksa=0%
1110     \@toksa={\crefformat{#1}}%
1111     \expandafter\the\expandafter\@toksa\expandafter{\@tmpfirst}%
1112     \@toksa={\Crefformat{#1}}%
1113     \expandafter\the\expandafter\@toksa\expandafter{\@tmpFirst}%
1114   \endgroup}
1115 \def\@crefrangedefineformat#1{%
1116   \begingroup%
1117     \@crefconstructcomponents{#1}%
1118     \expandafter\expandafter\expandafter\def%
1119     \expandafter\expandafter\expandafter\@tmpfirst%
1120     \expandafter\expandafter\expandafter{%
1121       \expandafter\@tmpnameplural\expandafter~\@tmprangelabel}%
1122     \expandafter\expandafter\expandafter\def%
1123     \expandafter\expandafter\expandafter\@tmpFirst%
1124     \expandafter\expandafter\expandafter{%
1125       \expandafter\@tmpNameplural\expandafter~\@tmprangelabel}%
1126     \toksdef\@toksa=0%
1127     \@toksa={\crefrangeformat{#1}}%
1128     \expandafter\the\expandafter\@toksa\expandafter{\@tmpfirst}%
1129     \@toksa={\Crefrangeformat{#1}}%
1130     \expandafter\the\expandafter\@toksa\expandafter{\@tmpFirst}%
1131   \endgroup}
1132 \def\@crefdefinemultiformat#1{%
1133   \begingroup%
1134     \@crefconstructcomponents{#1}%
1135     \expandafter\expandafter\expandafter\def%
1136     \expandafter\expandafter\expandafter\@tmpfirst%
1137     \expandafter\expandafter\expandafter{%
1138       \expandafter\@tmpnameplural\expandafter~\@tmplabel}%
1139     \expandafter\expandafter\expandafter\def%
1140     \expandafter\expandafter\expandafter\@tmpFirst%
1141     \expandafter\expandafter\expandafter{%
1142       \expandafter\@tmpNameplural\expandafter~\@tmplabel}%
1143     % \expandafter\expandafter\expandafter\def%
1144     % \expandafter\expandafter\expandafter\@tmpsecond%
1145     % \expandafter\expandafter\expandafter{%
1146     %   \expandafter\crefpairconjunction\@tmplabel}%
1147     \expandafter\def\expandafter\@tmpsecond\expandafter{%
1148       \expandafter\crefpairconjunction\@tmplabel}%
1149     % \expandafter\expandafter\expandafter\def%
1150     % \expandafter\expandafter\expandafter\@tmpmiddle%
1151     % \expandafter\expandafter\expandafter{%
1152     %   \expandafter\crefmiddleconjunction\@tmplabel}%
1153     \expandafter\def\expandafter\@tmpmiddle\expandafter{%
1154       \expandafter\crefmiddleconjunction\@tmplabel}%
1155     % \expandafter\expandafter\expandafter\def%
1156     % \expandafter\expandafter\expandafter\@tmplast%
1157     % \expandafter\expandafter\expandafter{%
1158     %   \expandafter\creflastconjunction\@tmplabel}%
1159     \expandafter\def\expandafter\@tmplast\expandafter{%
1160       \expandafter\creflastconjunction\@tmplabel}%
1161     \toksdef\@toksa=0%
1162     \toksdef\@toksb=1%
1163     \@toksb={}%
1164     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1165       \expandafter{\@tmpfirst}}%
1166     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1167       \expandafter{\@tmpsecond}}%
1168     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1169       \expandafter{\@tmpmiddle}}%
1170     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1171       \expandafter{\@tmplast}}%
1172     \@toksa={\crefmultiformat{#1}}%
1173     \expandafter\the\expandafter\@toksa\the\@toksb%
1174     \@toksb={}%
1175     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1176       \expandafter{\@tmpFirst}}%
1177     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1178       \expandafter{\@tmpsecond}}%
1179     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1180       \expandafter{\@tmpmiddle}}%
1181     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1182       \expandafter{\@tmplast}}%
1183     \@toksa={\Crefmultiformat{#1}}%
1184     \expandafter\the\expandafter\@toksa\the\@toksb%
1185   \endgroup}
1186 \def\@crefrangedefinemultiformat#1{%
1187   \begingroup%
1188     \@crefconstructcomponents{#1}%
1189     \expandafter\expandafter\expandafter\def%
1190     \expandafter\expandafter\expandafter\@tmpfirst%
1191     \expandafter\expandafter\expandafter{%
1192       \expandafter\@tmpnameplural\expandafter~\@tmprangelabel}%
1193     \expandafter\expandafter\expandafter\def%
1194     \expandafter\expandafter\expandafter\@tmpFirst%
1195     \expandafter\expandafter\expandafter{%
1196       \expandafter\@tmpNameplural\expandafter~\@tmprangelabel}%
1197     % \expandafter\expandafter\expandafter\def%
1198     % \expandafter\expandafter\expandafter\@tmpsecond%
1199     % \expandafter\expandafter\expandafter{%
1200     %   \expandafter\crefpairconjunction\@tmprangelabel}%
1201     \expandafter\def\expandafter\@tmpsecond\expandafter{%
1202       \expandafter\crefpairconjunction\@tmprangelabel}%
1203     % \expandafter\expandafter\expandafter\def%
1204     % \expandafter\expandafter\expandafter\@tmpmiddle%
1205     % \expandafter\expandafter\expandafter{%
1206     %   \expandafter\crefmiddleconjunction\@tmprangelabel}%
1207     \expandafter\def\expandafter\@tmpmiddle\expandafter{%
1208       \expandafter\crefmiddleconjunction\@tmprangelabel}%
1209     % \expandafter\expandafter\expandafter\def%
1210     % \expandafter\expandafter\expandafter\@tmplast%
1211     % \expandafter\expandafter\expandafter{%
1212     %   \expandafter\creflastconjunction\@tmprangelabel}%
1213     \expandafter\def\expandafter\@tmplast\expandafter{%
1214       \expandafter\creflastconjunction\@tmprangelabel}%
1215     \toksdef\@toksa=0%
1216     \toksdef\@toksb=1%
1217     \@toksb={}%
1218     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1219       \expandafter{\@tmpfirst}}%
1220     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1221       \expandafter{\@tmpsecond}}%
1222     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1223       \expandafter{\@tmpmiddle}}%
1224     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1225       \expandafter{\@tmplast}}%
1226     \@toksa={\crefrangemultiformat{#1}}%
1227     \expandafter\the\expandafter\@toksa\the\@toksb%
1228     \@toksb={}%
1229     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1230       \expandafter{\@tmpFirst}}%
1231     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1232       \expandafter{\@tmpsecond}}%
1233     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1234       \expandafter{\@tmpmiddle}}%
1235     \expandafter\cref@append@toks\expandafter\@toksb\expandafter{%
1236       \expandafter{\@tmplast}}%
1237     \@toksa={\Crefrangemultiformat{#1}}%
1238     \expandafter\the\expandafter\@toksa\the\@toksb%
1239   \endgroup}
1240 \def\@crefdefineallformats#1{%
1241   \@crefdefineformat{#1}%
1242   \@crefrangedefineformat{#1}%
1243   \@crefdefinemultiformat{#1}%
1244   \@crefrangedefinemultiformat{#1}}
1245 \newcommand{\crefformat}[2]{\@crefformat{cref}{#1}{#2}}
1246 \newcommand{\Crefformat}[2]{\@crefformat{Cref}{#1}{#2}}
1247 \newcommand{\crefrangeformat}[2]{\@crefrangeformat{crefrange}{#1}{#2}}
1248 \newcommand{\Crefrangeformat}[2]{\@crefrangeformat{Crefrange}{#1}{#2}}
1249 \newcommand{\crefmultiformat}[5]{%
1250   \@crefmultiformat{cref}{#1}{#2}{#3}{#4}{#5}}
1251 \newcommand{\Crefmultiformat}[5]{%
1252   \@crefmultiformat{Cref}{#1}{#2}{#3}{#4}{#5}}
1253 \newcommand{\crefrangemultiformat}[5]{%
1254   \@crefrangemultiformat{crefrange}{#1}{#2}{#3}{#4}{#5}}
1255 \newcommand{\Crefrangemultiformat}[5]{%
1256   \@crefrangemultiformat{Crefrange}{#1}{#2}{#3}{#4}{#5}}
1257 \def\@crefformat#1#2#3{%
1258   \begingroup%
1259     \expandafter\gdef\csname #1@#2@format\endcsname##1##2##3{#3}%
1260     \def\@tmpa##1##2\@nil{%
1261       \if##1c%
1262         \def\@other{C##2}%
1263         \def\@changecase{\expandafter\MakeUppercase}%
1264       \else%
1265         \def\@other{c##2}%
1266         \if@cref@capitalise%
1267           \def\@changecase{}%
1268         \else%
1269           \def\@changecase{\MakeLowercase}%
1270         \fi%
1271       \fi}%
1272     \@tmpa#1\@nil%
1273     \@ifundefined{\@other @#2@format}{%
1274       \toksdef\@toksa=0%
1275       \@toksa={\def\@tmpa##1##2##3}%
1276       \expandafter\expandafter\expandafter\the%
1277       \expandafter\expandafter\expandafter\@toksa%
1278       \expandafter\expandafter\expandafter{%
1279         \csname#1@#2@format\endcsname{##1}{##2}{##3}}%
1280       \expandafter\expandafter\expandafter\the%
1281       \expandafter\expandafter\expandafter\@toksa%
1282       \expandafter\expandafter\expandafter{%
1283         \expandafter\@changecase\@tmpa{##1}{##2}{##3}}%
1284       \@toksa={%
1285         \expandafter\gdef\csname\@other @#2@format\endcsname##1##2##3}%
1286       \expandafter\the\expandafter\@toksa\expandafter{%
1287         \@tmpa{##1}{##2}{##3}}%
1288     }{}%
1289   \endgroup}
1290 \def\@crefrangeformat#1#2#3{%
1291   \begingroup%
1292     \expandafter\gdef\csname #1@#2@format\endcsname%
1293       ##1##2##3##4##5##6{#3}%
1294     \def\@tmpa##1##2\@nil{%
1295       \if##1c%
1296         \def\@other{C##2}%
1297         \def\@changecase{\expandafter\MakeUppercase}%
1298       \else%
1299         \def\@other{c##2}%
1300         \if@cref@capitalise%
1301           \def\@changecase{}%
1302         \else%
1303           \def\@changecase{\MakeLowercase}%
1304         \fi%
1305       \fi}%
1306     \@tmpa#1\@nil%
1307     \@ifundefined{\@other @#2@format}{%
1308       \toksdef\@toksa=0%
1309       \@toksa={\def\@tmpa##1##2##3##4##5##6}%
1310       \expandafter\expandafter\expandafter\the%
1311       \expandafter\expandafter\expandafter\@toksa%
1312       \expandafter\expandafter\expandafter{%
1313         \csname#1@#2@format\endcsname{##1}{##2}{##3}{##4}{##5}{##6}}%
1314       \expandafter\expandafter\expandafter\the%
1315       \expandafter\expandafter\expandafter\@toksa%
1316       \expandafter\expandafter\expandafter{%
1317         \expandafter\@changecase\@tmpa{##1}{##2}{##3}{##4}{##5}{##6}}%
1318       \@toksa={\expandafter\gdef%
1319         \csname\@other @#2@format\endcsname##1##2##3##4##5##6}%
1320       \expandafter\the\expandafter\@toksa\expandafter{%
1321         \@tmpa{##1}{##2}{##3}{##4}{##5}{##6}}%
1322     }{}%
1323   \endgroup}
1324 \def\@crefmultiformat#1#2#3#4#5#6{%
1325   \begingroup%
1326     \expandafter\gdef\csname #1@#2@format@first\endcsname##1##2##3{#3}%
1327     \expandafter\gdef\csname #1@#2@format@second\endcsname##1##2##3{#4}%
1328     \expandafter\gdef\csname #1@#2@format@middle\endcsname##1##2##3{#5}%
1329     \expandafter\gdef\csname #1@#2@format@last\endcsname##1##2##3{#6}%
1330     \def\@tmpa##1##2\@nil{%
1331       \if##1c%
1332         \def\@other{C##2}%
1333         \def\@changecase{\expandafter\MakeUppercase}%
1334       \else%
1335         \def\@other{c##2}%
1336         \if@cref@capitalise%
1337           \def\@changecase{}%
1338         \else%
1339           \def\@changecase{\MakeLowercase}%
1340         \fi%
1341       \fi}%
1342     \@tmpa#1\@nil%
1343     \@ifundefined{\@other @#2@format@first}{%
1344       \toksdef\@toksa=0%
1345       \@toksa={\def\@tmpa##1##2##3}%
1346       \expandafter\expandafter\expandafter\the%
1347       \expandafter\expandafter\expandafter\@toksa%
1348       \expandafter\expandafter\expandafter{%
1349         \csname#1@#2@format@first\endcsname{##1}{##2}{##3}}%
1350       \expandafter\expandafter\expandafter\the%
1351       \expandafter\expandafter\expandafter\@toksa%
1352       \expandafter\expandafter\expandafter{%
1353         \expandafter\@changecase\@tmpa{##1}{##2}{##3}}%
1354       \@toksa={%
1355         \expandafter\gdef\csname\@other @#2@format@first\endcsname%
1356           ##1##2##3}%
1357       \expandafter\the\expandafter\@toksa\expandafter{%
1358         \@tmpa{##1}{##2}{##3}}%
1359     }{}%
1360     \@ifundefined{\@other @#2@format@second}{%
1361       \@toksa={%
1362         \expandafter\global\expandafter\let%
1363         \csname\@other @#2@format@second\endcsname}%
1364       \expandafter\the\expandafter\@toksa%
1365         \csname #1@#2@format@second\endcsname%
1366     }{}%
1367     \@ifundefined{\@other @#2@format@middle}{%
1368       \@toksa={%
1369         \expandafter\global\expandafter\let%
1370         \csname\@other @#2@format@middle\endcsname}%
1371       \expandafter\the\expandafter\@toksa%
1372         \csname #1@#2@format@middle\endcsname%
1373     }{}%
1374     \@ifundefined{\@other @#2@format@last}{%
1375       \@toksa={%
1376         \expandafter\global\expandafter\let%
1377         \csname\@other @#2@format@last\endcsname}%
1378       \expandafter\the\expandafter\@toksa%
1379         \csname #1@#2@format@last\endcsname%
1380     }{}%
1381   \endgroup}
1382 \def\@crefrangemultiformat#1#2#3#4#5#6{%
1383   \begingroup%
1384     \expandafter\gdef\csname #1@#2@format@first\endcsname%
1385       ##1##2##3##4##5##6{#3}%
1386     \expandafter\gdef\csname #1@#2@format@second\endcsname%
1387       ##1##2##3##4##5##6{#4}%
1388     \expandafter\gdef\csname #1@#2@format@middle\endcsname%
1389       ##1##2##3##4##5##6{#5}%
1390     \expandafter\gdef\csname #1@#2@format@last\endcsname%
1391       ##1##2##3##4##5##6{#6}%
1392     \def\@tmpa##1##2\@nil{%
1393       \if##1c%
1394         \def\@other{C##2}%
1395         \def\@changecase{\expandafter\MakeUppercase}%
1396       \else%
1397         \def\@other{c##2}%
1398         \if@cref@capitalise%
1399           \def\@changecase{}%
1400         \else%
1401           \def\@changecase{\MakeLowercase}%
1402         \fi%
1403       \fi}%
1404     \@tmpa#1\@nil%
1405     \@ifundefined{\@other @#2@format@first}{%
1406       \toksdef\@toksa=0%
1407       \@toksa={\def\@tmpa##1##2##3##4##5##6}%
1408       \expandafter\expandafter\expandafter\the%
1409       \expandafter\expandafter\expandafter\@toksa%
1410       \expandafter\expandafter\expandafter{%
1411         \csname#1@#2@format@first\endcsname%
1412           {##1}{##2}{##3}{##4}{##5}{##6}}%
1413       \expandafter\expandafter\expandafter\the%
1414       \expandafter\expandafter\expandafter\@toksa%
1415       \expandafter\expandafter\expandafter{%
1416         \expandafter\@changecase\@tmpa{##1}{##2}{##3}{##4}{##5}{##6}}%
1417       \@toksa={%
1418         \expandafter\gdef\csname\@other @#2@format@first\endcsname%
1419           ##1##2##3##4##5##6}%
1420       \expandafter\the\expandafter\@toksa\expandafter{%
1421         \@tmpa{##1}{##2}{##3}{##4}{##5}{##6}}%
1422     }{}%
1423     \@ifundefined{\@other @#2@format@second}{%
1424       \@toksa={%
1425         \expandafter\global\expandafter\let%
1426         \csname\@other @#2@format@second\endcsname}%
1427       \expandafter\the\expandafter\@toksa%
1428         \csname #1@#2@format@second\endcsname%
1429     }{}%
1430     \@ifundefined{\@other @#2@format@middle}{%
1431       \@toksa={%
1432         \expandafter\global\expandafter\let%
1433         \csname\@other @#2@format@middle\endcsname}%
1434       \expandafter\the\expandafter\@toksa%
1435         \csname #1@#2@format@middle\endcsname%
1436     }{}%
1437     \@ifundefined{\@other @#2@format@last}{%
1438       \@toksa={%
1439         \expandafter\global\expandafter\let%
1440         \csname\@other @#2@format@last\endcsname}%
1441       \expandafter\the\expandafter\@toksa%
1442         \csname #1@#2@format@last\endcsname%
1443     }{}%
1444   \endgroup}
1445 \@ifpackageloaded{hyperref}{%
1446   \PackageInfo{cleveref}{`hyperref' support loaded}
1447   \@ifpackagewith{hyperref}{backref}{%
1448     \PackageError{cleveref}{`cleveref' is currently incompatible with
1449       `hyperref's `backref' option}{Remove the `backref' option from
1450       `hyperref' if you want to use `cleveref'}}{}
1451   \def\cref@reflabel#1#2#3#4#5{\@result}
1452   \def\cref@hyperref#1{\expandafter\expandafter\expandafter%
1453     \@fourthoffive\csname r@#1\endcsname}
1454   \def\cref@getlabel#1#2{%
1455     \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
1456     \expandafter\expandafter\expandafter\def%
1457       \expandafter\expandafter\expandafter\@tmpa%
1458       \expandafter\expandafter\expandafter{%
1459         \expandafter\@firstoffive\@tmpa}%
1460     \expandafter\@cref@getlabel\@tmpa\@nil#2}
1461   \def\cref@gettype#1#2{%
1462     \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
1463     \expandafter\expandafter\expandafter\def%
1464       \expandafter\expandafter\expandafter\@tmpa%
1465       \expandafter\expandafter\expandafter{%
1466         \expandafter\@firstoffive\@tmpa}%
1467     \expandafter\@cref@gettype\@tmpa\@nil#2}
1468   \def\cref@getcounter#1#2{%
1469     \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
1470     \expandafter\expandafter\expandafter\def%
1471       \expandafter\expandafter\expandafter\@tmpa%
1472       \expandafter\expandafter\expandafter{%
1473         \expandafter\@firstoffive\@tmpa}%
1474     \expandafter\@cref@getcounter\@tmpa\@nil#2}
1475   \def\cref@getprefix#1#2{%
1476     \expandafter\let\expandafter\@tmpa\csname r@#1\endcsname%
1477     \expandafter\expandafter\expandafter\def%
1478       \expandafter\expandafter\expandafter\@tmpa%
1479       \expandafter\expandafter\expandafter{%
1480         \expandafter\@firstoffive\@tmpa}%
1481     \expandafter\@cref@getprefix\@tmpa\@nil#2}
1482   \def\H@refstepcounter#1{%
1483     \stepcounter{#1}%
1484     \cref@constructprefix{#1}{\@result}%
1485     \protected@edef\@currentlabel{%
1486       [#1][\arabic{#1}][\@result]%
1487       \csname p@#1\endcsname\csname the#1\endcsname}}
1488   \def\refstepcounter@noarg#1{\cref@old@refstepcounter{#1}}
1489   \def\refstepcounter@optarg[#1]#2{%
1490     \cref@old@refstepcounter{#2}%
1491     \expandafter\@cref@getlabel\@currentlabel\@nil{\@tmplabel}%
1492     \cref@constructprefix{#2}{\@tmpreset}%
1493     \protected@edef\@currentlabel{%
1494       [#1][\arabic{#2}][\@tmpreset]\@tmplabel}}
1495   \renewcommand\appendix{%
1496     \cref@old@appendix%
1497     \@ifundefined{chapter}{%
1498       \def\H@refstepcounter##1{%
1499         \stepcounter{##1}%
1500         \cref@constructprefix{##1}{\@result}%
1501         \ifx\@result\@empty%
1502           \def\@result{2147483647}%
1503         \else%
1504           \edef\@result{2147483647,\@result}%
1505         \fi%
1506         \def\@tmpa{##1}%
1507         \def\@tmpb{section}%
1508         \ifx\@tmpa\@tmpb%
1509           \protected@edef\@currentlabel{%
1510             [appendix][\arabic{##1}][\@result]%
1511             \csname p@##1\endcsname\csname the##1\endcsname}%
1512         \else%
1513           \def\@tmpa{##1}%
1514           \def\@tmpb{subsection}%
1515           \ifx\@tmpa\@tmpb%
1516             \protected@edef\@currentlabel{%
1517               [subappendix][\arabic{##1}][\@result]%
1518               \csname p@##1\endcsname\csname the##1\endcsname}%
1519           \else%
1520             \def\@tmpa{##1}%
1521             \def\@tmpb{subsubsection}%
1522             \ifx\@tmpa\@tmpb%
1523               \protected@edef\@currentlabel{%
1524                 [subsubappendix][\arabic{##1}][\@result]%
1525                 \csname p@##1\endcsname\csname the##1\endcsname}%
1526             \else%
1527               \protected@edef\@currentlabel{%
1528                 [##1][\arabic{##1}][\@result]%
1529                 \csname p@##1\endcsname\csname the##1\endcsname}%
1530             \fi%
1531           \fi%
1532         \fi}%
1533     }{%
1534       \def\H@refstepcounter##1{%
1535         \stepcounter{##1}%
1536         \cref@constructprefix{##1}{\@result}%
1537         \ifx\@result\@empty%
1538           \def\@result{2147483647}%
1539         \else%
1540           \edef\@result{2147483647,\@result}%
1541         \fi%
1542         \def\@tmpa{##1}%
1543         \def\@tmpb{chapter}%
1544         \ifx\@tmpa\@tmpb%
1545           \protected@edef\@currentlabel{%
1546             [appendix][\arabic{##1}][\@result]%
1547             \csname p@##1\endcsname\csname the##1\endcsname}%
1548         \else%
1549           \def\@tmpa{##1}%
1550           \def\@tmpb{section}%
1551           \ifx\@tmpa\@tmpb%
1552             \protected@edef\@currentlabel{%
1553               [subappendix][\arabic{##1}][\@result]%
1554               \csname p@##1\endcsname\csname the##1\endcsname}%
1555           \else%
1556             \def\@tmpa{##1}%
1557             \def\@tmpb{subsection}%
1558             \ifx\@tmpa\@tmpb%
1559               \protected@edef\@currentlabel{%
1560                 [subsubappendix][\arabic{##1}][\@result]%
1561                 \csname p@##1\endcsname\csname the##1\endcsname}%
1562             \else%
1563               \def\@tmpa{##1}%
1564               \def\@tmpb{subsubsection}%
1565               \ifx\@tmpa\@tmpb%
1566                 \protected@edef\@currentlabel{%
1567                   [subsubsubappendix][\arabic{##1}][\@result]%
1568                   \csname p@##1\endcsname\csname the##1\endcsname}%
1569               \else%
1570                 \protected@edef\@currentlabel{%
1571                   [##1][\arabic{##1}][\@result]%
1572                   \csname p@##1\endcsname\csname the##1\endcsname}%
1573               \fi%
1574             \fi%
1575           \fi%
1576         \fi}%
1577     }%
1578   }
1579   \DeclareRobustCommand{\cref}{%
1580     \@ifstar{\@crefstar{cref}}{\@crefnostar{cref}}}
1581   \DeclareRobustCommand{\Cref}{%
1582     \@ifstar{\@crefstar{Cref}}{\@crefnostar{Cref}}}
1583   \def\@crefnostar#1#2{\@cref{#1}{#2}}
1584   \def\@crefstar#1#2{%
1585     \@crefstarredtrue\@cref{#1}{#2}\@crefstarredfalse}
1586   \DeclareRobustCommand{\crefrange}{%
1587     \@ifstar{\@crefrangestar{cref}}{\@crefrangenostar{cref}}}
1588   \DeclareRobustCommand{\Crefrange}{%
1589     \@ifstar{\@crefrangestar{Cref}}{\@crefrangenostar{Cref}}}
1590   \def\@crefrangenostar#1#2#3{\@setcrefrange{#2}{#3}{#1}{}}
1591   \def\@crefrangestar#1#2#3{%
1592     \@crefstarredtrue\@setcrefrange{#2}{#3}{#1}{}\@crefstarredfalse}
1593   \def\@@setcref#1#2{%
1594     \cref@getlabel{#2}{\@tmplabel}%
1595     \if@crefstarred%
1596       #1{\@tmplabel}{}{}%
1597     \else%
1598       \edef\@tmplink{\cref@hyperref{#2}}%
1599       #1{\@tmplabel}{\hyper@linkstart{link}{\@tmplink}}{\hyper@linkend}%
1600     \fi}
1601   \def\@@setcrefrange#1#2#3{%
1602     \cref@getlabel{#2}{\@labela}%
1603     \cref@getlabel{#3}{\@labelb}%
1604     \if@crefstarred%
1605       #1{\@labela}{\@labelb}{}{}{}{}%
1606     \else%
1607       \edef\@linka{\cref@hyperref{#2}}%
1608       \edef\@linkb{\cref@hyperref{#3}}%
1609       #1{\@labela}{\@labelb}%
1610         {\hyper@linkstart{link}{\@linka}}{\hyper@linkend}%
1611         {\hyper@linkstart{link}{\@linkb}}{\hyper@linkend}%
1612     \fi}%
1613   \AtBeginDocument{%
1614    \DeclareRobustCommand{\ref}{\@ifstar\cref@refstar\cref@ref}
1615    \def\cref@refstar#1{%
1616      \expandafter\ifx\csname r@#1\endcsname\relax%
1617        \let\@result\relax%
1618      \else%
1619        \cref@getlabel{#1}{\@result}%
1620      \fi%
1621      \expandafter\real@setref\csname r@#1\endcsname{%
1622        \cref@reflabel}{#1}}%
1623  }
1624 }{}%  end of \@ifpackageloaded{hyperref}
1625   \@ifpackageloaded{ntheorem}{%
1626   \PackageInfo{cleveref}{`ntheorem' support loaded}
1627   \@ifpackagewith{ntheorem}{thref}{%
1628     \PackageWarning{cleveref}{`cleveref' supersedes `ntheorem's `thref'
1629       option}%
1630     \renewcommand{\thref}{\cref}}{}
1631   \@ifundefined{theorem@prework}{\let\theorem@prework\relax}{}
1632   \gdef\@thm#1#2#3{%
1633     \if@thmmarks%
1634       \stepcounter{end\InTheoType ctr}%
1635     \fi%
1636     \renewcommand{\InTheoType}{#1}%
1637     \if@thmmarks%
1638       \stepcounter{curr#1ctr}%
1639       \setcounter{end#1ctr}{0}%
1640     \fi%
1641     \refstepcounter[#1]{#2}%  <<<<<
1642     \theorem@prework%
1643     \thm@topsepadd \theorempostskipamount%
1644     \ifvmode \advance\thm@topsepadd\partopsep\fi%
1645     \trivlist%
1646     \@topsep \theorempreskipamount%
1647     \@topsepadd \thm@topsepadd%
1648     \advance\linewidth -\theorem@indent%
1649     \advance\@totalleftmargin \theorem@indent%
1650     \parshape \@ne \@totalleftmargin \linewidth%
1651     \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}%]
1652   }
1653   }{}%  end of \@ifpackageloaded
1654   \@ifpackageloaded{amsthm}{%
1655   \PackageInfo{cleveref}{`amsthm' support loaded}
1656 \let\@thmnoarg\@thm
1657 \def\@thm{\@ifnextchar[{\@thmoptarg}{\@thmnoarg}}%]
1658 \def\@thmoptarg[#1]#2#3#4{%
1659   \ifhmode\unskip\unskip\par\fi%
1660   \normalfont%
1661   \trivlist%
1662   \let\thmheadnl\relax%
1663   \let\thm@swap\@gobble%
1664   \thm@notefont{\fontseries\mddefault\upshape}%
1665   \thm@headpunct{.}% add period after heading
1666   \thm@headsep 5\p@ plus\p@ minus\p@\relax%
1667   \thm@space@setup%
1668   #2% style overrides
1669   \@topsep \thm@preskip%   used by thm head
1670   \@topsepadd \thm@postskip%   used by \@endparenv
1671   \def\@tempa{#3}\ifx\@empty\@tempa%
1672     \def\@tempa{\@oparg{\@begintheorem{#4}{}}[]}%
1673   \else%
1674     \refstepcounter[#1]{#3}%
1675     \def\@tempa{\@oparg{\@begintheorem{#4}{\csname the#3\endcsname}}[]}%
1676   \fi%
1677   \@tempa}
1678 \def\@ynthm#1[#2]#3{%
1679   \ifx\relax#2\relax%
1680     \def\@tempa{\@oparg{\@xthm{#1}{#3}}[]}%
1681   \else%
1682     \@ifundefined{c@#2}{%
1683       \def\@tempa{\@nocounterr{#2}}%
1684     }{%
1685       \@xp\xdef\csname the#1\endcsname{\@xp\@nx\csname the#2\endcsname}%
1686       \toks@{#3}%
1687       \@xp\xdef\csname#1\endcsname{%
1688         \@nx\@thm[#1]{% <<<<< new optional argument for theorem name
1689           \let\@nx\thm@swap%
1690             \if S\thm@swap\@nx\@firstoftwo\else\@nx\@gobble\fi%
1691           \@xp\@nx\csname th@\the\thm@style\endcsname}%
1692             {#2}{\the\toks@}}%
1693       \let\@tempa\relax%
1694     }%
1695   \fi%
1696   \@tempa}
1697   }{}%  end of \@ifpackageloaded
1698 \@ifpackageloaded{varioref}{%
1699     \PackageInfo{cleveref}{`varioref' support loaded}
1700     \PackageInfo{cleveref}{`cleveref' supersedes `varioref's %
1701       $\backslash$labelformat command, which will not work}
1702   \AtBeginDocument{%
1703     \def\cref@vref#1#2{%
1704       \if@cref@legacyvarioref%
1705         \leavevmode\unskip\vref@space%
1706       \fi%
1707       \@cref{#1}{#2} % space here is deliberate
1708       \begingroup%
1709         \def\@tmpstack{#2,\@nil}%
1710         \cref@stack@topandbottom{\@tmpstack}{\@firstref}{\@lastref}%
1711         \ifx\@lastref\@empty%
1712           \vpageref[\unskip]{#2}%
1713         \else%
1714           \edef\@tmpa{{\@firstref}{\@lastref}}%
1715           \expandafter\def\expandafter\@tmpa\expandafter{%
1716             \expandafter[\expandafter\unskip\expandafter]%
1717             \@tmpa}%
1718           \expandafter\vpagerefrange\@tmpa%
1719         \fi%
1720       \endgroup}
1721     \def\cref@vrefrange#1#2#3{%
1722       \@setcrefrange{#2}{#3}{#1}{} \vpagerefrange[\unskip]{#2}{#3}}
1723     \def\cref@fullref#1#2{%
1724       \@cref{#1}{#2} % space here is deliberate
1725       \begingroup%
1726         \def\@tmpstack{#2,\@nil}%
1727         \cref@stack@topandbottom{\@tmpstack}{\@firstref}{\@lastref}%
1728         \ifx\@lastref\@empty%
1729           \reftextfaraway{#2}%
1730         \else%
1731           \expandafter\vrefpagenum\expandafter%
1732             \@tmpa\expandafter{\@firstref}%
1733           \expandafter\vrefpagenum\expandafter%
1734             \@tmpb\expandafter{\@lastref}%
1735           \ifx\@tmpa\@tmpb%
1736             \expandafter\reftextfaraway\expandafter{\@firstref}%
1737           \else%
1738             \edef\@tmpa{{\@firstref}{\@lastref}}%
1739             \expandafter\reftextpagerange\@tmpa%
1740           \fi%
1741         \fi%
1742       \endgroup}
1743     \if@cref@legacyvarioref%
1744       \def\vr@f#1{\cref@vref{cref}{#1}}
1745       \def\Vr@f#1{\cref@vref{Cref}{#1}}
1746       \renewcommand\vrefrange[3][\reftextcurrent]{%
1747         \crefrange{#2}{#3} \vpagerefrange[\unskip]{#2}{#3}}
1748       \def\fullref#1{\cref@fullref{cref}{#1}}
1749     \else%
1750       \@ifpackageloaded{hyperref}{%
1751         \DeclareRobustCommand{\vref}{%
1752           \@ifstar{\cref@vrefstar{cref}}{\cref@vref{cref}}}
1753         \DeclareRobustCommand{\Vref}{%
1754           \@ifstar{\cref@vrefstar{Cref}}{\cref@vref{Cref}}}
1755         \DeclareRobustCommand{\vrefrange}{%
1756           \@ifstar{\cref@vrefrangestar{cref}}{\cref@vrefrange{cref}}}
1757         \DeclareRobustCommand{\Vrefrange}{%
1758           \@ifstar{\cref@vrefrangestar{Cref}}{\cref@vrefrange{Cref}}}%
1759         \DeclareRobustCommand{\fullref}{%
1760           \@ifstar{\cref@fullrefstar{cref}}{\cref@fullref{cref}}}
1761         \DeclareRobustCommand{\Fullref}{%
1762           \@ifstar{\cref@fullrefstar{Cref}}{\cref@fullref{Cref}}}
1763         \def\cref@vrefstar#1#2{%
1764           \@crefstarredtrue\cref@vref{#1}{#2}\@crefstarredfalse}
1765         \def\cref@vrefrangestar#1#2#3{%
1766           \@crefstarredtrue\cref@vrefrange{#1}{#2}{#3}\@crefstarredfalse}
1767         \def\cref@fullrefstar#1#2{%
1768           \@crefstarredtrue\cref@fullref{#1}{#2}\@crefstarredfalse}
1769       }{%
1770         \DeclareRobustCommand{\vref}{\cref@vref{cref}}
1771         \DeclareRobustCommand{\Vref}{\cref@vref{Cref}}
1772         \DeclareRobustCommand{\vrefrange}{\cref@vrefrange{cref}}
1773         \DeclareRobustCommand{\Vrefrange}{\cref@vrefrange{Cref}}
1774         \DeclareRobustCommand{\fullref}{\cref@fullref{cref}}
1775         \DeclareRobustCommand{\Fullref}{\cref@fullref{Cref}}
1776       }
1777     \fi%
1778    }%  end of \AtBeginDocument
1779  }{}%  end of \@ifpackageloaded
1780 \let\if@cref@legacyvarioref\iffalse
1781 \DeclareOption{legacyvarioref}{%
1782   \PackageInfo{cleveref}{legacy `varioref' compatibility enabled}
1783   \let\if@cref@legacyvarioref\iftrue}
1784 \DeclareOption{poorman}{%
1785   \PackageInfo{cleveref}{option `poorman' loaded}
1786   \gdef\cref@poorman@text{}
1787   \AtBeginDocument{%
1788     \newwrite\@crefscript%
1789     \immediate\openout\@crefscript=\jobname.sed}
1790   \newif\if@cref@switched@language
1791   \@ifpackageloaded{babel}{%
1792     \AtBeginDocument{%
1793       \let\cref@old@select@language\select@language
1794       \def\select@language{%
1795         \@cref@switched@languagetrue%
1796         \cref@writelanguagerules%
1797         \cref@old@select@language}
1798       \let\cref@old@forreign@language\forreign@language
1799       \def\forreign@language{%
1800         \@cref@switched@languagetrue%
1801         \cref@writelanguagerules%
1802         \cref@old@forreign@language}
1803       \edef\cref@inputlineno{\the\inputlineno}}%
1804     }{}
1805   \AtEndDocument{%
1806     \let\select@language\cref@old@select@language%
1807     \let\forreign@language\cref@old@forreign@language%
1808     \cref@writelanguagerules}
1809   \def\cref@writelanguagerules{%
1810     \begingroup%
1811       \if@cref@switched@language%
1812         \edef\@address{\cref@inputlineno,\the\inputlineno}%
1813       \else%
1814         \def\@address{}%
1815       \fi%
1816       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1817         \crefrangeconjunction}%
1818       \expandafter\def\expandafter\@tmpa\expandafter{%
1819         \expandafter{\@address}{\string\crefrangeconjunction}}%
1820       \expandafter\cref@writescript\@tmpa%
1821       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1822         \crefrangepreconjunction}%
1823       \expandafter\def\expandafter\@tmpa\expandafter{%
1824         \expandafter{\@address}{\string\crefrangepreconjunction}}%
1825       \expandafter\cref@writescript\@tmpa%
1826       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1827         \crefrangepostconjunction}%
1828       \expandafter\def\expandafter\@tmpa\expandafter{%
1829         \expandafter{\@address}{\string\crefrangepostconjunction}}%
1830       \expandafter\cref@writescript\@tmpa%
1831       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1832         \crefpairconjunction}%
1833       \expandafter\def\expandafter\@tmpa\expandafter{%
1834         \expandafter{\@address}{\string\crefpairconjunction}}%
1835       \expandafter\cref@writescript\@tmpa%
1836       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1837         \crefmiddleconjunction}%
1838       \expandafter\def\expandafter\@tmpa\expandafter{%
1839         \expandafter{\@address}{\string\crefmiddleconjunction}}%
1840       \expandafter\cref@writescript\@tmpa%
1841       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1842         \creflastconjunction}%
1843       \expandafter\def\expandafter\@tmpa\expandafter{%
1844         \expandafter{\@address}{\string\creflastconjunction}}%
1845       \expandafter\cref@writescript\@tmpa%
1846       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1847         \crefpairgroupconjunction}%
1848       \expandafter\def\expandafter\@tmpa\expandafter{%
1849         \expandafter{\@address}{\string\crefpairgroupconjunction}}%
1850       \expandafter\cref@writescript\@tmpa%
1851       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1852         \crefmiddlegroupconjunction}%
1853       \expandafter\def\expandafter\@tmpa\expandafter{%
1854         \expandafter{\@address}{\string\crefmiddlegroupconjunction}}%
1855       \expandafter\cref@writescript\@tmpa%
1856       \expandafter\def\expandafter\cref@poorman@text\expandafter{%
1857         \creflastgroupconjunction}%
1858       \expandafter\def\expandafter\@tmpa\expandafter{%
1859         \expandafter{\@address}{\string\creflastgroupconjunction}}%
1860       \expandafter\cref@writescript\@tmpa%
1861       \let\@tmpstack\cref@label@types%
1862       \cref@isstackfull{\@tmpstack}%
1863       \@whilesw\if@cref@stackfull\fi{%
1864         \edef\@tmpa{\cref@stack@top{\@tmpstack}}%
1865         \expandafter\expandafter\expandafter\def%
1866         \expandafter\expandafter\expandafter\cref@poorman@text%
1867         \expandafter\expandafter\expandafter{%
1868           \csname cref@\@tmpa @name\endcsname}%
1869         \edef\@tmpa{%
1870           \string\cref@\expandafter\noexpand\@tmpa @name\space}%
1871         \expandafter\expandafter\expandafter\def%
1872         \expandafter\expandafter\expandafter\@tmpa%
1873         \expandafter\expandafter\expandafter{%
1874           \expandafter\expandafter\expandafter{%
1875             \expandafter\@address\expandafter}%
1876           \expandafter{\@tmpa}}%
1877         \expandafter\cref@writescript\@tmpa%
1878         \edef\@tmpa{\cref@stack@top{\@tmpstack}}%
1879         \expandafter\expandafter\expandafter\def%
1880         \expandafter\expandafter\expandafter\cref@poorman@text%
1881         \expandafter\expandafter\expandafter{%
1882           \csname cref@\@tmpa @name@plural\endcsname}%
1883         \edef\@tmpa{%
1884           \string\cref@\expandafter\noexpand\@tmpa%
1885           @name@plural\space}%
1886         \expandafter\expandafter\expandafter\def%
1887         \expandafter\expandafter\expandafter\@tmpa%
1888         \expandafter\expandafter\expandafter{%
1889           \expandafter\expandafter\expandafter{%
1890             \expandafter\@address\expandafter}%
1891           \expandafter{\@tmpa}}%
1892         \expandafter\cref@writescript\@tmpa%
1893         \edef\@tmpa{\cref@stack@top{\@tmpstack}}%
1894         \expandafter\expandafter\expandafter\def%
1895         \expandafter\expandafter\expandafter\cref@poorman@text%
1896         \expandafter\expandafter\expandafter{%
1897           \csname Cref@\@tmpa @name\endcsname}%
1898         \edef\@tmpa{%
1899           \string\Cref@\expandafter\noexpand\@tmpa @name\space}%
1900         \expandafter\expandafter\expandafter\def%
1901         \expandafter\expandafter\expandafter\@tmpa%
1902         \expandafter\expandafter\expandafter{%
1903           \expandafter\expandafter\expandafter%
1904           {\expandafter\@address\expandafter}%
1905           \expandafter{\@tmpa}}%
1906         \expandafter\cref@writescript\@tmpa%
1907         \edef\@tmpa{\cref@stack@top{\@tmpstack}}%
1908         \expandafter\expandafter\expandafter\def%
1909         \expandafter\expandafter\expandafter\cref@poorman@text%
1910         \expandafter\expandafter\expandafter{%
1911           \csname Cref@\@tmpa @name@plural\endcsname}%
1912         \edef\@tmpa{%
1913           \string\Cref@\expandafter\noexpand\@tmpa%
1914           @name@plural\space}%
1915         \expandafter\expandafter\expandafter\def%
1916         \expandafter\expandafter\expandafter\@tmpa%
1917         \expandafter\expandafter\expandafter{%
1918           \expandafter\expandafter\expandafter%
1919           {\expandafter\@address\expandafter}%
1920           \expandafter{\@tmpa}}%
1921         \expandafter\cref@writescript\@tmpa%
1922         \cref@stack@pop{\@tmpstack}%
1923         \cref@isstackfull{\@tmpstack}}%
1924     \endgroup%
1925     \edef\cref@inputlineno{\the\inputlineno}}%
1926   \AtEndDocument{%
1927     \immediate\closeout\@crefscript%
1928     \newread\@crefscript%
1929     \immediate\openin\@crefscript=\jobname.sed%
1930     \begingroup%
1931       \newif\if@not@eof%
1932       \def\@eof{\par }%
1933       \catcode`.=13 \catcode`*=13
1934       \catcode`[=13 \catcode`]=13
1935       \catcode`^=13 \catcode`$=13 %$
1936       \catcode`\=0 \catcode`<=1 \catcode`>=2
1937       \catcode`\\=13 \catcode`\{=12 \catcode`\}=12 \catcode`_=12
1938       \lccode`/=92
1939       \lccode`~=92\lowercase{\def~{\string/\string/}}%
1940       \lccode`~=42\lowercase{\def~{\string/\string*}}%
1941       \lccode`~=46\lowercase{\def~{\string/\string.}}%
1942       \lccode`~=91\lowercase{\def~{\string/\string[}}%
1943       \lccode`~=93\lowercase{\def~{\string/\string]}}%
1944       \lccode`~=94\lowercase{\def~{\string/\string^}}%
1945       \lccode`~=36\lowercase{\def~{\string/\string$}}% $
1946       \lccode`~=0 \lccode`/=0 \catcode`~=12
1947       \def\cref@poorman@text{}%
1948       \immediate\read\@crefscript to \@tmpa%
1949       \ifx\@tmpa\@eof%
1950         \@not@eoffalse%
1951       \else%
1952         \@not@eoftrue%
1953         \edef\@tmpa{\@tmpa}%
1954       \fi%
1955       \@whilesw\if@not@eof\fi{%
1956         \expandafter\g@addto@macro\expandafter%
1957           \cref@poorman@text\expandafter{\@tmpa^^J}%
1958         \immediate\read\@crefscript to \@tmpa%
1959         \ifx\@tmpa\@eof%
1960           \@not@eoffalse%
1961         \else%
1962           \@not@eoftrue%
1963           \edef\@tmpa{\@tmpa}%
1964         \fi}%
1965     \endgroup%
1966     \immediate\closein\@crefscript%
1967     \begingroup%
1968       \lccode`|=92 \lccode`<=123 \lccode`>=125 \lccode`C=67
1969       \lowercase{\def\@tmpa{%[
1970           s/||label|[[^]]*|]/||label/g}}
1971       \expandafter\g@addto@macro\expandafter%
1972         \cref@poorman@text\expandafter{\@tmpa^^J}%
1973       \lowercase{\edef\@tmpa{s/||usepackage|(|[.*|]|)|<0,1|><cleveref>//g}}%
1974       \expandafter\g@addto@macro\expandafter%
1975         \cref@poorman@text\expandafter{\@tmpa^^J}%
1976       \lowercase{\edef\@tmpa{s/||[cC]refformat<.*><.*>//g}}%
1977       \expandafter\g@addto@macro\expandafter%
1978         \cref@poorman@text\expandafter{\@tmpa^^J}%
1979       \lowercase{\edef\@tmpa{s/||[cC]refrangeformat<.*><.*>//g}}%
1980       \expandafter\g@addto@macro\expandafter%
1981         \cref@poorman@text\expandafter{\@tmpa^^J}%
1982       \lowercase{\edef\@tmpa{s/||[cC]refmultiformat<.*><.*><.*><.*>//g}}%
1983       \expandafter\g@addto@macro\expandafter%
1984         \cref@poorman@text\expandafter{\@tmpa^^J}%
1985       \lowercase{\edef\@tmpa{%
1986           s/||[cC]refrangemultiformat<.*><.*><.*><.*>//g}}%
1987       \expandafter\g@addto@macro\expandafter%
1988         \cref@poorman@text\expandafter{\@tmpa^^J}%
1989       \lowercase{\edef\@tmpa{s/||[cC]refname<.*><.*>//g}}%
1990       \expandafter\g@addto@macro\expandafter%
1991         \cref@poorman@text\expandafter{\@tmpa^^J}%
1992       \lowercase{\edef\@tmpa{s/||[cC]reflabelformat<.*><.*>//g}}%
1993       \expandafter\g@addto@macro\expandafter%
1994         \cref@poorman@text\expandafter{\@tmpa^^J}%
1995       \lowercase{\edef\@tmpa{s/||[cC]refrangelabelformat<.*><.*>//g}}%
1996       \expandafter\g@addto@macro\expandafter%
1997         \cref@poorman@text\expandafter{\@tmpa^^J}%
1998       \lowercase{\edef\@tmpa{s/||[cC]refdefaultlabelformat<.*>//g}}%
1999       \expandafter\g@addto@macro\expandafter%
2000         \cref@poorman@text\expandafter{\@tmpa^^J}%
2001       \lowercase{\edef\@tmpa{%
2002           s/||renewcommand<||crefpairconjunction><.*>//g}}%
2003       \expandafter\g@addto@macro\expandafter%
2004         \cref@poorman@text\expandafter{\@tmpa^^J}%
2005       \lowercase{\edef\@tmpa{%
2006           s/||renewcommand<||crefpairgroupconjunction><.*>//g}}%
2007       \expandafter\g@addto@macro\expandafter%
2008         \cref@poorman@text\expandafter{\@tmpa^^J}%
2009       \lowercase{\edef\@tmpa{%
2010           s/||renewcommand<||crefmiddleconjunction><.*>//g}}%
2011       \expandafter\g@addto@macro\expandafter%
2012         \cref@poorman@text\expandafter{\@tmpa^^J}%
2013       \lowercase{\edef\@tmpa{%
2014           s/||renewcommand<||crefmiddlegroupconjunction><.*>//g}}%
2015       \expandafter\g@addto@macro\expandafter%
2016         \cref@poorman@text\expandafter{\@tmpa^^J}%
2017       \lowercase{\edef\@tmpa{%
2018           s/||renewcommand<||creflastconjunction><.*>//g}}%
2019       \expandafter\g@addto@macro\expandafter%
2020         \cref@poorman@text\expandafter{\@tmpa^^J}%
2021       \lowercase{\edef\@tmpa{%
2022           s/||renewcommand<||creflastgroupconjunction><.*>//g}}%
2023       \expandafter\g@addto@macro\expandafter%
2024         \cref@poorman@text\expandafter{\@tmpa^^J}%
2025       \lowercase{\edef\@tmpa{s/||renewcommand<||[cC]ref><.*>//g}}%
2026       \expandafter\g@addto@macro\expandafter%
2027         \cref@poorman@text\expandafter{\@tmpa^^J}%
2028       \lowercase{\edef\@tmpa{s/||renewcommand<||[cC]refrange><.*>//g}}%
2029       \expandafter\g@addto@macro\expandafter%
2030         \cref@poorman@text\expandafter{\@tmpa^^J}%
2031     \endgroup%
2032     \newwrite\@crefscript%
2033     \immediate\openout\@crefscript=\jobname.sed%
2034     \immediate\write\@crefscript{\cref@poorman@text}%
2035     \immediate\closeout\@crefscript%
2036   }%  end of \AtEndDocument
2037   \def\cref@getmeaning#1{\expandafter\@cref@getmeaning\meaning#1\@nil}
2038   \def\@cref@getmeaning#1->#2\@nil{#2}
2039   \def\cref@writescript#1#2{%
2040     \edef\@tmpa{\cref@getmeaning{\cref@poorman@text}}%
2041     \immediate\write\@crefscript{#1 s/#2/\@tmpa/g}}
2042   \@ifpackageloaded{hyperref}{%
2043     \def\@crefnostar#1#2{%
2044       \gdef\cref@poorman@text{}%
2045       \@cref{#1}{#2}%
2046       \def\@tmpa##1##2\@nil{%
2047         \if##1c%
2048           \cref@writescript{}{\string\cref\string{#2\string}}%
2049         \else%
2050           \cref@writescript{}{\string\Cref\string{#2\string}}%
2051         \fi}%
2052       \@tmpa#1\@nil}
2053     \def\@crefstar#1#2{%
2054       \gdef\cref@poorman@text{}%
2055       \@crefstarredtrue\@cref{#1}{#2}\@crefstarredfalse%
2056       \def\@tmpa##1##2\@nil{%
2057         \if##1c%
2058           \cref@writescript{}{\string\cref*\string{#2\string}}%
2059         \else%
2060           \cref@writescript{}{\string\Cref*\string{#2\string}}%
2061         \fi}%
2062       \@tmpa#1\@nil}
2063     \def\@crefrangenostar#1#2#3{%
2064       \gdef\cref@poorman@text{}%
2065       \@setcrefrange{#2}{#3}{#1}{}%
2066       \def\@tmpa##1##2\@nil{%
2067         \if##1c%
2068           \cref@writescript{}{%
2069             \string\crefrange\string{#2\string}\string{#3\string}}%
2070         \else%
2071           \cref@writescript{}{%
2072             \string\Crefrange\string{#2\string}\string{#3\string}}%
2073         \fi}%
2074       \@tmpa#1\@nil}
2075     \def\@crefrangestar#1#2#3{%
2076       \gdef\cref@poorman@text{}%
2077       \@crefstarredtrue\@setcrefrange{#2}{#3}{#1}{}\@crefstarredfalse%
2078       \def\@tmpa##1##2\@nil{%
2079         \if##1c%
2080           \cref@writescript{}{%
2081             \string\crefrange*\string{#2\string}\string{#3\string}}%
2082         \else%
2083           \cref@writescript{}{%
2084             \string\Crefrange*\string{#2\string}\string{#3\string}}%
2085         \fi}%
2086       \@tmpa#1\@nil}
2087   }{%
2088     \DeclareRobustCommand{\cref}[1]{%
2089       \edef\cref@poorman@text{}%
2090       \@cref{cref}{#1}%
2091       \cref@writescript{}{\string\cref\string{#1\string}}}
2092     \DeclareRobustCommand{\Cref}[1]{%
2093       \edef\cref@poorman@text{}%
2094       \@cref{Cref}{#1}%
2095       \cref@writescript{}{\string\Cref\string{#1\string}}}
2096     \DeclareRobustCommand{\crefrange}[2]{%
2097       \edef\cref@poorman@text{}%
2098       \@setcrefrange{#1}{#2}{cref}{}%
2099       \cref@writescript{}{%
2100         \string\crefrange\string{#1\string}\string{#2\string}}}
2101     \DeclareRobustCommand{\Crefrange}[2]{%
2102       \edef\cref@poorman@text{}%
2103       \@setcrefrange{#1}{#2}{Cref}{}%
2104       \cref@writescript{}{%
2105         \string\Crefrange\string{#1\string}\string{#2\string}}}
2106   }
2107   \@ifpackageloaded{varioref}{%
2108     \AtBeginDocument{%
2109       \if@cref@legacyvarioref%
2110         \DeclareRobustCommand{\vref}{%
2111           \@ifstar{\cref@vrefstar{cref}}{\cref@vref{cref}}}
2112         \def\cref@vrefstar#1#2{%
2113           \@crefstarredtrue\cref@vref{#1}{#2}\@crefstarredfalse}
2114       \fi%
2115       \def\cref@vref#1#2{%
2116         \gdef\cref@poorman@text{}%
2117         \if@cref@legacyvarioref%
2118           \leavevmode\unskip\vref@space%
2119         \fi%
2120         \begingroup%
2121           \let\if@tmp\if@crefstarred%
2122           \if@cref@legacyvarioref\@crefstarredfalse\fi%
2123           \@cref{#1}{#2} % space here is deliberate
2124           \let\if@crefstarred\if@tmp%
2125           \def\@tmpstack{#2,\@nil}%
2126           \cref@stack@topandbottom{\@tmpstack}{\@firstref}{\@lastref}%
2127           \ifx\@lastref\@empty%
2128             \vpageref[\unskip]{#2}%
2129             \g@addto@macro\cref@poorman@text{ \vpageref[\unskip]{#2}}%
2130           \else%
2131             \g@addto@macro\cref@poorman@text{ }%
2132             \edef\@tmpa{{\@firstref}{\@lastref}}%
2133             \expandafter\def\expandafter\@tmpa\expandafter{%
2134               \expandafter[\expandafter\unskip\expandafter]%
2135               \@tmpa}%
2136             \expandafter\vpagerefrange\@tmpa%
2137             \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2138               \expandafter{\expandafter\vpagerefrange\@tmpa}%
2139           \fi%
2140           \def\@tmpa##1##2\@nil{%
2141             \if##1c%
2142               \if@crefstarred%
2143                 \cref@writescript{}{\string\vref*\string{#2\string}}%
2144               \else%
2145                 \cref@writescript{}{\string\vref\string{#2\string}}%
2146               \fi%
2147             \else%
2148               \if@crefstarred%
2149                 \cref@writescript{}{\string\Vref*\string{#2\string}}%
2150               \else%
2151                 \cref@writescript{}{\string\Vref\string{#2\string}}%
2152               \fi%
2153             \fi}%
2154           \@tmpa#1\@nil%
2155         \endgroup}
2156       \def\cref@vrefrange#1#2#3{%
2157         \gdef\cref@poorman@text{}%
2158         \@setcrefrange{#2}{#3}{#1}{} \vpagerefrange[\unskip]{#2}{#3}%
2159         \g@addto@macro\cref@poorman@text{ \vpagerefrange[\unskip]{#2}{#3}}%
2160         \def\@tmpa##1##2\@nil{%
2161           \if##1c%
2162             \if@crefstarred%
2163               \cref@writescript{}{%
2164                 \string\vrefrange*\string{#2\string}\string{#3\string}}%
2165             \else%
2166               \cref@writescript{}{%
2167                 \string\vrefrange\string{#2\string}\string{#3\string}}%
2168             \fi%
2169           \else%
2170             \if@crefstarred%
2171               \cref@writescript{}{%
2172                 \string\Vrefrange*\string{#2\string}\string{#3\string}}%
2173             \else%
2174               \cref@writescript{}{%
2175                 \string\Vrefrange\string{#2\string}\string{#3\string}}%
2176             \fi%
2177           \fi}%
2178         \@tmpa#1\@nil}
2179       \def\cref@fullref#1#2{%
2180         \gdef\cref@poorman@text{}%
2181         \begingroup%
2182           \@cref{#1}{#2} % space here is deliberate
2183           \def\@tmpstack{#2,\@nil}%
2184           \cref@stack@topandbottom{\@tmpstack}{\@firstref}{\@lastref}%
2185           \ifx\@lastref\@empty%
2186             \reftextfaraway{#2}%
2187             \def\@pageref{\reftextfaraway{#1}}%
2188           \else%
2189             \expandafter\vrefpagenum\expandafter%
2190               \@tmpa\expandafter{\@firstref}%
2191             \expandafter\vrefpagenum\expandafter%
2192               \@tmpb\expandafter{\@lastref}%
2193             \ifx\@tmpa\@tmpb%
2194               \expandafter\reftextfaraway\expandafter{\@firstref}%
2195               \expandafter\def\expandafter\@pageref\expandafter{%
2196                 \expandafter\reftextfaraway\expandafter{\@firstref}}%
2197             \else%
2198               \edef\@tmpa{{\@firstref}{\@lastref}}%
2199               \expandafter\reftextpagerange\@tmpa%
2200               \expandafter\def\expandafter\@pageref\expandafter{%
2201                 \expandafter\reftextpagerange\@tmpa}%
2202             \fi%
2203           \fi%
2204           \g@addto@macro\cref@poorman@text{ }%
2205           \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2206             \expandafter{\@pageref}%
2207           \def\@tmpa##1##2\@nil{%
2208             \if##1c%
2209               \if@crefstarred%
2210                 \cref@writescript{}{\string\fullref*\string{#2\string}}%
2211               \else%
2212                 \cref@writescript{}{\string\fullref\string{#2\string}}%
2213               \fi%
2214             \else%
2215               \if@crefstarred%
2216                 \cref@writescript{}{\string\Fullref*\string{#2\string}}%
2217               \else%
2218                 \cref@writescript{}{\string\Fullref\string{#2\string}}%
2219               \fi%
2220             \fi}%
2221           \@tmpa#1\@nil%
2222         \endgroup}
2223     }% end of \AtBeginDocument
2224   }{}% end of \@ifpackageloaded
2225   \def\@setcref@pairgroupconjunction{%
2226     \crefpairgroupconjunction%
2227     \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2228       \expandafter{\crefpairgroupconjunction}}
2229   \def\@setcref@middlegroupconjunction{%
2230     \crefmiddlegroupconjunction%
2231     \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2232       \expandafter{\crefmiddlegroupconjunction}}
2233   \def\@setcref@lastgroupconjunction{%
2234     \creflastgroupconjunction%
2235     \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2236       \expandafter{\creflastgroupconjunction}}
2237   \@ifpackageloaded{hyperref}{%
2238     \def\@@setcref#1#2{%
2239       \cref@getlabel{#2}{\@tmplabel}%
2240       \if@crefstarred%
2241         #1{\@tmplabel}{}{}%
2242         \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2243           \expandafter{#1{\ref*{#2}}{}{}}%
2244       \else%
2245         \edef\@tmplink{\cref@hyperref{#2}}%
2246         #1{\@tmplabel}{\hyper@linkstart{link}{\@tmplink}}%
2247           {\hyper@linkend}%
2248         \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2249           \expandafter{#1{\ref{#2}}{}{}}%
2250       \fi}
2251     \def\@@setcrefrange#1#2#3{%
2252       \cref@getlabel{#2}{\@labela}%
2253       \cref@getlabel{#3}{\@labelb}%
2254       \if@crefstarred%
2255         #1{\@labela}{\@labelb}{}{}{}{}%
2256         \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2257           \expandafter{#1{\ref*{#2}}{\ref*{#3}}{}{}{}{}}%
2258       \else%
2259         \edef\@linka{\cref@hyperref{#2}}%
2260         \edef\@linkb{\cref@hyperref{#3}}%
2261         #1{\@labela}{\@labelb}%
2262           {\hyper@linkstart{link}{\@linka}}{\hyper@linkend}%
2263           {\hyper@linkstart{link}{\@linkb}}{\hyper@linkend}%
2264         \expandafter\g@addto@macro\expandafter\cref@poorman@text%
2265           \expandafter{#1{\ref{#2}}{\ref{#3}}{}{}{}{}}%
2266       \fi}
2267   }{%
2268     \let\old@@setcref\@@setcref%
2269     \let\old@@setcrefrange\@@setcrefrange%
2270     \def\@@setcref#1#2{%
2271       \old@@setcref{#1}{#2}%
2272       \expandafter\g@addto@macro\expandafter{%
2273         \expandafter\cref@poorman@text\expandafter}\expandafter{%
2274         #1{\ref{#2}}{}{}}}
2275     \def\@@setcrefrange#1#2#3{%
2276       \old@@setcrefrange{#1}{#2}{#3}%
2277       \expandafter\g@addto@macro%
2278         \expandafter{\expandafter\cref@poorman@text\expandafter}%
2279         \expandafter{#1{\ref{#2}}{\ref{#3}}{}{}{}{}}}
2280   }
2281 }%  end of poorman option
2282 \newif\if@cref@sort
2283 \newif\if@cref@compress
2284 \@cref@sorttrue
2285 \@cref@compresstrue
2286 \DeclareOption{sort}{%
2287   \PackageInfo{cleveref}{sorting but not compressing references}
2288   \@cref@sorttrue
2289   \@cref@compressfalse}
2290 \DeclareOption{compress}{%
2291   \PackageInfo{cleveref}{compressing but not sorting references}
2292   \@cref@sortfalse
2293   \@cref@compresstrue}
2294 \DeclareOption{sort&compress}{%
2295   \PackageInfo{cleveref}{sorting and compressing references}
2296   \@cref@sorttrue
2297   \@cref@compresstrue}
2298 \DeclareOption{nosort}{%
2299   \PackageInfo{cleveref}{neither sorting nor compressing references}
2300   \@cref@sortfalse
2301   \@cref@compressfalse}
2302 \newif\if@cref@capitalise
2303 \@cref@capitalisefalse
2304 \DeclareOption{capitalise}{%
2305   \PackageInfo{cleveref}{always capitalise cross-reference names}
2306   \@cref@capitalisetrue}
2307 \DeclareOption{capitalize}{%
2308   \PackageInfo{cleveref}{always capitalise cross-reference names}
2309   \@cref@capitalisetrue}
2310 \crefdefaultlabelformat{#2#1#3}
2311 \creflabelformat{equation}{\textup{(#2#1#3)}}
2312 \def\cref@addto#1#2{%
2313   \@temptokena{#2}%
2314   \ifx#1\undefined%
2315     \edef#1{\the\@temptokena}%
2316   \else%
2317     \toks@\expandafter{#1}%
2318     \edef#1{\the\toks@\the\@temptokena}%
2319   \fi%
2320   \@temptokena{}\toks@\@temptokena%
2321 }
2322 \@onlypreamble\cref@addto
2323 \DeclareOption{english}{%
2324   \PackageInfo{cleveref}{loaded `english' language definitions}
2325   \AtBeginDocument{%
2326     \def\crefrangeconjunction@preamble{ to~}%
2327     \def\crefrangepreconjunction@preamble{}%
2328     \def\crefrangepostconjunction@preamble{}%
2329     \def\crefpairconjunction@preamble{ and~}%
2330     \def\crefmiddleconjunction@preamble{, }%
2331     \def\creflastconjunction@preamble{ and~}%
2332     \def\crefpairgroupconjunction@preamble{ and~}%
2333     \def\crefmiddlegroupconjunction@preamble{, }%
2334     \def\creflastgroupconjunction@preamble{, and~}%
2335     \Crefname@preamble{equation}{Equation}{Equations}%
2336     \Crefname@preamble{chapter}{Chapter}{Chapters}%
2337     \Crefname@preamble{section}{Section}{Sections}%
2338     \Crefname@preamble{appendix}{Appendix}{Appendices}%
2339     \Crefname@preamble{figure}{Figure}{Figures}%
2340     \Crefname@preamble{table}{Table}{Tables}%
2341     \Crefname@preamble{theorem}{Theorem}{Theorems}%
2342     \Crefname@preamble{enumi}{Item}{Items}%
2343     \Crefname@preamble{lemma}{Lemma}{Lemmas}%
2344     \Crefname@preamble{corollary}{Corollary}{Corollaries}%
2345     \Crefname@preamble{proposition}{Proposition}{Propositions}%
2346     \Crefname@preamble{definition}{Definition}{Definitions}%
2347     \Crefname@preamble{result}{Result}{Results}%
2348     \Crefname@preamble{example}{Example}{Examples}%
2349     \Crefname@preamble{remark}{Remark}{Remarks}%
2350     \Crefname@preamble{note}{Note}{Notes}%
2351     \if@cref@capitalise%
2352       \crefname@preamble{equation}{Eq.}{Eqs.}%
2353       \crefname@preamble{chapter}{Chapter}{Chapters}%
2354       \crefname@preamble{section}{Section}{Sections}%
2355       \crefname@preamble{appendix}{Appendix}{Appendices}%
2356       \crefname@preamble{figure}{Fig.}{Figs.}%
2357       \crefname@preamble{table}{Table}{Tables}%
2358       \crefname@preamble{theorem}{Theorem}{Theorems}%
2359       \crefname@preamble{enumi}{Item}{Items}%
2360       \crefname@preamble{lemma}{Lemma}{Lemmas}%
2361       \crefname@preamble{corollary}{Corollary}{Corollaries}%
2362       \crefname@preamble{proposition}{Proposition}{Propositions}%
2363       \crefname@preamble{definition}{Definition}{Definitions}%
2364       \crefname@preamble{result}{Result}{Results}%
2365       \crefname@preamble{example}{Example}{Examples}%
2366       \crefname@preamble{remark}{Remark}{Remarks}%
2367       \crefname@preamble{note}{Note}{Notes}%
2368     \else%
2369       \crefname@preamble{equation}{eq.}{eqs.}%
2370       \crefname@preamble{chapter}{chapter}{chapters}%
2371       \crefname@preamble{section}{section}{sections}%
2372       \crefname@preamble{appendix}{appendix}{appendices}%
2373       \crefname@preamble{figure}{fig.}{figs.}%
2374       \crefname@preamble{table}{table}{tables}%
2375       \crefname@preamble{theorem}{theorem}{theorems}%
2376       \crefname@preamble{enumi}{item}{items}%
2377       \crefname@preamble{lemma}{lemma}{lemmas}%
2378       \crefname@preamble{corollary}{corollary}{corollaries}%
2379       \crefname@preamble{proposition}{proposition}{propositions}%
2380       \crefname@preamble{definition}{definition}{definitions}%
2381       \crefname@preamble{result}{result}{results}%
2382       \crefname@preamble{example}{example}{examples}%
2383       \crefname@preamble{remark}{remark}{remarks}%
2384       \crefname@preamble{note}{note}{notes}%
2385     \fi%
2386     \def\cref@language{english}%
2387     \cref@addto\extrasenglish{%
2388       \renewcommand{\crefrangeconjunction}{ to~}%
2389       \renewcommand\crefrangepreconjunction{}%
2390       \renewcommand\crefrangepostconjunction{}%
2391       \renewcommand{\crefpairconjunction}{ and~}%
2392       \renewcommand{\crefmiddleconjunction}{, }%
2393       \renewcommand{\creflastconjunction}{ and~}%
2394       \renewcommand{\crefpairgroupconjunction}{ and~}%
2395       \renewcommand{\crefmiddlegroupconjunction}{, }%
2396       \renewcommand{\creflastgroupconjunction}{, and~}%
2397       \Crefname{equation}{Equation}{Equations}%
2398       \Crefname{chapter}{Chapter}{Chapters}%
2399       \Crefname{section}{Section}{Sections}%
2400       \Crefname{subsection}{Section}{Sections}%
2401       \Crefname{subsubsection}{Section}{Sections}%
2402       \Crefname{appendix}{Appendix}{Appendices}%
2403       \Crefname{subappendix}{Appendix}{Appendices}%
2404       \Crefname{subsubappendix}{Appendix}{Appendices}%
2405       \Crefname{subsubsubappendix}{Appendix}{Appendices}%
2406       \Crefname{figure}{Figure}{Figures}%
2407       \Crefname{subfigure}{Figure}{Figures}%
2408       \Crefname{table}{Table}{Tables}%
2409       \Crefname{subtable}{Table}{Tables}%
2410       \Crefname{theorem}{Theorem}{Theorems}%
2411       \Crefname{enumi}{Item}{Items}%
2412       \Crefname{enumii}{Item}{Items}%
2413       \Crefname{enumiii}{Item}{Items}%
2414       \Crefname{enumiv}{Item}{Items}%
2415       \Crefname{enumv}{Item}{Items}%
2416       \Crefname{lemma}{Lemma}{Lemmas}%
2417       \Crefname{corollary}{Corollary}{Corollaries}%
2418       \Crefname{proposition}{Proposition}{Propositions}%
2419       \Crefname{definition}{Definition}{Definitions}%
2420       \Crefname{result}{Result}{Results}%
2421       \Crefname{example}{Example}{Examples}%
2422       \Crefname{remark}{Remark}{Remarks}%
2423       \Crefname{note}{Note}{Notes}%
2424       \if@cref@capitalise%
2425         \crefname{equation}{Eq.}{Eqs.}%
2426         \crefname{chapter}{Chapter}{Chapters}%
2427         \crefname{section}{Section}{Sections}%
2428         \crefname{subsection}{Section}{Sections}%
2429         \crefname{subsubsection}{Section}{Sections}%
2430         \crefname{appendix}{Appendix}{Appendices}%
2431         \crefname{subappendix}{Appendix}{Appendices}%
2432         \crefname{subsubappendix}{Appendix}{Appendices}%
2433         \crefname{subsubsubappendix}{Appendix}{Appendices}%
2434         \crefname{figure}{Fig.}{Figs.}%
2435         \crefname{subfigure}{Fig.}{Figs.}%
2436         \crefname{table}{Table}{Tables}%
2437         \crefname{subtable}{Table}{Tables}%
2438         \crefname{theorem}{Theorem}{Theorems}%
2439         \crefname{enumi}{Item}{Items}%
2440         \crefname{enumii}{Item}{Items}%
2441         \crefname{enumiii}{Item}{Items}%
2442         \crefname{enumiv}{Item}{Items}%
2443         \crefname{enumv}{Item}{Items}%
2444         \crefname{lemma}{Lemma}{Lemmas}%
2445         \crefname{corollary}{Corollary}{Corollaries}%
2446         \crefname{proposition}{Proposition}{Propositions}%
2447         \crefname{definition}{Definition}{Definitions}%
2448         \crefname{result}{Result}{Results}%
2449         \crefname{example}{Example}{Examples}%
2450         \crefname{remark}{Remark}{Remarks}%
2451         \crefname{note}{Note}{Notes}%
2452       \else%
2453         \crefname{equation}{eq.}{eqs.}%
2454         \crefname{chapter}{chapter}{chapters}%
2455         \crefname{section}{section}{sections}%
2456         \crefname{subsection}{section}{sections}%
2457         \crefname{subsubsection}{section}{sections}%
2458         \crefname{appendix}{appendix}{appendices}%
2459         \crefname{subappendix}{appendix}{appendices}%
2460         \crefname{subsubappendix}{appendix}{appendices}%
2461         \crefname{subsubsubappendix}{appendix}{appendices}%
2462         \crefname{figure}{fig.}{figs.}%
2463         \crefname{subfigure}{fig.}{figs.}%
2464         \crefname{table}{table}{tables}%
2465         \crefname{subtable}{table}{tables}%
2466         \crefname{theorem}{theorem}{theorems}%
2467         \crefname{enumi}{item}{items}%
2468         \crefname{enumii}{item}{items}%
2469         \crefname{enumiii}{item}{items}%
2470         \crefname{enumiv}{item}{items}%
2471         \crefname{enumv}{item}{items}%
2472         \crefname{lemma}{lemma}{lemmas}%
2473         \crefname{corollary}{corollary}{corollaries}%
2474         \crefname{proposition}{proposition}{propositions}%
2475         \crefname{definition}{definition}{definitions}%
2476         \crefname{result}{result}{results}%
2477         \crefname{example}{example}{examples}%
2478         \crefname{remark}{remark}{remarks}%
2479         \crefname{note}{note}{notes}%
2480       \fi%
2481     }}}
2482 \DeclareOption{german}{%
2483   \PackageInfo{cleveref}{loaded `german' language definitions}
2484   \AtBeginDocument{%
2485     \def\crefrangeconjunction@preamble{ bis~}%
2486     \def\crefrangepreconjunction@preamble{}%
2487     \def\crefrangepostconjunction@preamble{}%
2488     \def\crefpairconjunction@preamble{ und~}%
2489     \def\crefmiddleconjunction@preamble{, }%
2490     \def\creflastconjunction@preamble{ und~}%
2491     \def\crefpairgroupconjunction@preamble{ und~}%
2492     \def\crefmiddlegroupconjunction@preamble{, }%
2493     \def\creflastgroupconjunction@preamble{ und~}%
2494     \Crefname@preamble{equation}{Gleichung}{Gleichungen}%
2495     \Crefname@preamble{chapter}{Kapitel}{Kapitel}%
2496     \Crefname@preamble{section}{Abschnitt}{Abschnitte}%
2497     \Crefname@preamble{appendix}{Anhang}{Anh\"ange}%
2498     \Crefname@preamble{figure}{Abbildung}{Abbildungen}%
2499     \Crefname@preamble{table}{Tabelle}{Tabellen}%
2500     \Crefname@preamble{theorem}{Theorem}{Theoremen}%
2501     \Crefname@preamble{enumi}{Punkt}{Punkte}%
2502     \Crefname@preamble{lemma}{Lemma}{Lemmata}%
2503     \Crefname@preamble{corollary}{Korollar}{Korollaren}%
2504     \Crefname@preamble{proposition}{Satz}{S\"atze}%
2505     \Crefname@preamble{definition}{Definition}{Definitionen}%
2506     \Crefname@preamble{result}{Ergebnis}{Ergebnisse}%
2507     \Crefname@preamble{example}{Beispiel}{Beispiele}%
2508     \Crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
2509     \Crefname@preamble{note}{Anmerkung}{Anmerkungen}%
2510     \if@cref@capitalise%
2511       \crefname@preamble{equation}{Gleichung}{Gleichungen}%
2512       \crefname@preamble{chapter}{Kapitel}{Kapitel}%
2513       \crefname@preamble{section}{Abschnitt}{Abschnitte}%
2514       \crefname@preamble{appendix}{Anhang}{Anh\"ange}%
2515       \crefname@preamble{figure}{Abbildung}{Abbildungen}%
2516       \crefname@preamble{table}{Tabelle}{Tabellen}%
2517       \crefname@preamble{theorem}{Theorem}{Theoremen}%
2518       \crefname@preamble{enumi}{Punkt}{Punkte}%
2519       \crefname@preamble{lemma}{Lemma}{Lemmata}%
2520       \crefname@preamble{corollary}{Korollar}{Korollaren}%
2521       \crefname@preamble{proposition}{Satz}{S\"atze}%
2522       \crefname@preamble{definition}{Definition}{Definitionen}%
2523       \crefname@preamble{result}{Ergebnis}{Ergebnisse}%
2524       \crefname@preamble{example}{Beispiel}{Beispiele}%
2525       \crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
2526       \crefname@preamble{note}{Anmerkung}{Anmerkungen}%
2527     \else%
2528       \crefname@preamble{equation}{Gleichung}{Gleichungen}%
2529       \crefname@preamble{chapter}{Kapitel}{Kapitel}%
2530       \crefname@preamble{section}{Abschnitt}{Abschnitte}%
2531       \crefname@preamble{appendix}{Anhang}{Anh\"ange}%
2532       \crefname@preamble{figure}{Abbildung}{Abbildungen}%
2533       \crefname@preamble{table}{Tabelle}{Tabellen}%
2534       \crefname@preamble{theorem}{Theorem}{Theoremen}%
2535       \crefname@preamble{enumi}{Punkt}{Punkte}%
2536       \crefname@preamble{lemma}{Lemma}{Lemmata}%
2537       \crefname@preamble{corollary}{Korollar}{Korollaren}%
2538       \crefname@preamble{proposition}{Satz}{S\"atze}%
2539       \crefname@preamble{definition}{Definition}{Definitionen}%
2540       \crefname@preamble{result}{Ergebnis}{Ergebnisse}%
2541       \crefname@preamble{example}{Beispiel}{Beispiele}%
2542       \crefname@preamble{remark}{Bemerkung}{Bemerkungen}%
2543       \crefname@preamble{note}{Anmerkung}{Anmerkungen}%
2544     \fi%
2545     \def\cref@language{german}%
2546     \cref@addto\extrasgerman{%
2547       \renewcommand{\crefrangeconjunction}{ bis~}%
2548       \renewcommand\crefrangepreconjunction{}%
2549       \renewcommand\crefrangepostconjunction{}%
2550       \renewcommand{\crefpairconjunction}{ und~}%
2551       \renewcommand{\crefmiddleconjunction}{, }%
2552       \renewcommand{\creflastconjunction}{ und~}%
2553       \renewcommand{\crefpairgroupconjunction}{ und~}%
2554       \renewcommand{\crefmiddlegroupconjunction}{, }%
2555       \renewcommand{\creflastgroupconjunction}{ und~}%
2556       \Crefname{equation}{Gleichung}{Gleichungen}%
2557       \Crefname{chapter}{Kapitel}{Kapitel}%
2558       \Crefname{section}{Abschnitt}{Abschnitte}%
2559       \Crefname{subsection}{Abschnitt}{Abschnitte}%
2560       \Crefname{subsubsection}{Abschnitt}{Abschnitte}%
2561       \Crefname{appendix}{Anhang}{Anh\"ange}%
2562       \Crefname{subappendix}{Anhang}{Anh\"ange}%
2563       \Crefname{subsubappendix}{Anhang}{Anh\"ange}%
2564       \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
2565       \Crefname{figure}{Abbildung}{Abbildungen}%
2566       \Crefname{subfigure}{Abbildung}{Abbildungen}%
2567       \Crefname{table}{Tabelle}{Tabellen}%
2568       \Crefname{subtable}{Tabelle}{Tabellen}%
2569       \Crefname{theorem}{Theorem}{Theoremen}%
2570       \Crefname{enumi}{Punkt}{Punkte}%
2571       \Crefname{enumii}{Punkt}{Punkte}%
2572       \Crefname{enumiii}{Punkt}{Punkte}%
2573       \Crefname{enumiv}{Punkt}{Punkte}%
2574       \Crefname{enumv}{Punkt}{Punkte}%
2575       \Crefname{lemma}{Lemma}{Lemmata}%
2576       \Crefname{corollary}{Korollar}{Korollaren}%
2577       \Crefname{proposition}{Satz}{S\"atze}%
2578       \Crefname{definition}{Definition}{Definitionen}%
2579       \Crefname{result}{Ergebnis}{Ergebnisse}%
2580       \Crefname{example}{Beispiel}{Beispiele}%
2581       \Crefname{remark}{Bemerkung}{Bemerkungen}%
2582       \Crefname{note}{Anmerkung}{Anmerkungen}%
2583       \if@cref@capitalise%
2584         \crefname{equation}{Gleichung}{Gleichungen}%
2585         \crefname{chapter}{Kapitel}{Kapitel}%
2586         \crefname{section}{Abschnitt}{Abschnitte}%
2587         \crefname{subsection}{Abschnitt}{Abschnitte}%
2588         \crefname{subsubsection}{Abschnitt}{Abschnitte}%
2589         \crefname{appendix}{Anhang}{Anh\"ange}%
2590         \crefname{subappendix}{Anhang}{Anh\"ange}%
2591         \crefname{subsubappendix}{Anhang}{Anh\"ange}%
2592         \crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
2593         \crefname{figure}{Abbildung}{Abbildungen}%
2594         \crefname{subfigure}{Abbildung}{Abbildungen}%
2595         \crefname{table}{Tabelle}{Tabellen}%
2596         \crefname{subtable}{Tabelle}{Tabellen}%
2597         \crefname{theorem}{Theorem}{Theoremen}%
2598         \crefname{enumi}{Punkt}{Punkte}%
2599         \crefname{enumii}{Punkt}{Punkte}%
2600         \crefname{enumiii}{Punkt}{Punkte}%
2601         \crefname{enumiv}{Punkt}{Punkte}%
2602         \crefname{enumv}{Punkt}{Punkte}%
2603         \crefname{lemma}{Lemma}{Lemmata}%
2604         \crefname{corollary}{Korollar}{Korollaren}%
2605         \crefname{proposition}{Satz}{S\"atze}%
2606         \crefname{definition}{Definition}{Definitionen}%
2607         \crefname{result}{Ergebnis}{Ergebnisse}%
2608         \crefname{example}{Beispiel}{Beispiele}%
2609         \crefname{remark}{Bemerkung}{Bemerkungen}%
2610         \crefname{note}{Anmerkung}{Anmerkungen}%
2611       \else%
2612         \crefname{equation}{Gleichung}{Gleichungen}%
2613         \crefname{chapter}{Kapitel}{Kapitel}%
2614         \crefname{section}{Abschnitt}{Abschnitte}%
2615         \crefname{subsection}{Abschnitt}{Abschnitte}%
2616         \crefname{subsubsection}{Abschnitt}{Abschnitte}%
2617         \crefname{appendix}{Anhang}{Anh\"ange}%
2618         \crefname{subappendix}{Anhang}{Anh\"ange}%
2619         \crefname{subsubappendix}{Anhang}{Anh\"ange}%
2620         \crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
2621         \crefname{figure}{Abbildung}{Abbildungen}%
2622         \crefname{subfigure}{Abbildung}{Abbildungen}%
2623         \crefname{table}{Tabelle}{Tabellen}%
2624         \crefname{subtable}{Tabelle}{Tabellen}%
2625         \crefname{theorem}{Theorem}{Theoremen}%
2626         \crefname{enumi}{Punkt}{Punkte}%
2627         \crefname{enumii}{Punkt}{Punkte}%
2628         \crefname{enumiii}{Punkt}{Punkte}%
2629         \crefname{enumiv}{Punkt}{Punkte}%
2630         \crefname{enumv}{Punkt}{Punkte}%
2631         \crefname{lemma}{Lemma}{Lemmata}%
2632         \crefname{corollary}{Korollar}{Korollaren}%
2633         \crefname{proposition}{Satz}{S\"atze}%
2634         \crefname{definition}{Definition}{Definitionen}%
2635         \crefname{result}{Ergebnis}{Ergebnisse}%
2636         \crefname{example}{Beispiel}{Beispiele}%
2637         \crefname{remark}{Bemerkung}{Bemerkungen}%
2638         \crefname{note}{Anmerkung}{Anmerkungen}%
2639       \fi%
2640     }}}
2641 \DeclareOption{ngerman}{%
2642   \PackageInfo{cleveref}{loaded `ngerman' language definitions}
2643   \ExecuteOptions{german}
2644   \def\cref@language{ngerman}
2645   \AtBeginDocument{%
2646     \cref@addto\extrasngerman{%
2647       \renewcommand{\crefrangeconjunction}{ bis~}%
2648       \renewcommand\crefrangepreconjunction{}%
2649       \renewcommand\crefrangepostconjunction{}%
2650       \renewcommand{\crefpairconjunction}{ und~}%
2651       \renewcommand{\crefmiddleconjunction}{, }%
2652       \renewcommand{\creflastconjunction}{ und~}%
2653       \renewcommand{\crefpairgroupconjunction}{ und~}%
2654       \renewcommand{\crefmiddlegroupconjunction}{, }%
2655       \renewcommand{\creflastgroupconjunction}{ und~}%
2656       \Crefname{equation}{Gleichung}{Gleichungen}%
2657       \Crefname{chapter}{Kapitel}{Kapitel}%
2658       \Crefname{section}{Abschnitt}{Abschnitte}%
2659       \Crefname{subsection}{Abschnitt}{Abschnitte}%
2660       \Crefname{subsubsection}{Abschnitt}{Abschnitte}%
2661       \Crefname{appendix}{Anhang}{Anh\"ange}%
2662       \Crefname{subappendix}{Anhang}{Anh\"ange}%
2663       \Crefname{subsubappendix}{Anhang}{Anh\"ange}%
2664       \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
2665       \Crefname{figure}{Abbildung}{Abbildungen}%
2666       \Crefname{subfigure}{Abbildung}{Abbildungen}%
2667       \Crefname{table}{Tabelle}{Tabellen}%
2668       \Crefname{subtable}{Tabelle}{Tabellen}%
2669       \Crefname{theorem}{Theorem}{Theoremen}%
2670       \Crefname{enumi}{Punkt}{Punkte}%
2671       \Crefname{enumii}{Punkt}{Punkte}%
2672       \Crefname{enumiii}{Punkt}{Punkte}%
2673       \Crefname{enumiv}{Punkt}{Punkte}%
2674       \Crefname{enumv}{Punkt}{Punkte}%
2675       \Crefname{lemma}{Lemma}{Lemmata}%
2676       \Crefname{corollary}{Korollar}{Korollaren}%
2677       \Crefname{proposition}{Satz}{S\"atze}%
2678       \Crefname{definition}{Definition}{Definitionen}%
2679       \Crefname{result}{Ergebnis}{Ergebnisse}%
2680       \Crefname{example}{Beispiel}{Beispiele}%
2681       \Crefname{remark}{Bemerkung}{Bemerkungen}%
2682       \Crefname{note}{Anmerkung}{Anmerkungen}%
2683       \if@cref@capitalise%
2684         \crefname{equation}{Gleichung}{Gleichungen}%
2685         \crefname{chapter}{Kapitel}{Kapitel}%
2686         \crefname{section}{Abschnitt}{Abschnitte}%
2687         \crefname{subsection}{Abschnitt}{Abschnitte}%
2688         \crefname{subsubsection}{Abschnitt}{Abschnitte}%
2689         \crefname{appendix}{Anhang}{Anh\"ange}%
2690         \crefname{subappendix}{Anhang}{Anh\"ange}%
2691         \crefname{subsubappendix}{Anhang}{Anh\"ange}%
2692         \crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
2693         \crefname{figure}{Abbildung}{Abbildungen}%
2694         \crefname{subfigure}{Abbildung}{Abbildungen}%
2695         \crefname{table}{Tabelle}{Tabellen}%
2696         \crefname{subtable}{Tabelle}{Tabellen}%
2697         \crefname{theorem}{Theorem}{Theoremen}%
2698         \crefname{enumi}{Punkt}{Punkte}%
2699         \crefname{enumii}{Punkt}{Punkte}%
2700         \crefname{enumiii}{Punkt}{Punkte}%
2701         \crefname{enumiv}{Punkt}{Punkte}%
2702         \crefname{enumv}{Punkt}{Punkte}%
2703         \crefname{lemma}{Lemma}{Lemmata}%
2704         \crefname{corollary}{Korollar}{Korollaren}%
2705         \crefname{proposition}{Satz}{S\"atze}%
2706         \crefname{definition}{Definition}{Definitionen}%
2707         \crefname{result}{Ergebnis}{Ergebnisse}%
2708         \crefname{example}{Beispiel}{Beispiele}%
2709         \crefname{remark}{Bemerkung}{Bemerkungen}%
2710         \crefname{note}{Anmerkung}{Anmerkungen}%
2711       \else%
2712         \crefname{equation}{Gleichung}{Gleichungen}%
2713         \crefname{chapter}{Kapitel}{Kapitel}%
2714         \crefname{section}{Abschnitt}{Abschnitte}%
2715         \crefname{subsection}{Abschnitt}{Abschnitte}%
2716         \crefname{subsubsection}{Abschnitt}{Abschnitte}%
2717         \crefname{appendix}{Anhang}{Anh\"ange}%
2718         \crefname{subappendix}{Anhang}{Anh\"ange}%
2719         \crefname{subsubappendix}{Anhang}{Anh\"ange}%
2720         \crefname{subsubsubappendix}{Anhang}{Anh\"ange}%
2721         \crefname{figure}{Abbildung}{Abbildungen}%
2722         \crefname{subfigure}{Abbildung}{Abbildungen}%
2723         \crefname{table}{Tabelle}{Tabellen}%
2724         \crefname{subtable}{Tabelle}{Tabellen}%
2725         \crefname{theorem}{Theorem}{Theoremen}%
2726         \crefname{enumi}{Punkt}{Punkte}%
2727         \crefname{enumii}{Punkt}{Punkte}%
2728         \crefname{enumiii}{Punkt}{Punkte}%
2729         \crefname{enumiv}{Punkt}{Punkte}%
2730         \crefname{enumv}{Punkt}{Punkte}%
2731         \crefname{lemma}{Lemma}{Lemmata}%
2732         \crefname{corollary}{Korollar}{Korollaren}%
2733         \crefname{proposition}{Satz}{S\"atze}%
2734         \crefname{definition}{Definition}{Definitionen}%
2735         \crefname{result}{Ergebnis}{Ergebnisse}%
2736         \crefname{example}{Beispiel}{Beispiele}%
2737         \crefname{remark}{Bemerkung}{Bemerkungen}%
2738         \crefname{note}{Anmerkung}{Anmerkungen}%
2739       \fi%
2740     }}}
2741 \DeclareOption{dutch}{%
2742   \PackageInfo{cleveref}{loaded `dutch' language definitions}
2743   \AtBeginDocument{%
2744     \def\crefrangeconjunction@preamble{ tot~}%
2745     \def\crefrangepreconjunction@preamble{}%
2746     \def\crefrangepostconjunction@preamble{}%
2747     \def\crefpairconjunction@preamble{ en~}%
2748     \def\crefmiddleconjunction@preamble{, }%
2749     \def\creflastconjunction@preamble{ en~}%
2750     \def\crefpairgroupconjunction@preamble{ en~}%
2751     \def\crefmiddlegroupconjunction@preamble{, }%
2752     \def\creflastgroupconjunction@preamble{ en~}%
2753     \Crefname@preamble{equation}%
2754       {Ver\-ge\-l\ij{}k\-ing}{Ver\-ge\-l\ij{}k\-ing\-en}%
2755     \Crefname@preamble{chapter}{Hoofdstuk}{Hoofdstuken}%
2756     \Crefname@preamble{section}{Paragraaf}{Paragrafen}%
2757     \Crefname@preamble{appendix}{Appendix}{Appendices}%
2758     \Crefname@preamble{figure}{Figuur}{Figuren}%
2759     \Crefname@preamble{table}{Tabel}{Tabellen}%
2760     \Crefname@preamble{enumi}{Punt}{Punten}%
2761     \Crefname@preamble{lemma}{Lemma}{Lemma's}%
2762     \Crefname@preamble{corollary}{Corollarium}{Corollaria}%
2763     \Crefname@preamble{proposition}{Bewering}{Beweringen}%
2764     \Crefname@preamble{definition}{Definitie}{Definities}%
2765     \Crefname@preamble{result}{Resultaat}{Resultaten}%
2766     \Crefname@preamble{example}{Voorbeeld}{Voorbeelden}%
2767     \Crefname@preamble{remark}{Opmerking}{Opmerkingen}%
2768     \Crefname@preamble{note}{Aantekening}{Aantekeningen}%
2769     \if@cref@capitalise%
2770       \crefname@preamble{equation}{Verg.}{Verg's.}%
2771       \crefname@preamble{chapter}{Hoofdstuk}{Hoofdstukken}%
2772       \crefname@preamble{section}{Paragraaf}{Paragrafen}%
2773       \crefname@preamble{appendix}{Appendix}{Appendices}%
2774       \crefname@preamble{figure}{Fig.}{Fig's.}%
2775       \crefname@preamble{table}{Tabel}{Tabellen}%
2776       \crefname@preamble{theorem}{Theorema}{Theorema's}%
2777       \crefname@preamble{enumi}{Punt}{Punten}%
2778       \crefname@preamble{lemma}{Lemma}{Lemma's}%
2779       \crefname@preamble{corollary}{Corollarium}{Corollaria}%
2780       \crefname@preamble{proposition}{Bewering}{Beweringen}%
2781       \crefname@preamble{definition}{Definitie}{Definities}%
2782       \crefname@preamble{result}{Resultaat}{Resultaten}%
2783       \crefname@preamble{example}{Voorbeeld}{Voorbeelden}%
2784       \crefname@preamble{remark}{Opmerking}{Opmerkingen}%
2785       \crefname@preamble{note}{Aantekening}{Aantekeningen}%
2786     \else%
2787       \crefname@preamble{equation}{verg.}{verg's.}%
2788       \crefname@preamble{chapter}{hoofdstuk}{hoofdstukken}%
2789       \crefname@preamble{section}{paragraaf}{paragrafen}%
2790       \crefname@preamble{appendix}{appendix}{appendices}%
2791       \crefname@preamble{figure}{fig.}{fig's.}%
2792       \crefname@preamble{table}{tabel}{tabellen}%
2793       \crefname@preamble{theorem}{theorema}{theorema's}%
2794       \crefname@preamble{enumi}{punt}{punten}%
2795       \crefname@preamble{lemma}{lemma}{lemma's}%
2796       \crefname@preamble{corollary}{corollarium}{corollaria}%
2797       \crefname@preamble{proposition}{bewering}{beweringen}%
2798       \crefname@preamble{definition}{definitie}{definities}%
2799       \crefname@preamble{result}{resultaat}{resultaten}%
2800       \crefname@preamble{example}{voorbeeld}{voorbeelden}%
2801       \crefname@preamble{remark}{opmerking}{opmerkingen}%
2802       \crefname@preamble{note}{aantekening}{aantekeningen}%
2803     \fi%
2804     \def\cref@language{dutch}%
2805     \cref@addto\extrasdutch{%
2806       \renewcommand{\crefrangeconjunction}{ tot~}%
2807       \renewcommand\crefrangepreconjunction{}%
2808       \renewcommand\crefrangepostconjunction{}%
2809       \renewcommand{\crefpairconjunction}{ en~}%
2810       \renewcommand{\crefmiddleconjunction}{, }%
2811       \renewcommand{\creflastconjunction}{ en~}%
2812       \renewcommand{\crefpairgroupconjunction}{ en~}%
2813       \renewcommand{\crefmiddlegroupconjunction}{, }%
2814       \renewcommand{\creflastgroupconjunction}{ en~}%
2815       \Crefname{equation}{Ver\-ge\-l\ij{}k\-ing}{Ver\-ge\-l\ij{}k\-ing\-en}%
2816       \Crefname{chapter}{Hoofdstuk}{Hoofdstuken}%
2817       \Crefname{section}{Paragraaf}{Paragrafen}%
2818       \Crefname{subsection}{Paragraaf}{Paragrafen}%
2819       \Crefname{subsubsection}{Paragraaf}{Paragrafen}%
2820       \Crefname{appendix}{Appendix}{Appendices}%
2821       \Crefname{subappendix}{Appendix}{Appendices}%
2822       \Crefname{subsubappendix}{Appendix}{Appendices}%
2823       \Crefname{subsubsubappendix}{Appendix}{Appendices}%
2824       \Crefname{figure}{Figuur}{Figuren}%
2825       \Crefname{subfigure}{Figuur}{Figuren}%
2826       \Crefname{table}{Tabel}{Tabellen}%
2827       \Crefname{subtable}{Tabel}{Tabellen}%
2828       \Crefname{theorem}{Theorema}{Theorema's}%
2829       \Crefname{enumi}{Punt}{Punten}%
2830       \Crefname{enumii}{Punt}{Punten}%
2831       \Crefname{enumiii}{Punt}{Punten}%
2832       \Crefname{enumiv}{Punt}{Punten}%
2833       \Crefname{enumv}{Punt}{Punten}%
2834       \Crefname{lemma}{Lemma}{Lemma's}%
2835       \Crefname{corollary}{Corollarium}{Corollaria}%
2836       \Crefname{proposition}{Bewering}{Beweringen}%
2837       \Crefname{definition}{Definitie}{Definities}%
2838       \Crefname{result}{Resultaat}{Resultaten}%
2839       \Crefname{example}{Voorbeeld}{Voorbeelden}%
2840       \Crefname{remark}{Opmerking}{Opmerkingen}%
2841       \Crefname{note}{Aantekening}{Aantekeningen}%
2842       \if@cref@capitalise%
2843         \crefname{equation}{Verg.}{Verg's.}%
2844         \crefname{chapter}{Hoofdstuk}{Hoofdstukken}%
2845         \crefname{section}{Paragraaf}{Paragrafen}%
2846         \crefname{appendix}{Appendix}{Appendices}%
2847         \crefname{figure}{Fig.}{Fig's.}%
2848         \crefname{table}{Tabel}{Tabellen}%
2849         \crefname{theorem}{Theorema}{Theorema's}%
2850         \crefname{enumi}{Punt}{Punten}%
2851         \crefname{lemma}{Lemma}{Lemma's}%
2852         \crefname{corollary}{Corollarium}{Corollaria}%
2853         \crefname{proposition}{Bewering}{Beweringen}%
2854         \crefname{definition}{Definitie}{Definities}%
2855         \crefname{result}{Resultaat}{Resultaten}%
2856         \crefname{example}{Voorbeeld}{Voorbeelden}%
2857         \crefname{remark}{Opmerking}{Opmerkingen}%
2858         \crefname{note}{Aantekening}{Aantekeningen}%
2859       \else%
2860         \crefname{equation}{verg.}{verg's.}%
2861         \crefname{chapter}{hoofdstuk}{hoofdstukken}%
2862         \crefname{section}{paragraaf}{paragrafen}%
2863         \crefname{appendix}{appendix}{appendices}%
2864         \crefname{figure}{fig.}{fig's.}%
2865         \crefname{table}{tabel}{tabellen}%
2866         \crefname{theorem}{theorema}{theorema's}%
2867         \crefname{enumi}{punt}{punten}%
2868         \crefname{lemma}{lemma}{lemma's}%
2869         \crefname{corollary}{corollarium}{corollaria}%
2870         \crefname{proposition}{bewering}{beweringen}%
2871         \crefname{definition}{definitie}{definities}%
2872         \crefname{result}{resultaat}{resultaten}%
2873         \crefname{example}{voorbeeld}{voorbeelden}%
2874         \crefname{remark}{opmerking}{opmerkingen}%
2875         \crefname{note}{aantekening}{aantekeningen}%
2876       \fi%
2877     }}}
2878 \DeclareOption{french}{%
2879   \PackageInfo{cleveref}{loaded `french' language definitions}
2880   \AtBeginDocument{%
2881     \def\crefrangeconjunction@preamble{ \`a~}%
2882     \def\crefrangepreconjunction@preamble{}%
2883     \def\crefrangepostconjunction@preamble{}%
2884     \def\crefpairconjunction@preamble{ et~}%
2885     \def\crefmiddleconjunction@preamble{, }%
2886     \def\creflastconjunction@preamble{ et~}%
2887     \def\crefpairgroupconjunction@preamble{ et~}%
2888     \def\crefmiddlegroupconjunction@preamble{, }%
2889     \def\creflastgroupconjunction@preamble{, et~}%
2890     \Crefname@preamble{equation}{{\'E}quation}{{\'E}quations}%
2891     \Crefname@preamble{chapter}{Chapitre}{Chapitres}%
2892     \Crefname@preamble{section}{Section}{Sections}%
2893     \Crefname@preamble{appendix}{Appendice}{Appendices}%
2894     \Crefname@preamble{figure}{Figure}{Figures}%
2895     \Crefname@preamble{table}{Tableau}{Tableaux}%
2896     \Crefname@preamble{theorem}{Th\'eor\`eme}{Th\'eor\`emes}%
2897     \Crefname@preamble{enumi}{Point}{Points}%
2898     \Crefname@preamble{lemma}{Lemme}{Lemmes}%
2899     \Crefname@preamble{corollary}{Corollaire}{Corollaires}%
2900     \Crefname@preamble{proposition}{Proposition}{Propositions}%
2901     \Crefname@preamble{definition}{D\'efinition}{D\'efinitions}%
2902     \Crefname@preamble{result}{R\'esultat}{R\'esultats}%
2903     \Crefname@preamble{example}{Exemple}{Exemples}%
2904     \Crefname@preamble{remark}{Remarque}{Remarques}%
2905     \if@cref@capitalise%
2906       \crefname@preamble{equation}{{\'E}quation}{{\'E}quations}%
2907       \crefname@preamble{chapter}{Chapitre}{Chapitres}%
2908       \crefname@preamble{section}{Section}{Sections}%
2909       \crefname@preamble{appendix}{Appendice}{Appendices}%
2910       \crefname@preamble{figure}{Figure}{Figures}%
2911       \crefname@preamble{table}{Tableau}{Tableaux}%
2912       \crefname@preamble{theorem}{Th\'eor\`eme}{Th\'eor\`emes}%
2913       \crefname@preamble{enumi}{Point}{Points}%
2914       \crefname@preamble{lemma}{Lemme}{Lemmes}%
2915       \crefname@preamble{corollary}{Corollaire}{Corollaires}%
2916       \crefname@preamble{proposition}{Proposition}{Propositions}%
2917       \crefname@preamble{definition}{D\'efinition}{D\'efinitions}%
2918       \crefname@preamble{result}{R\'esultat}{R\'esultats}%
2919       \crefname@preamble{example}{Exemple}{Exemples}%
2920       \crefname@preamble{remark}{Remarque}{Remarques}%
2921       \crefname@preamble{note}{Commentaire}{Commentaires}%
2922     \else%
2923       \crefname@preamble{equation}{{\'e}quation}{{\'e}quations}%
2924       \crefname@preamble{chapter}{chapitre}{chapitres}%
2925       \crefname@preamble{section}{section}{sections}%
2926       \crefname@preamble{appendix}{appendice}{appendices}%
2927       \crefname@preamble{figure}{figure}{figures}%
2928       \crefname@preamble{table}{tableau}{tableaux}%
2929       \crefname@preamble{theorem}{th\'eor\`eme}{th\'eor\`emes}%
2930       \crefname@preamble{enumi}{point}{points}%
2931       \crefname@preamble{lemma}{lemme}{lemmes}%
2932       \crefname@preamble{corollary}{corollaire}{corollaires}%
2933       \crefname@preamble{proposition}{proposition}{propositions}%
2934       \crefname@preamble{definition}{d\'efinition}{d\'efinitions}%
2935       \crefname@preamble{result}{r\'esultat}{r\'esultats}%
2936       \crefname@preamble{example}{exemple}{exemples}%
2937       \crefname@preamble{remark}{remarque}{remarques}%
2938       \crefname@preamble{note}{commentaire}{commentaires}%
2939     \fi%
2940     \def\cref@language{french}%
2941     \cref@addto\extrasfrench{%
2942       \renewcommand{\crefrangeconjunction}{ \`a~}%
2943       \renewcommand\crefrangepreconjunction{}%
2944       \renewcommand\crefrangepostconjunction{}%
2945       \renewcommand{\crefpairconjunction}{ et~}%
2946       \renewcommand{\crefmiddleconjunction}{, }%
2947       \renewcommand{\creflastconjunction}{ et~}%
2948       \renewcommand{\crefpairgroupconjunction}{ et~}%
2949       \renewcommand{\crefmiddlegroupconjunction}{, }%
2950       \renewcommand{\creflastgroupconjunction}{ et~}%
2951       \Crefname{equation}{{\'E}quation}{{\'E}quations}%
2952       \Crefname{chapter}{Chapitre}{Chapitres}%
2953       \Crefname{section}{Section}{Sections}%
2954       \Crefname{subsection}{Section}{Sections}%
2955       \Crefname{subsubsection}{Section}{Sections}%
2956       \Crefname{appendix}{Appendice}{Appendices}%
2957       \Crefname{subappendix}{Appendice}{Appendices}%
2958       \Crefname{subsubappendix}{Appendice}{Appendices}%
2959       \Crefname{subsubsubappendix}{Appendice}{Appendices}%
2960       \Crefname{figure}{Figure}{Figures}%
2961       \Crefname{subfigure}{Figure}{Figures}%
2962       \Crefname{table}{Tableau}{Tableaux}%
2963       \Crefname{subtable}{Tableau}{Tableaux}%
2964       \Crefname{theorem}{Th\'eor\`eme}{Th\'eor\`emes}%
2965       \Crefname{enumi}{Point}{Points}%
2966       \Crefname{enumii}{Point}{Points}%
2967       \Crefname{enumiii}{Point}{Points}%
2968       \Crefname{enumiv}{Point}{Points}%
2969       \Crefname{enumv}{Point}{Points}%
2970       \Crefname{lemma}{Lemme}{Lemmes}%
2971       \Crefname{corollary}{Corollaire}{Corollaires}%
2972       \Crefname{proposition}{Proposition}{Propositions}%
2973       \Crefname{definition}{D\'efinition}{D\'efinitions}%
2974       \Crefname{result}{R\'esultat}{R\'esultats}%
2975       \Crefname{example}{Exemple}{Exemples}%
2976       \Crefname{remark}{Remarque}{Remarques}%
2977       \Crefname{note}{Commentaire}{Commentaires}%
2978       \if@cref@capitalise%
2979         \crefname{equation}{{\'E}quation}{{\'E}quations}%
2980         \crefname{chapter}{Chapitre}{Chapitres}%
2981         \crefname{section}{Section}{Sections}%
2982         \crefname{subsection}{Section}{Sections}%
2983         \crefname{subsubsection}{Section}{Sections}%
2984         \crefname{appendix}{Appendice}{Appendices}%
2985         \crefname{subappendix}{Appendice}{Appendices}%
2986         \crefname{subsubappendix}{Appendice}{Appendices}%
2987         \crefname{subsubsubappendix}{Appendice}{Appendices}%
2988         \crefname{figure}{Figure}{Figures}%
2989         \crefname{subfigure}{Figure}{Figures}%
2990         \crefname{table}{Tableau}{Tableaux}%
2991         \crefname{subtable}{Tableau}{Tableaux}%
2992         \crefname{theorem}{Th\'eor\`eme}{Th\'eor\`emes}%
2993         \crefname{enumi}{Point}{Points}%
2994         \crefname{enumii}{Point}{Points}%
2995         \crefname{enumiii}{Point}{Points}%
2996         \crefname{enumiv}{Point}{Points}%
2997         \crefname{enumv}{Point}{Points}%
2998         \crefname{lemma}{Lemme}{Lemmes}%
2999         \crefname{corollary}{Corollaire}{Corollaires}%
3000         \crefname{proposition}{Proposition}{Propositions}%
3001         \crefname{definition}{D\'efinition}{D\'efinitions}%
3002         \crefname{result}{R\'esultat}{R\'esultats}%
3003         \crefname{example}{Exemple}{Exemples}%
3004         \crefname{remark}{Remarque}{Remarques}%
3005         \crefname{note}{Commentaire}{Commentaires}%
3006       \else%
3007         \crefname{equation}{{\'e}quation}{{\'e}quations}%
3008         \crefname{chapter}{chapitre}{chapitres}%
3009         \crefname{section}{section}{sections}%
3010         \crefname{subsection}{section}{sections}%
3011         \crefname{subsubsection}{section}{sections}%
3012         \crefname{appendix}{appendice}{appendices}%
3013         \crefname{subappendix}{appendice}{appendices}%
3014         \crefname{subsubappendix}{appendice}{appendices}%
3015         \crefname{subsubsubappendix}{appendice}{appendices}%
3016         \crefname{figure}{figure}{figures}%
3017         \crefname{subfigure}{figure}{figures}%
3018         \crefname{table}{tableau}{tableaux}%
3019         \crefname{subtable}{tableau}{tableaux}%
3020         \crefname{theorem}{th\'eor\`eme}{th\'eor\`emes}%
3021         \crefname{enumi}{point}{points}%
3022         \crefname{enumii}{point}{points}%
3023         \crefname{enumiii}{point}{points}%
3024         \crefname{enumiv}{point}{points}%
3025         \crefname{enumv}{point}{points}%
3026         \crefname{lemma}{lemme}{lemmes}%
3027         \crefname{corollary}{corollaire}{corollaires}%
3028         \crefname{proposition}{proposition}{propositions}%
3029         \crefname{definition}{d\'efinition}{d\'efinitions}%
3030         \crefname{result}{r\'esultat}{r\'esultats}%
3031         \crefname{example}{exemple}{exemples}%
3032         \crefname{remark}{remarque}{remarques}%
3033         \crefname{note}{commentaire}{commentaires}%
3034       \fi%
3035     }}}
3036 \DeclareOption{spanish}{%
3037   \PackageInfo{cleveref}{loaded `spanish' language definitions}
3038   \AtBeginDocument{%
3039     \def\crefrangeconjunction@preamble{ a~}%
3040     \def\crefrangepreconjunction@preamble{}%
3041     \def\crefrangepostconjunction@preamble{}%
3042     \def\crefpairconjunction@preamble{ y~}%
3043     \def\crefmiddleconjunction@preamble{, }%
3044     \def\creflastconjunction@preamble{ y~}%
3045     \def\crefpairgroupconjunction@preamble{ y~}%
3046     \def\crefmiddlegroupconjunction@preamble{, }%
3047     \def\creflastgroupconjunction@preamble{ y~}%
3048     \Crefname@preamble{equation}{Ecuaci\'on}{Ecuaciones}%
3049     \Crefname@preamble{chapter}{Cap\'itulo}{Cap\'itulos}%
3050     \Crefname@preamble{section}{Secci\'on}{Secciones}%
3051     \Crefname@preamble{appendix}{Ap\'endice}{Ap\'endices}%
3052     \Crefname@preamble{figure}{Figura}{Figuras}%
3053     \Crefname@preamble{table}{Cuadro}{Cuadros}%
3054     \Crefname@preamble{theorem}{Teorema}{Teoremas}%
3055     \Crefname@preamble{enumi}{Punto}{Puntos}%
3056     \Crefname@preamble{lemma}{Lema}{Lemas}%
3057     \Crefname@preamble{corollary}{Corolario}{Corolarios}%
3058     \Crefname@preamble{proposition}{Proposici\'on}{Proposiciones}%
3059     \Crefname@preamble{definition}{Definici\'on}{Definiciones}%
3060     \Crefname@preamble{result}{Resultado}{Resultados}%
3061     \Crefname@preamble{example}{Ejemplo}{Ejemplos}%
3062     \Crefname@preamble{remark}{Observaci\'on}{Observaciones}%
3063     \Crefname@preamble{note}{Nota}{Notas}%
3064     \if@cref@capitalise%
3065       \crefname@preamble{equation}{Ecuaci\'on}{ecuaciones}%
3066       \crefname@preamble{chapter}{Cap\'itulo}{cap\'itulos}%
3067       \crefname@preamble{section}{Secci\'on}{secciones}%
3068       \crefname@preamble{appendix}{Ap\'endice}{ap\'endices}%
3069       \crefname@preamble{figure}{Figura}{figuras}%
3070       \crefname@preamble{table}{Cuadro}{cuadros}%
3071       \crefname@preamble{theorem}{Teorema}{teoremas}%
3072       \crefname@preamble{enumi}{Punto}{puntos}%
3073       \crefname@preamble{lemma}{Lema}{lemas}%
3074       \crefname@preamble{corollary}{Corolario}{corolarios}%
3075       \crefname@preamble{proposition}{Proposici\'on}{proposiciones}%
3076       \crefname@preamble{definition}{Definici\'on}{definiciones}%
3077       \crefname@preamble{result}{Resultado}{resultados}%
3078       \crefname@preamble{example}{Ejemplo}{ejemplos}%
3079       \crefname@preamble{remark}{Observaci\'on}{observaciones}%
3080       \crefname@preamble{note}{Nota}{notas}%
3081     \else%
3082       \crefname@preamble{equation}{ecuaci\'on}{ecuaciones}%
3083       \crefname@preamble{chapter}{cap\'itulo}{cap\'itulos}%
3084       \crefname@preamble{section}{secci\'on}{secciones}%
3085       \crefname@preamble{appendix}{ap\'endice}{ap\'endices}%
3086       \crefname@preamble{figure}{figura}{figuras}%
3087       \crefname@preamble{table}{cuadro}{cuadros}%
3088       \crefname@preamble{theorem}{teorema}{teoremas}%
3089       \crefname@preamble{enumi}{punto}{puntos}%
3090       \crefname@preamble{lemma}{lema}{lemas}%
3091       \crefname@preamble{corollary}{corolario}{corolarios}%
3092       \crefname@preamble{proposition}{proposici\'on}{proposiciones}%
3093       \crefname@preamble{definition}{definici\'on}{definiciones}%
3094       \crefname@preamble{result}{resultado}{resultados}%
3095       \crefname@preamble{example}{ejemplo}{ejemplos}%
3096       \crefname@preamble{remark}{observaci\'on}{observaciones}%
3097       \crefname@preamble{note}{nota}{notas}%
3098     \fi%
3099     \def\cref@language{spanish}%
3100     \cref@addto\extrasspanish{%
3101       \renewcommand{\crefrangeconjunction}{ a~}%
3102       \renewcommand{\crefrangepreconjunction}{}%
3103       \renewcommand{\crefrangepostconjunction}{}%
3104       \renewcommand{\crefpairconjunction}{ y~}%
3105       \renewcommand{\crefmiddleconjunction}{, }%
3106       \renewcommand{\creflastconjunction}{ y~}%
3107       \renewcommand{\crefpairgroupconjunction}{ y~}%
3108       \renewcommand{\crefmiddlegroupconjunction}{, }%
3109       \renewcommand{\creflastgroupconjunction}{ y~}%
3110       \Crefname{equation}{Ecuaci\'on}{Ecuaciones}%
3111       \Crefname{chapter}{Cap\'itulo}{Cap\'itulos}%
3112       \Crefname{section}{Secci\'on}{Secciones}%
3113       \Crefname{subsection}{Secci\'on}{Secciones}%
3114       \Crefname{subsubsection}{Secci\'on}{Secciones}%
3115       \Crefname{appendix}{Ap\'endice}{Ap\'endices}%
3116       \Crefname{subappendix}{Ap\'endice}{Ap\'endices}%
3117       \Crefname{subsubappendix}{Ap\'endice}{Ap\'endices}%
3118       \Crefname{subsubsubappendix}{Ap\'endice}{Ap\'endices}%
3119       \Crefname{figure}{Figura}{Figuras}%
3120       \Crefname{subfigure}{Figura}{Figuras}%
3121       \Crefname{table}{Cuadro}{Cuadros}%
3122       \Crefname{subtable}{Cuadro}{Cuadros}%
3123       \Crefname{theorem}{Teorema}{Teoremas}%
3124       \Crefname{enumi}{Punto}{Puntos}%
3125       \Crefname{enumii}{Punto}{Puntos}%
3126       \Crefname{enumiii}{Punto}{Puntos}%
3127       \Crefname{enumiv}{Punto}{Puntos}%
3128       \Crefname{enumv}{Punto}{Puntos}%
3129       \Crefname{lemma}{Lema}{Lemas}%
3130       \Crefname{corollary}{Corolario}{Corolarios}%
3131       \Crefname{proposition}{Proposici\'on}{Proposiciones}%
3132       \Crefname{definition}{Definici\'on}{Definiciones}%
3133       \Crefname{result}{Resultado}{Resultados}%
3134       \Crefname{example}{Ejemplo}{Ejemplos}%
3135       \Crefname{remark}{Observaci\'on}{Observaci\'on}%
3136       \Crefname{note}{Nota}{Notas}%
3137       \if@cref@capitalise%
3138         \crefname{equation}{Ecuaci\'on}{Ecuaciones}%
3139         \crefname{chapter}{Cap\'itulo}{Cap\'itulos}%
3140         \crefname{section}{Secci\'on}{Secciones}%
3141         \crefname{subsection}{Secci\'on}{Secciones}%
3142         \crefname{subsubsection}{Secci\'on}{Secciones}%
3143         \crefname{appendix}{Ap\'endice}{Ap\'endices}%
3144         \crefname{subappendix}{Ap\'endice}{Ap\'endices}%
3145         \crefname{subsubappendix}{Ap\'endice}{Ap\'endices}%
3146         \crefname{subsubsubappendix}{Ap\'endice}{Ap\'endices}%
3147         \crefname{figure}{Figura}{Figuras}%
3148         \crefname{subfigure}{Figura}{Figuras}%
3149         \crefname{table}{Cuadro}{Cuadros}%
3150         \crefname{subtable}{Cuadro}{Cuadros}%
3151         \crefname{theorem}{Teorema}{Teoremas}%
3152         \crefname{enumi}{Punto}{Puntos}%
3153         \crefname{enumii}{Punto}{Puntos}%
3154         \crefname{enumiii}{Punto}{Puntos}%
3155         \crefname{enumiv}{Punto}{Puntos}%
3156         \crefname{enumv}{Punto}{Puntos}%
3157         \crefname{lemma}{Lema}{Lemas}%
3158         \crefname{corollary}{Corolario}{Corolarios}%
3159         \crefname{proposition}{Proposici\'on}{Proposiciones}%
3160         \crefname{definition}{Definici\'on}{Definiciones}%
3161         \crefname{result}{Resultado}{Resultados}%
3162         \crefname{example}{Ejemplo}{Ejemplos}%
3163         \crefname{remark}{Observaci\'on}{Observaci\'ones}%
3164         \crefname{note}{Nota}{Notas}%
3165       \else%
3166         \crefname{equation}{ecuaci\'on}{ecuaciones}%
3167         \crefname{chapter}{cap\'itulo}{cap\'itulos}%
3168         \crefname{section}{secci\'on}{secciones}%
3169         \crefname{subsection}{secci\'on}{secciones}%
3170         \crefname{subsubsection}{secci\'on}{secciones}%
3171         \crefname{appendix}{ap\'endice}{ap\'endices}%
3172         \crefname{subappendix}{ap\'endice}{ap\'endices}%
3173         \crefname{subsubappendix}{ap\'endice}{ap\'endices}%
3174         \crefname{subsubsubappendix}{ap\'endice}{ap\'endices}%
3175         \crefname{figure}{figura}{figuras}%
3176         \crefname{subfigure}{figura}{figuras}%
3177         \crefname{table}{cuadro}{cuadros}%
3178         \crefname{subtable}{cuadro}{cuadros}%
3179         \crefname{theorem}{teorema}{teoremas}%
3180         \crefname{enumi}{punto}{puntos}%
3181         \crefname{enumii}{punto}{puntos}%
3182         \crefname{enumiii}{punto}{puntos}%
3183         \crefname{enumiv}{punto}{puntos}%
3184         \crefname{enumv}{punto}{puntos}%
3185         \crefname{lemma}{lema}{lemas}%
3186         \crefname{corollary}{corolario}{corolarios}%
3187         \crefname{proposition}{proposici\'on}{proposiciones}%
3188         \crefname{definition}{definici\'on}{definiciones}%
3189         \crefname{result}{resultado}{resultados}%
3190         \crefname{example}{ejemplo}{ejemplos}%
3191         \crefname{remark}{observaci\'on}{observaci\'ones}%
3192         \crefname{note}{nota}{notas}%
3193       \fi%
3194     }}}
3195 \DeclareOption{italian}{%
3196   \PackageInfo{cleveref}{loaded `italian' language definitions}
3197   \AtBeginDocument{%
3198     \def\crefrangeconjunction@preamble{ a~}%
3199     \def\crefrangepreconjunction@preamble{da~}%
3200     \def\crefrangepostconjunction@preamble{}%
3201     \def\crefpairconjunction@preamble{ e~}%
3202     \def\crefmiddleconjunction@preamble{, }%
3203     \def\creflastconjunction@preamble{ e~}%
3204     \def\crefpairgroupconjunction@preamble{ e~}%
3205     \def\crefmiddlegroupconjunction@preamble{, }%
3206     \def\creflastgroupconjunction@preamble{ e~}%
3207     \Crefname@preamble{equation}{Equazione}{Equazioni}%
3208     \Crefname@preamble{chapter}{Capitolo}{Capitoli}%
3209     \Crefname@preamble{section}{Sezione}{Sezioni}%
3210     \Crefname@preamble{appendix}{Appendice}{Appendici}%
3211     \Crefname@preamble{figure}{Figura}{Figure}%
3212     \Crefname@preamble{table}{Tabella}{Tabelle}%
3213     \Crefname@preamble{theorem}{Teorema}{Teoremi}%
3214     \Crefname@preamble{enumi}{Voce}{Voci}%
3215     \Crefname@preamble{lemma}{Lemma}{Lemmi}%
3216     \Crefname@preamble{corollary}{Corollario}{Corollari}%
3217     \Crefname@preamble{proposition}{Proposizione}{Proposizioni}%
3218     \Crefname@preamble{definition}{Definizioni}{Definizioni}%
3219     \Crefname@preamble{result}{Risultato}{Risultati}%
3220     \Crefname@preamble{example}{esempio}{esempi}%
3221     \Crefname@preamble{remark}{Osservazione}{Osservazioni}%
3222     \Crefname@preamble{note}{Nota}{Note}%
3223     \if@cref@capitalise%
3224       \crefname@preamble{equation}{Eq.}{Eq.}%
3225       \crefname@preamble{chapter}{Capitolo}{Capitoli}%
3226       \crefname@preamble{section}{Sezione}{Sezioni}%
3227       \crefname@preamble{appendix}{Appendice}{Appendici}%
3228       \crefname@preamble{figure}{Fig.}{Fig.}%
3229       \crefname@preamble{table}{Tabella}{Tabelle}%
3230       \crefname@preamble{theorem}{Teorema}{Teoremi}%
3231       \crefname@preamble{enumi}{Voce}{Voci}%
3232       \crefname@preamble{lemma}{Lemma}{Lemmi}%
3233       \crefname@preamble{corollary}{Corollario}{Corollari}%
3234       \crefname@preamble{proposition}{Proposizione}{Proposizioni}%
3235       \crefname@preamble{definition}{Definizione}{Definizioni}%
3236       \crefname@preamble{result}{Risultato}{Risultati}%
3237       \crefname@preamble{example}{Esempio}{Esempi}%
3238       \crefname@preamble{remark}{Osservazione}{Osservazioni}%
3239       \crefname@preamble{note}{Nota}{Note}%
3240     \else%
3241       \crefname@preamble{equation}{eq.}{eq.}%
3242       \crefname@preamble{chapter}{capitolo}{capitoli}%
3243       \crefname@preamble{section}{sezione}{sezioni}%
3244       \crefname@preamble{appendix}{appendice}{appendici}%
3245       \crefname@preamble{figure}{fig.}{fig.}%
3246       \crefname@preamble{table}{tabella}{tabelle}%
3247       \crefname@preamble{theorem}{teorema}{teoremi}%
3248       \crefname@preamble{enumi}{voce}{voci}%
3249       \crefname@preamble{lemma}{lemma}{lemmi}%
3250       \crefname@preamble{corollary}{corollario}{corollari}%
3251       \crefname@preamble{proposition}{proposizione}{proposizioni}%
3252       \crefname@preamble{definition}{definizione}{definizioni}%
3253       \crefname@preamble{result}{risultato}{risultati}%
3254       \crefname@preamble{example}{esempio}{esempi}%
3255       \crefname@preamble{remark}{osservazione}{osservazioni}%
3256       \crefname@preamble{note}{nota}{note}%
3257     \fi%
3258     \def\cref@language{italiano}%
3259     \cref@addto\extrasenglish{%
3260       \renewcommand{\crefrangeconjunction}{ a~}%
3261       \renewcommand\crefrangepreconjunction{da~}%
3262       \renewcommand\crefrangepostconjunction{}%
3263       \renewcommand{\crefpairconjunction}{ e~}%
3264       \renewcommand{\crefmiddleconjunction}{, }%
3265       \renewcommand{\creflastconjunction}{ e~}%
3266       \renewcommand{\crefpairgroupconjunction}{ e~}%
3267       \renewcommand{\crefmiddlegroupconjunction}{, }%
3268       \renewcommand{\creflastgroupconjunction}{ e~}%
3269       \Crefname{equation}{Equazione}{Equazioni}%
3270       \Crefname{chapter}{Capitolo}{Capitoli}%
3271       \Crefname{section}{Sezione}{Sezioni}%
3272       \Crefname{subsection}{Sezione}{Sezioni}%
3273       \Crefname{subsubsection}{Sezione}{Sezioni}%
3274       \Crefname{appendix}{Appendice}{Appendici}%
3275       \Crefname{subappendix}{Appendice}{Appendici}%
3276       \Crefname{subsubappendix}{Appendice}{Appendici}%
3277       \Crefname{subsubsubappendix}{Appendice}{Appendici}%
3278       \Crefname{figure}{Figura}{Figure}%
3279       \Crefname{subfigure}{Figura}{Figure}%
3280       \Crefname{table}{Tabella}{Tabelle}%
3281       \Crefname{subtable}{Tabella}{Tabelle}%
3282       \Crefname{theorem}{Teorema}{Teoremi}%
3283       \Crefname{enumi}{Voce}{Voci}%
3284       \Crefname{enumii}{Voce}{Voci}%
3285       \Crefname{enumiii}{Voce}{Voci}%
3286       \Crefname{enumiv}{Voce}{Voci}%
3287       \Crefname{enumv}{Voce}{Voci}%
3288       \Crefname{lemma}{Lemma}{Lemmi}%
3289       \Crefname{corollary}{Corollario}{Corollari}%
3290       \Crefname{proposition}{Proposizione}{Proposizioni}%
3291       \Crefname{definition}{Definizione}{Definizione}%
3292       \Crefname{result}{Risultato}{Risultati}%
3293       \Crefname{example}{esempio}{esempi}%
3294       \Crefname{remark}{Osservazione}{Osservazioni}%
3295       \Crefname{note}{Nota}{Note}%
3296       \if@cref@capitalise%
3297         \crefname{equation}{Eq.}{Eq.}%
3298         \crefname{chapter}{Capitolo}{Capitoli}%
3299         \crefname{section}{Sezione}{Sezioni}%
3300         \crefname{subsection}{Sezione}{Sezioni}%
3301         \crefname{subsubsection}{Sezione}{Sezioni}%
3302         \crefname{appendix}{Appendice}{Appendici}%
3303         \crefname{subappendix}{Appendice}{Appendici}%
3304         \crefname{subsubappendix}{Appendice}{Appendici}%
3305         \crefname{subsubsubappendix}{Appendice}{Appendici}%
3306         \crefname{figure}{Fig.}{Fig.}%
3307         \crefname{subfigure}{Fig.}{Fig.}%
3308         \crefname{table}{Tabella}{Tabelle}%
3309         \crefname{subtable}{Tabella}{Tabelle}%
3310         \crefname{theorem}{Teorema}{Teoremi}%
3311         \crefname{enumi}{Voce}{Voci}%
3312         \crefname{enumii}{Voce}{Voci}%
3313         \crefname{enumiii}{Voce}{Voci}%
3314         \crefname{enumiv}{Voce}{Voci}%
3315         \crefname{enumv}{Voce}{Voci}%
3316         \crefname{lemma}{Lemma}{Lemmi}%
3317         \crefname{corollary}{Corollario}{Corollari}%
3318         \crefname{proposition}{Proposizione}{Proposizioni}%
3319         \crefname{definition}{Definizione}{Definizione}%
3320         \crefname{result}{Risultato}{Risultati}%
3321         \crefname{example}{Esempio}{Esempi}%
3322         \crefname{remark}{Osservazione}{Osservazioni}%
3323         \crefname{note}{Nota}{Note}%
3324       \else%
3325         \crefname{equation}{eq.}{eq.}%
3326         \crefname{chapter}{capitolo}{capitoli}%
3327         \crefname{section}{sezione}{sezioni}%
3328         \crefname{subsection}{sezione}{sezioni}%
3329         \crefname{subsubsection}{sezione}{sezioni}%
3330         \crefname{appendix}{appendice}{appendici}%
3331         \crefname{subappendix}{appendice}{appendici}%
3332         \crefname{subsubappendix}{appendice}{appendici}%
3333         \crefname{subsubsubappendix}{appendice}{appendici}%
3334         \crefname{figure}{fig.}{fig.}%
3335         \crefname{subfigure}{fig.}{fig.}%
3336         \crefname{table}{tabella}{tabelle}%
3337         \crefname{subtable}{tabella}{tabelle}%
3338         \crefname{theorem}{teorema}{teoremi}%
3339         \crefname{enumi}{voce}{voci}%
3340         \crefname{enumii}{voce}{voci}%
3341         \crefname{enumiii}{voce}{voci}%
3342         \crefname{enumiv}{voce}{voci}%
3343         \crefname{enumv}{voce}{voci}%
3344         \crefname{lemma}{lemma}{lemmi}%
3345         \crefname{corollary}{corollario}{corollari}%
3346         \crefname{proposition}{proposizione}{proposizioni}%
3347         \crefname{definition}{definizione}{definizione}%
3348         \crefname{result}{risultato}{risultati}%
3349         \crefname{example}{esempio}{esempi}%
3350         \crefname{remark}{osservazione}{osservazioni}%
3351         \crefname{note}{nota}{note}%
3352       \fi%
3353     }}}
3354 \edef\@curroptions{\@ptionlist{\@currname.\@currext}}%
3355 \@expandtwoargs\in@{,capitalise,}{%
3356   ,\@classoptionslist,\@curroptions,}%
3357 \ifin@%
3358   \ExecuteOptions{capitalise}%
3359 \else%
3360   \@expandtwoargs\in@{,capitalize,}{%
3361     ,\@classoptionslist,\@curroptions,}%
3362   \ifin@%
3363     \ExecuteOptions{capitalise}%
3364   \fi%
3365 \fi%
3366 \ExecuteOptions{english}
3367 \ProcessOptions*\relax
3368 \AtBeginDocument{%
3369   \edef\@tmpa{%
3370     \expandafter\noexpand\csname extras\cref@language\endcsname}%
3371   \@ifundefined{crefrangeconjunction}{%
3372     \let\crefrangeconjunction\crefrangeconjunction@preamble%
3373   }{%
3374     \expandafter\def\expandafter\@tmpb\expandafter{%
3375       \expandafter\renewcommand\expandafter%
3376       {\expandafter\crefrangeconjunction\expandafter}%
3377       \expandafter{\crefrangeconjunction}}%
3378     \expandafter\expandafter\expandafter\cref@addto%
3379       \expandafter\@tmpa\expandafter{\@tmpb}%
3380   }%
3381   \@ifundefined{crefrangepreconjunction}{%
3382     \let\crefrangepreconjunction\crefrangepreconjunction@preamble%
3383   }{%
3384     \expandafter\def\expandafter\@tmpb\expandafter{%
3385       \expandafter\renewcommand\expandafter%
3386       {\expandafter\crefrangepreconjunction\expandafter}%
3387       \expandafter{\crefrangepreconjunction}}%
3388     \expandafter\expandafter\expandafter\cref@addto%
3389       \expandafter\@tmpa\expandafter{\@tmpb}%
3390   }%
3391   \@ifundefined{crefrangepostconjunction}{%
3392     \let\crefrangepostconjunction\crefrangepostconjunction@preamble%
3393   }{%
3394     \expandafter\def\expandafter\@tmpb\expandafter{%
3395       \expandafter\renewcommand\expandafter%
3396       {\expandafter\crefrangepostconjunction\expandafter}%
3397       \expandafter{\crefrangepostconjunction}}%
3398     \expandafter\expandafter\expandafter\cref@addto%
3399       \expandafter\@tmpa\expandafter{\@tmpb}%
3400   }%
3401   \@ifundefined{crefpairconjunction}{%
3402     \let\crefpairconjunction\crefpairconjunction@preamble%
3403   }{%
3404     \expandafter\def\expandafter\@tmpb\expandafter{%
3405       \expandafter\renewcommand\expandafter%
3406       {\expandafter\crefpairconjunction\expandafter}%
3407       \expandafter{\crefpairconjunction}}%
3408     \expandafter\expandafter\expandafter\cref@addto%
3409       \expandafter\@tmpa\expandafter{\@tmpb}%
3410   }%
3411   \@ifundefined{crefmiddleconjunction}{%
3412     \let\crefmiddleconjunction\crefmiddleconjunction@preamble%
3413   }{%
3414     \expandafter\def\expandafter\@tmpb\expandafter{%
3415       \expandafter\renewcommand\expandafter%
3416       {\expandafter\crefmiddleconjunction\expandafter}%
3417       \expandafter{\crefmiddleconjunction}}%
3418     \expandafter\expandafter\expandafter\cref@addto%
3419       \expandafter\@tmpa\expandafter{\@tmpb}%
3420   }%
3421   \@ifundefined{creflastconjunction}{%
3422     \let\creflastconjunction\creflastconjunction@preamble%
3423   }{%
3424     \expandafter\def\expandafter\@tmpb\expandafter{%
3425       \expandafter\renewcommand\expandafter%
3426       {\expandafter\creflastconjunction\expandafter}%
3427       \expandafter{\creflastconjunction}}%
3428     \expandafter\expandafter\expandafter\cref@addto%
3429       \expandafter\@tmpa\expandafter{\@tmpb}%
3430   }%
3431   \@ifundefined{crefpairgroupconjunction}{%
3432     \let\crefpairgroupconjunction%
3433       \crefpairgroupconjunction@preamble%
3434   }{%
3435     \expandafter\def\expandafter\@tmpb\expandafter{%
3436       \expandafter\renewcommand\expandafter%
3437       {\expandafter\crefpairgroupconjunction\expandafter}%
3438       \expandafter{\crefpairgroupconjunction}}%
3439     \expandafter\expandafter\expandafter\cref@addto%
3440       \expandafter\@tmpa\expandafter{\@tmpb}%
3441   }%
3442   \@ifundefined{crefmiddlegroupconjunction}{%
3443     \let\crefmiddlegroupconjunction%
3444       \crefmiddlegroupconjunction@preamble%
3445   }{%
3446     \expandafter\def\expandafter\@tmpb\expandafter{%
3447       \expandafter\renewcommand\expandafter%
3448       {\expandafter\crefpairmiddleconjunction\expandafter}%
3449       \expandafter{\crefpairmiddleconjunction}}%
3450     \expandafter\expandafter\expandafter\cref@addto%
3451       \expandafter\@tmpa\expandafter{\@tmpb}%
3452   }%
3453   \@ifundefined{creflastgroupconjunction}{%
3454     \let\creflastgroupconjunction%
3455       \creflastgroupconjunction@preamble%
3456   }{%
3457     \expandafter\def\expandafter\@tmpb\expandafter{%
3458       \expandafter\renewcommand\expandafter%
3459       {\expandafter\crefpairlastconjunction\expandafter}%
3460       \expandafter{\crefpairlastconjunction}}%
3461     \expandafter\expandafter\expandafter\cref@addto%
3462       \expandafter\@tmpa\expandafter{\@tmpb}%
3463   }%
3464   \@ifundefined{crefpairgroupconjunction}{%
3465     \let\crefpairgroupconjunction\crefpairconjunction}{}%
3466   \@ifundefined{crefmiddlegroupconjunction}{%
3467     \let\crefmiddlegroupconjunction\crefmiddleconjunction}{}%
3468   \@ifundefined{creflastgroupconjunction}{%
3469     \edef\creflastgroupconjunction{, \creflastconjunction}}{}%
3470   \let\@tmpstack\cref@label@types%
3471   \cref@isstackfull{\@tmpstack}%
3472   \@whilesw\if@cref@stackfull\fi{%
3473     \edef\@tmpa{\cref@stack@top{\@tmpstack}}%
3474     \@ifundefined{cref@\@tmpa @name}{%
3475       \expandafter\def\expandafter\@tmpb\expandafter{%
3476         \csname cref@\@tmpa @name\endcsname}%
3477       \expandafter\def\expandafter\@tmpc\expandafter{%
3478         \csname cref@\@tmpa @name@preamble\endcsname}%
3479       \expandafter\expandafter\expandafter\let\expandafter\@tmpb\@tmpc%
3480       \expandafter\def\expandafter\@tmpb\expandafter{%
3481         \csname cref@\@tmpa @name@plural\endcsname}%
3482       \expandafter\def\expandafter\@tmpc\expandafter{%
3483         \csname cref@\@tmpa @name@plural@preamble\endcsname}%
3484       \expandafter\expandafter\expandafter\let\expandafter\@tmpb\@tmpc%
3485     }{%
3486       \edef\@tmpb{%
3487         \expandafter\noexpand\csname extras\cref@language\endcsname}%
3488       \expandafter\def\expandafter\@tmpc\expandafter{%
3489         \expandafter\crefname\expandafter{\@tmpa}}%
3490       \expandafter\expandafter\expandafter\cref@addto%
3491       \expandafter\expandafter\expandafter\@tmpc%
3492       \expandafter\expandafter\expandafter{%
3493         \expandafter\expandafter\expandafter{%
3494           \csname cref@\@tmpa @name\endcsname}}%
3495       \expandafter\expandafter\expandafter\cref@addto%
3496       \expandafter\expandafter\expandafter\@tmpc%
3497       \expandafter\expandafter\expandafter{%
3498         \expandafter\expandafter\expandafter{%
3499           \csname cref@\@tmpa @name@plural\endcsname}}%
3500       \expandafter\expandafter\expandafter\cref@addto%
3501         \expandafter\@tmpb\expandafter{\@tmpc}%
3502     }%
3503     \@ifundefined{Cref@\@tmpa @name}{%
3504       \expandafter\def\expandafter\@tmpb\expandafter{%
3505         \csname Cref@\@tmpa @name\endcsname}%
3506       \expandafter\def\expandafter\@tmpc\expandafter{%
3507         \csname Cref@\@tmpa @name@preamble\endcsname}%
3508       \expandafter\expandafter\expandafter\let\expandafter\@tmpb\@tmpc%
3509       \expandafter\def\expandafter\@tmpb\expandafter{%
3510         \csname Cref@\@tmpa @name@plural\endcsname}%
3511       \expandafter\def\expandafter\@tmpc\expandafter{%
3512         \csname Cref@\@tmpa @name@plural@preamble\endcsname}%
3513       \expandafter\expandafter\expandafter\let\expandafter\@tmpb\@tmpc%
3514     }{%
3515       \edef\@tmpb{%
3516         \expandafter\noexpand\csname extras\cref@language\endcsname}%
3517       \expandafter\def\expandafter\@tmpc\expandafter{%
3518         \expandafter\Crefname\expandafter{\@tmpa}}%
3519       \expandafter\expandafter\expandafter\cref@addto%
3520       \expandafter\expandafter\expandafter\@tmpc%
3521       \expandafter\expandafter\expandafter{%
3522         \expandafter\expandafter\expandafter{%
3523           \csname Cref@\@tmpa @name\endcsname}}%
3524       \expandafter\expandafter\expandafter\cref@addto%
3525       \expandafter\expandafter\expandafter\@tmpc%
3526       \expandafter\expandafter\expandafter{%
3527         \expandafter\expandafter\expandafter{%
3528           \csname Cref@\@tmpa @name@plural\endcsname}}%
3529       \expandafter\expandafter\expandafter\cref@addto%
3530         \expandafter\@tmpb\expandafter{\@tmpc}%
3531     }%
3532     \@ifundefined{cref@\@tmpa @format}{%
3533       \expandafter\@crefdefineformat\expandafter{\@tmpa}}{}%
3534     \@ifundefined{crefrange@\@tmpa @format}{%
3535       \expandafter\@crefrangedefineformat\expandafter{\@tmpa}}{}%
3536     \@ifundefined{cref@\@tmpa @format@first}{%
3537       \expandafter\@crefdefinemultiformat\expandafter{\@tmpa}}{}%
3538     \@ifundefined{crefrange@\@tmpa @format@first}{%
3539       \expandafter\@crefrangedefinemultiformat\expandafter{\@tmpa}}{}%
3540     \cref@stack@pop{\@tmpstack}%
3541     \cref@isstackfull{\@tmpstack}}%
3542     \@ifundefined{cref@subsection@format}{%
3543       \let\cref@subsection@format%
3544       \cref@section@format}{}%
3545     \@ifundefined{Cref@subsection@format}{%
3546       \let\Cref@subsection@format%
3547       \Cref@section@format}{}%
3548     \@ifundefined{crefrange@subsection@format}{%
3549       \let\crefrange@subsection@format%
3550       \crefrange@section@format}{}%
3551     \@ifundefined{Crefrange@subsection@format}{%
3552       \let\Crefrange@subsection@format%
3553       \Crefrange@section@format}{}%
3554     \@ifundefined{cref@subsection@format@first}{%
3555       \let\cref@subsection@format@first%
3556       \cref@section@format@first}{}%
3557     \@ifundefined{Cref@subsection@format@first}{%
3558       \let\Cref@subsection@format@first%
3559       \Cref@section@format@first}{}%
3560     \@ifundefined{cref@subsection@format@second}{%
3561       \let\cref@subsection@format@second%
3562       \cref@section@format@second}{}%
3563     \@ifundefined{Cref@subsection@format@second}{%
3564       \let\Cref@subsection@format@second%
3565       \Cref@section@format@second}{}%
3566     \@ifundefined{cref@subsection@format@middle}{%
3567       \let\cref@subsection@format@middle%
3568       \cref@section@format@middle}{}%
3569     \@ifundefined{Cref@subsection@format@middle}{%
3570       \let\Cref@subsection@format@middle%
3571       \Cref@section@format@middle}{}%
3572     \@ifundefined{cref@subsection@format@last}{%
3573       \let\cref@subsection@format@last%
3574       \cref@section@format@last}{}%
3575     \@ifundefined{Cref@subsection@format@last}{%
3576       \let\Cref@subsection@format@last%
3577       \Cref@section@format@last}{}%
3578     \@ifundefined{crefrange@subsection@format@first}{%
3579       \let\crefrange@subsection@format@first%
3580       \crefrange@section@format@first}{}%
3581     \@ifundefined{Crefrange@subsection@format@first}{%
3582       \let\Crefrange@subsection@format@first%
3583       \Crefrange@section@format@first}{}%
3584     \@ifundefined{crefrange@subsection@format@second}{%
3585       \let\crefrange@subsection@format@second%
3586       \crefrange@section@format@second}{}%
3587     \@ifundefined{Crefrange@subsection@format@second}{%
3588       \let\Crefrange@subsection@format@second%
3589       \Crefrange@section@format@second}{}%
3590     \@ifundefined{crefrange@subsection@format@middle}{%
3591       \let\crefrange@subsection@format@middle%
3592       \crefrange@section@format@middle}{}%
3593     \@ifundefined{Crefrange@subsection@format@middle}{%
3594       \let\Crefrange@subsection@format@middle%
3595       \Crefrange@section@format@middle}{}%
3596     \@ifundefined{crefrange@subsection@format@last}{%
3597       \let\crefrange@subsection@format@last%
3598       \crefrange@section@format@last}{}%
3599     \@ifundefined{Crefrange@subsection@format@last}{%
3600       \let\Crefrange@subsection@format@last%
3601       \Crefrange@section@format@last}{}%
3602     \@ifundefined{cref@subsubsection@format}{%
3603       \let\cref@subsubsection@format%
3604       \cref@subsection@format}{}%
3605     \@ifundefined{Cref@subsubsection@format}{%
3606       \let\Cref@subsubsection@format%
3607       \Cref@subsection@format}{}%
3608     \@ifundefined{crefrange@subsubsection@format}{%
3609       \let\crefrange@subsubsection@format%
3610       \crefrange@subsection@format}{}%
3611     \@ifundefined{Crefrange@subsubsection@format}{%
3612       \let\Crefrange@subsubsection@format%
3613       \Crefrange@subsection@format}{}%
3614     \@ifundefined{cref@subsubsection@format@first}{%
3615       \let\cref@subsubsection@format@first%
3616       \cref@subsection@format@first}{}%
3617     \@ifundefined{Cref@subsubsection@format@first}{%
3618       \let\Cref@subsubsection@format@first%
3619       \Cref@subsection@format@first}{}%
3620     \@ifundefined{cref@subsubsection@format@second}{%
3621       \let\cref@subsubsection@format@second%
3622       \cref@subsection@format@second}{}%
3623     \@ifundefined{Cref@subsubsection@format@second}{%
3624       \let\Cref@subsubsection@format@second%
3625       \Cref@subsection@format@second}{}%
3626     \@ifundefined{cref@subsubsection@format@middle}{%
3627       \let\cref@subsubsection@format@middle%
3628       \cref@subsection@format@middle}{}%
3629     \@ifundefined{Cref@subsubsection@format@middle}{%
3630       \let\Cref@subsubsection@format@middle%
3631       \Cref@subsection@format@middle}{}%
3632     \@ifundefined{cref@subsubsection@format@last}{%
3633       \let\cref@subsubsection@format@last%
3634       \cref@subsection@format@last}{}%
3635     \@ifundefined{Cref@subsubsection@format@last}{%
3636       \let\Cref@subsubsection@format@last%
3637       \Cref@subsection@format@last}{}%
3638     \@ifundefined{crefrange@subsubsection@format@first}{%
3639       \let\crefrange@subsubsection@format@first%
3640       \crefrange@subsection@format@first}{}%
3641     \@ifundefined{Crefrange@subsubsection@format@first}{%
3642       \let\Crefrange@subsubsection@format@first%
3643       \Crefrange@subsection@format@first}{}%
3644     \@ifundefined{crefrange@subsubsection@format@second}{%
3645       \let\crefrange@subsubsection@format@second%
3646       \crefrange@subsection@format@second}{}%
3647     \@ifundefined{Crefrange@subsubsection@format@second}{%
3648       \let\Crefrange@subsubsection@format@second%
3649       \Crefrange@subsection@format@second}{}%
3650     \@ifundefined{crefrange@subsubsection@format@middle}{%
3651       \let\crefrange@subsubsection@format@middle%
3652       \crefrange@subsection@format@middle}{}%
3653     \@ifundefined{Crefrange@subsubsection@format@middle}{%
3654       \let\Crefrange@subsubsection@format@middle%
3655       \Crefrange@subsection@format@middle}{}%
3656     \@ifundefined{crefrange@subsubsection@format@last}{%
3657       \let\crefrange@subsubsection@format@last%
3658       \crefrange@subsection@format@last}{}%
3659     \@ifundefined{Crefrange@subsubsection@format@last}{%
3660       \let\Crefrange@subsubsection@format@last%
3661       \Crefrange@subsection@format@last}{}%
3662     \@ifundefined{cref@subappendix@format}{%
3663       \let\cref@subappendix@format%
3664       \cref@appendix@format}{}%
3665     \@ifundefined{Cref@subappendix@format}{%
3666       \let\Cref@subappendix@format%
3667       \Cref@appendix@format}{}%
3668     \@ifundefined{crefrange@subappendix@format}{%
3669       \let\crefrange@subappendix@format%
3670       \crefrange@appendix@format}{}%
3671     \@ifundefined{Crefrange@subappendix@format}{%
3672       \let\Crefrange@subappendix@format%
3673       \Crefrange@appendix@format}{}%
3674     \@ifundefined{cref@subappendix@format@first}{%
3675       \let\cref@subappendix@format@first%
3676       \cref@appendix@format@first}{}%
3677     \@ifundefined{Cref@subappendix@format@first}{%
3678       \let\Cref@subappendix@format@first%
3679       \Cref@appendix@format@first}{}%
3680     \@ifundefined{cref@subappendix@format@second}{%
3681       \let\cref@subappendix@format@second%
3682       \cref@appendix@format@second}{}%
3683     \@ifundefined{Cref@subappendix@format@second}{%
3684       \let\Cref@subappendix@format@second%
3685       \Cref@appendix@format@second}{}%
3686     \@ifundefined{cref@subappendix@format@middle}{%
3687       \let\cref@subappendix@format@middle%
3688       \cref@appendix@format@middle}{}%
3689     \@ifundefined{Cref@subappendix@format@middle}{%
3690       \let\Cref@subappendix@format@middle%
3691       \Cref@appendix@format@middle}{}%
3692     \@ifundefined{cref@subappendix@format@last}{%
3693       \let\cref@subappendix@format@last%
3694       \cref@appendix@format@last}{}%
3695     \@ifundefined{Cref@subappendix@format@last}{%
3696       \let\Cref@subappendix@format@last%
3697       \Cref@appendix@format@last}{}%
3698     \@ifundefined{crefrange@subappendix@format@first}{%
3699       \let\crefrange@subappendix@format@first%
3700       \crefrange@appendix@format@first}{}%
3701     \@ifundefined{Crefrange@subappendix@format@first}{%
3702       \let\Crefrange@subappendix@format@first%
3703       \Crefrange@appendix@format@first}{}%
3704     \@ifundefined{crefrange@subappendix@format@second}{%
3705       \let\crefrange@subappendix@format@second%
3706       \crefrange@appendix@format@second}{}%
3707     \@ifundefined{Crefrange@subappendix@format@second}{%
3708       \let\Crefrange@subappendix@format@second%
3709       \Crefrange@appendix@format@second}{}%
3710     \@ifundefined{crefrange@subappendix@format@middle}{%
3711       \let\crefrange@subappendix@format@middle%
3712       \crefrange@appendix@format@middle}{}%
3713     \@ifundefined{Crefrange@subappendix@format@middle}{%
3714       \let\Crefrange@subappendix@format@middle%
3715       \Crefrange@appendix@format@middle}{}%
3716     \@ifundefined{crefrange@subappendix@format@last}{%
3717       \let\crefrange@subappendix@format@last%
3718       \crefrange@appendix@format@last}{}%
3719     \@ifundefined{Crefrange@subappendix@format@last}{%
3720       \let\Crefrange@subappendix@format@last%
3721       \Crefrange@appendix@format@last}{}%
3722     \@ifundefined{cref@subsubappendix@format}{%
3723       \let\cref@subsubappendix@format%
3724       \cref@subappendix@format}{}%
3725     \@ifundefined{Cref@subsubappendix@format}{%
3726       \let\Cref@subsubappendix@format%
3727       \Cref@subappendix@format}{}%
3728     \@ifundefined{crefrange@subsubappendix@format}{%
3729       \let\crefrange@subsubappendix@format%
3730       \crefrange@subappendix@format}{}%
3731     \@ifundefined{Crefrange@subsubappendix@format}{%
3732       \let\Crefrange@subsubappendix@format%
3733       \Crefrange@subappendix@format}{}%
3734     \@ifundefined{cref@subsubappendix@format@first}{%
3735       \let\cref@subsubappendix@format@first%
3736       \cref@subappendix@format@first}{}%
3737     \@ifundefined{Cref@subsubappendix@format@first}{%
3738       \let\Cref@subsubappendix@format@first%
3739       \Cref@subappendix@format@first}{}%
3740     \@ifundefined{cref@subsubappendix@format@second}{%
3741       \let\cref@subsubappendix@format@second%
3742       \cref@subappendix@format@second}{}%
3743     \@ifundefined{Cref@subsubappendix@format@second}{%
3744       \let\Cref@subsubappendix@format@second%
3745       \Cref@subappendix@format@second}{}%
3746     \@ifundefined{cref@subsubappendix@format@middle}{%
3747       \let\cref@subsubappendix@format@middle%
3748       \cref@subappendix@format@middle}{}%
3749     \@ifundefined{Cref@subsubappendix@format@middle}{%
3750       \let\Cref@subsubappendix@format@middle%
3751       \Cref@subappendix@format@middle}{}%
3752     \@ifundefined{cref@subsubappendix@format@last}{%
3753       \let\cref@subsubappendix@format@last%
3754       \cref@subappendix@format@last}{}%
3755     \@ifundefined{Cref@subsubappendix@format@last}{%
3756       \let\Cref@subsubappendix@format@last%
3757       \Cref@subappendix@format@last}{}%
3758     \@ifundefined{crefrange@subsubappendix@format@first}{%
3759       \let\crefrange@subsubappendix@format@first%
3760       \crefrange@subappendix@format@first}{}%
3761     \@ifundefined{Crefrange@subsubappendix@format@first}{%
3762       \let\Crefrange@subsubappendix@format@first%
3763       \Crefrange@subappendix@format@first}{}%
3764     \@ifundefined{crefrange@subsubappendix@format@second}{%
3765       \let\crefrange@subsubappendix@format@second%
3766       \crefrange@subappendix@format@second}{}%
3767     \@ifundefined{Crefrange@subsubappendix@format@second}{%
3768       \let\Crefrange@subsubappendix@format@second%
3769       \Crefrange@subappendix@format@second}{}%
3770     \@ifundefined{crefrange@subsubappendix@format@middle}{%
3771       \let\crefrange@subsubappendix@format@middle%
3772       \crefrange@subappendix@format@middle}{}%
3773     \@ifundefined{Crefrange@subsubappendix@format@middle}{%
3774       \let\Crefrange@subsubappendix@format@middle%
3775       \Crefrange@subappendix@format@middle}{}%
3776     \@ifundefined{crefrange@subsubappendix@format@last}{%
3777       \let\crefrange@subsubappendix@format@last%
3778       \crefrange@subappendix@format@last}{}%
3779     \@ifundefined{Crefrange@subsubappendix@format@last}{%
3780       \let\Crefrange@subsubappendix@format@last%
3781       \Crefrange@subappendix@format@last}{}%
3782     \@ifundefined{cref@subsubsubappendix@format}{%
3783       \let\cref@subsubsubappendix@format%
3784       \cref@subsubappendix@format}{}%
3785     \@ifundefined{Cref@subsubsubappendix@format}{%
3786       \let\Cref@subsubsubappendix@format%
3787       \Cref@subsubappendix@format}{}%
3788     \@ifundefined{crefrange@subsubsubappendix@format}{%
3789       \let\crefrange@subsubsubappendix@format%
3790       \crefrange@subsubappendix@format}{}%
3791     \@ifundefined{Crefrange@subsubsubappendix@format}{%
3792       \let\Crefrange@subsubsubappendix@format%
3793       \Crefrange@subsubappendix@format}{}%
3794     \@ifundefined{cref@subsubsubappendix@format@first}{%
3795       \let\cref@subsubsubappendix@format@first%
3796       \cref@subsubappendix@format@first}{}%
3797     \@ifundefined{Cref@subsubsubappendix@format@first}{%
3798       \let\Cref@subsubsubappendix@format@first%
3799       \Cref@subsubappendix@format@first}{}%
3800     \@ifundefined{cref@subsubsubappendix@format@second}{%
3801       \let\cref@subsubsubappendix@format@second%
3802       \cref@subsubappendix@format@second}{}%
3803     \@ifundefined{Cref@subsubsubappendix@format@second}{%
3804       \let\Cref@subsubsubappendix@format@second%
3805       \Cref@subsubappendix@format@second}{}%
3806     \@ifundefined{cref@subsubsubappendix@format@middle}{%
3807       \let\cref@subsubsubappendix@format@middle%
3808       \cref@subsubappendix@format@middle}{}%
3809     \@ifundefined{Cref@subsubsubappendix@format@middle}{%
3810       \let\Cref@subsubsubappendix@format@middle%
3811       \Cref@subsubappendix@format@middle}{}%
3812     \@ifundefined{cref@subsubsubappendix@format@last}{%
3813       \let\cref@subsubsubappendix@format@last%
3814       \cref@subsubappendix@format@last}{}%
3815     \@ifundefined{Cref@subsubsubappendix@format@last}{%
3816       \let\Cref@subsubsubappendix@format@last%
3817       \Cref@subsubappendix@format@last}{}%
3818     \@ifundefined{crefrange@subsubsubappendix@format@first}{%
3819       \let\crefrange@subsubsubappendix@format@first%
3820       \crefrange@subsubappendix@format@first}{}%
3821     \@ifundefined{Crefrange@subsubsubappendix@format@first}{%
3822       \let\Crefrange@subsubsubappendix@format@first%
3823       \Crefrange@subsubappendix@format@first}{}%
3824     \@ifundefined{crefrange@subsubsubappendix@format@second}{%
3825       \let\crefrange@subsubsubappendix@format@second%
3826       \crefrange@subsubappendix@format@second}{}%
3827     \@ifundefined{Crefrange@subsubsubappendix@format@second}{%
3828       \let\Crefrange@subsubsubappendix@format@second%
3829       \Crefrange@subsubappendix@format@second}{}%
3830     \@ifundefined{crefrange@subsubsubappendix@format@middle}{%
3831       \let\crefrange@subsubsubappendix@format@middle%
3832       \crefrange@subsubappendix@format@middle}{}%
3833     \@ifundefined{Crefrange@subsubsubappendix@format@middle}{%
3834       \let\Crefrange@subsubsubappendix@format@middle%
3835       \Crefrange@subsubappendix@format@middle}{}%
3836     \@ifundefined{crefrange@subsubsubappendix@format@last}{%
3837       \let\crefrange@subsubsubappendix@format@last%
3838       \crefrange@subsubappendix@format@last}{}%
3839     \@ifundefined{Crefrange@subsubsubappendix@format@last}{%
3840       \let\Crefrange@subsubsubappendix@format@last%
3841       \Crefrange@subsubappendix@format@last}{}%
3842     \@ifundefined{cref@subfigure@format}{%
3843       \let\cref@subfigure@format%
3844       \cref@figure@format}{}%
3845     \@ifundefined{Cref@subfigure@format}{%
3846       \let\Cref@subfigure@format%
3847       \Cref@figure@format}{}%
3848     \@ifundefined{crefrange@subfigure@format}{%
3849       \let\crefrange@subfigure@format%
3850       \crefrange@figure@format}{}%
3851     \@ifundefined{Crefrange@subfigure@format}{%
3852       \let\Crefrange@subfigure@format%
3853       \Crefrange@figure@format}{}%
3854     \@ifundefined{cref@subfigure@format@first}{%
3855       \let\cref@subfigure@format@first%
3856       \cref@figure@format@first}{}%
3857     \@ifundefined{Cref@subfigure@format@first}{%
3858       \let\Cref@subfigure@format@first%
3859       \Cref@figure@format@first}{}%
3860     \@ifundefined{cref@subfigure@format@second}{%
3861       \let\cref@subfigure@format@second%
3862       \cref@figure@format@second}{}%
3863     \@ifundefined{Cref@subfigure@format@second}{%
3864       \let\Cref@subfigure@format@second%
3865       \Cref@figure@format@second}{}%
3866     \@ifundefined{cref@subfigure@format@middle}{%
3867       \let\cref@subfigure@format@middle%
3868       \cref@figure@format@middle}{}%
3869     \@ifundefined{Cref@subfigure@format@middle}{%
3870       \let\Cref@subfigure@format@middle%
3871       \Cref@figure@format@middle}{}%
3872     \@ifundefined{cref@subfigure@format@last}{%
3873       \let\cref@subfigure@format@last%
3874       \cref@figure@format@last}{}%
3875     \@ifundefined{Cref@subfigure@format@last}{%
3876       \let\Cref@subfigure@format@last%
3877       \Cref@figure@format@last}{}%
3878     \@ifundefined{crefrange@subfigure@format@first}{%
3879       \let\crefrange@subfigure@format@first%
3880       \crefrange@figure@format@first}{}%
3881     \@ifundefined{Crefrange@subfigure@format@first}{%
3882       \let\Crefrange@subfigure@format@first%
3883       \Crefrange@figure@format@first}{}%
3884     \@ifundefined{crefrange@subfigure@format@second}{%
3885       \let\crefrange@subfigure@format@second%
3886       \crefrange@figure@format@second}{}%
3887     \@ifundefined{Crefrange@subfigure@format@second}{%
3888       \let\Crefrange@subfigure@format@second%
3889       \Crefrange@figure@format@second}{}%
3890     \@ifundefined{crefrange@subfigure@format@middle}{%
3891       \let\crefrange@subfigure@format@middle%
3892       \crefrange@figure@format@middle}{}%
3893     \@ifundefined{Crefrange@subfigure@format@middle}{%
3894       \let\Crefrange@subfigure@format@middle%
3895       \Crefrange@figure@format@middle}{}%
3896     \@ifundefined{crefrange@subfigure@format@last}{%
3897       \let\crefrange@subfigure@format@last%
3898       \crefrange@figure@format@last}{}%
3899     \@ifundefined{Crefrange@subfigure@format@last}{%
3900       \let\Crefrange@subfigure@format@last%
3901       \Crefrange@figure@format@last}{}%
3902     \@ifundefined{cref@subtable@format}{%
3903       \let\cref@subtable@format%
3904       \cref@table@format}{}%
3905     \@ifundefined{Cref@subtable@format}{%
3906       \let\Cref@subtable@format%
3907       \Cref@table@format}{}%
3908     \@ifundefined{crefrange@subtable@format}{%
3909       \let\crefrange@subtable@format%
3910       \crefrange@table@format}{}%
3911     \@ifundefined{Crefrange@subtable@format}{%
3912       \let\Crefrange@subtable@format%
3913       \Crefrange@table@format}{}%
3914     \@ifundefined{cref@subtable@format@first}{%
3915       \let\cref@subtable@format@first%
3916       \cref@table@format@first}{}%
3917     \@ifundefined{Cref@subtable@format@first}{%
3918       \let\Cref@subtable@format@first%
3919       \Cref@table@format@first}{}%
3920     \@ifundefined{cref@subtable@format@second}{%
3921       \let\cref@subtable@format@second%
3922       \cref@table@format@second}{}%
3923     \@ifundefined{Cref@subtable@format@second}{%
3924       \let\Cref@subtable@format@second%
3925       \Cref@table@format@second}{}%
3926     \@ifundefined{cref@subtable@format@middle}{%
3927       \let\cref@subtable@format@middle%
3928       \cref@table@format@middle}{}%
3929     \@ifundefined{Cref@subtable@format@middle}{%
3930       \let\Cref@subtable@format@middle%
3931       \Cref@table@format@middle}{}%
3932     \@ifundefined{cref@subtable@format@last}{%
3933       \let\cref@subtable@format@last%
3934       \cref@table@format@last}{}%
3935     \@ifundefined{Cref@subtable@format@last}{%
3936       \let\Cref@subtable@format@last%
3937       \Cref@table@format@last}{}%
3938     \@ifundefined{crefrange@subtable@format@first}{%
3939       \let\crefrange@subtable@format@first%
3940       \crefrange@table@format@first}{}%
3941     \@ifundefined{Crefrange@subtable@format@first}{%
3942       \let\Crefrange@subtable@format@first%
3943       \Crefrange@table@format@first}{}%
3944     \@ifundefined{crefrange@subtable@format@second}{%
3945       \let\crefrange@subtable@format@second%
3946       \crefrange@table@format@second}{}%
3947     \@ifundefined{Crefrange@subtable@format@second}{%
3948       \let\Crefrange@subtable@format@second%
3949       \Crefrange@table@format@second}{}%
3950     \@ifundefined{crefrange@subtable@format@middle}{%
3951       \let\crefrange@subtable@format@middle%
3952       \crefrange@table@format@middle}{}%
3953     \@ifundefined{Crefrange@subtable@format@middle}{%
3954       \let\Crefrange@subtable@format@middle%
3955       \Crefrange@table@format@middle}{}%
3956     \@ifundefined{crefrange@subtable@format@last}{%
3957       \let\crefrange@subtable@format@last%
3958       \crefrange@table@format@last}{}%
3959     \@ifundefined{Crefrange@subtable@format@last}{%
3960       \let\Crefrange@subtable@format@last%
3961       \Crefrange@table@format@last}{}%
3962     \@ifundefined{cref@enumii@format}{%
3963       \let\cref@enumii@format%
3964       \cref@enumi@format}{}%
3965     \@ifundefined{Cref@enumii@format}{%
3966       \let\Cref@enumii@format%
3967       \Cref@enumi@format}{}%
3968     \@ifundefined{crefrange@enumii@format}{%
3969       \let\crefrange@enumii@format%
3970       \crefrange@enumi@format}{}%
3971     \@ifundefined{Crefrange@enumii@format}{%
3972       \let\Crefrange@enumii@format%
3973       \Crefrange@enumi@format}{}%
3974     \@ifundefined{cref@enumii@format@first}{%
3975       \let\cref@enumii@format@first%
3976       \cref@enumi@format@first}{}%
3977     \@ifundefined{Cref@enumii@format@first}{%
3978       \let\Cref@enumii@format@first%
3979       \Cref@enumi@format@first}{}%
3980     \@ifundefined{cref@enumii@format@second}{%
3981       \let\cref@enumii@format@second%
3982       \cref@enumi@format@second}{}%
3983     \@ifundefined{Cref@enumii@format@second}{%
3984       \let\Cref@enumii@format@second%
3985       \Cref@enumi@format@second}{}%
3986     \@ifundefined{cref@enumii@format@middle}{%
3987       \let\cref@enumii@format@middle%
3988       \cref@enumi@format@middle}{}%
3989     \@ifundefined{Cref@enumii@format@middle}{%
3990       \let\Cref@enumii@format@middle%
3991       \Cref@enumi@format@middle}{}%
3992     \@ifundefined{cref@enumii@format@last}{%
3993       \let\cref@enumii@format@last%
3994       \cref@enumi@format@last}{}%
3995     \@ifundefined{Cref@enumii@format@last}{%
3996       \let\Cref@enumii@format@last%
3997       \Cref@enumi@format@last}{}%
3998     \@ifundefined{crefrange@enumii@format@first}{%
3999       \let\crefrange@enumii@format@first%
4000       \crefrange@enumi@format@first}{}%
4001     \@ifundefined{Crefrange@enumii@format@first}{%
4002       \let\Crefrange@enumii@format@first%
4003       \Crefrange@enumi@format@first}{}%
4004     \@ifundefined{crefrange@enumii@format@second}{%
4005       \let\crefrange@enumii@format@second%
4006       \crefrange@enumi@format@second}{}%
4007     \@ifundefined{Crefrange@enumii@format@second}{%
4008       \let\Crefrange@enumii@format@second%
4009       \Crefrange@enumi@format@second}{}%
4010     \@ifundefined{crefrange@enumii@format@middle}{%
4011       \let\crefrange@enumii@format@middle%
4012       \crefrange@enumi@format@middle}{}%
4013     \@ifundefined{Crefrange@enumii@format@middle}{%
4014       \let\Crefrange@enumii@format@middle%
4015       \Crefrange@enumi@format@middle}{}%
4016     \@ifundefined{crefrange@enumii@format@last}{%
4017       \let\crefrange@enumii@format@last%
4018       \crefrange@enumi@format@last}{}%
4019     \@ifundefined{Crefrange@enumii@format@last}{%
4020       \let\Crefrange@enumii@format@last%
4021       \Crefrange@enumi@format@last}{}%
4022     \@ifundefined{cref@enumiii@format}{%
4023       \let\cref@enumiii@format%
4024       \cref@enumii@format}{}%
4025     \@ifundefined{Cref@enumiii@format}{%
4026       \let\Cref@enumiii@format%
4027       \Cref@enumii@format}{}%
4028     \@ifundefined{crefrange@enumiii@format}{%
4029       \let\crefrange@enumiii@format%
4030       \crefrange@enumii@format}{}%
4031     \@ifundefined{Crefrange@enumiii@format}{%
4032       \let\Crefrange@enumiii@format%
4033       \Crefrange@enumii@format}{}%
4034     \@ifundefined{cref@enumiii@format@first}{%
4035       \let\cref@enumiii@format@first%
4036       \cref@enumii@format@first}{}%
4037     \@ifundefined{Cref@enumiii@format@first}{%
4038       \let\Cref@enumiii@format@first%
4039       \Cref@enumii@format@first}{}%
4040     \@ifundefined{cref@enumiii@format@second}{%
4041       \let\cref@enumiii@format@second%
4042       \cref@enumii@format@second}{}%
4043     \@ifundefined{Cref@enumiii@format@second}{%
4044       \let\Cref@enumiii@format@second%
4045       \Cref@enumii@format@second}{}%
4046     \@ifundefined{cref@enumiii@format@middle}{%
4047       \let\cref@enumiii@format@middle%
4048       \cref@enumii@format@middle}{}%
4049     \@ifundefined{Cref@enumiii@format@middle}{%
4050       \let\Cref@enumiii@format@middle%
4051       \Cref@enumii@format@middle}{}%
4052     \@ifundefined{cref@enumiii@format@last}{%
4053       \let\cref@enumiii@format@last%
4054       \cref@enumii@format@last}{}%
4055     \@ifundefined{Cref@enumiii@format@last}{%
4056       \let\Cref@enumiii@format@last%
4057       \Cref@enumii@format@last}{}%
4058     \@ifundefined{crefrange@enumiii@format@first}{%
4059       \let\crefrange@enumiii@format@first%
4060       \crefrange@enumii@format@first}{}%
4061     \@ifundefined{Crefrange@enumiii@format@first}{%
4062       \let\Crefrange@enumiii@format@first%
4063       \Crefrange@enumii@format@first}{}%
4064     \@ifundefined{crefrange@enumiii@format@second}{%
4065       \let\crefrange@enumiii@format@second%
4066       \crefrange@enumii@format@second}{}%
4067     \@ifundefined{Crefrange@enumiii@format@second}{%
4068       \let\Crefrange@enumiii@format@second%
4069       \Crefrange@enumii@format@second}{}%
4070     \@ifundefined{crefrange@enumiii@format@middle}{%
4071       \let\crefrange@enumiii@format@middle%
4072       \crefrange@enumii@format@middle}{}%
4073     \@ifundefined{Crefrange@enumiii@format@middle}{%
4074       \let\Crefrange@enumiii@format@middle%
4075       \Crefrange@enumii@format@middle}{}%
4076     \@ifundefined{crefrange@enumiii@format@last}{%
4077       \let\crefrange@enumiii@format@last%
4078       \crefrange@enumii@format@last}{}%
4079     \@ifundefined{Crefrange@enumiii@format@last}{%
4080       \let\Crefrange@enumiii@format@last%
4081       \Crefrange@enumii@format@last}{}%
4082     \@ifundefined{cref@enumiv@format}{%
4083       \let\cref@enumiv@format%
4084       \cref@enumiii@format}{}%
4085     \@ifundefined{Cref@enumiv@format}{%
4086       \let\Cref@enumiv@format%
4087       \Cref@enumiii@format}{}%
4088     \@ifundefined{crefrange@enumiv@format}{%
4089       \let\crefrange@enumiv@format%
4090       \crefrange@enumiii@format}{}%
4091     \@ifundefined{Crefrange@enumiv@format}{%
4092       \let\Crefrange@enumiv@format%
4093       \Crefrange@enumiii@format}{}%
4094     \@ifundefined{cref@enumiv@format@first}{%
4095       \let\cref@enumiv@format@first%
4096       \cref@enumiii@format@first}{}%
4097     \@ifundefined{Cref@enumiv@format@first}{%
4098       \let\Cref@enumiv@format@first%
4099       \Cref@enumiii@format@first}{}%
4100     \@ifundefined{cref@enumiv@format@second}{%
4101       \let\cref@enumiv@format@second%
4102       \cref@enumiii@format@second}{}%
4103     \@ifundefined{Cref@enumiv@format@second}{%
4104       \let\Cref@enumiv@format@second%
4105       \Cref@enumiii@format@second}{}%
4106     \@ifundefined{cref@enumiv@format@middle}{%
4107       \let\cref@enumiv@format@middle%
4108       \cref@enumiii@format@middle}{}%
4109     \@ifundefined{Cref@enumiv@format@middle}{%
4110       \let\Cref@enumiv@format@middle%
4111       \Cref@enumiii@format@middle}{}%
4112     \@ifundefined{cref@enumiv@format@last}{%
4113       \let\cref@enumiv@format@last%
4114       \cref@enumiii@format@last}{}%
4115     \@ifundefined{Cref@enumiv@format@last}{%
4116       \let\Cref@enumiv@format@last%
4117       \Cref@enumiii@format@last}{}%
4118     \@ifundefined{crefrange@enumiv@format@first}{%
4119       \let\crefrange@enumiv@format@first%
4120       \crefrange@enumiii@format@first}{}%
4121     \@ifundefined{Crefrange@enumiv@format@first}{%
4122       \let\Crefrange@enumiv@format@first%
4123       \Crefrange@enumiii@format@first}{}%
4124     \@ifundefined{crefrange@enumiv@format@second}{%
4125       \let\crefrange@enumiv@format@second%
4126       \crefrange@enumiii@format@second}{}%
4127     \@ifundefined{Crefrange@enumiv@format@second}{%
4128       \let\Crefrange@enumiv@format@second%
4129       \Crefrange@enumiii@format@second}{}%
4130     \@ifundefined{crefrange@enumiv@format@middle}{%
4131       \let\crefrange@enumiv@format@middle%
4132       \crefrange@enumiii@format@middle}{}%
4133     \@ifundefined{Crefrange@enumiv@format@middle}{%
4134       \let\Crefrange@enumiv@format@middle%
4135       \Crefrange@enumiii@format@middle}{}%
4136     \@ifundefined{crefrange@enumiv@format@last}{%
4137       \let\crefrange@enumiv@format@last%
4138       \crefrange@enumiii@format@last}{}%
4139     \@ifundefined{Crefrange@enumiv@format@last}{%
4140       \let\Crefrange@enumiv@format@last%
4141       \Crefrange@enumiii@format@last}{}%
4142     \@ifundefined{cref@enumv@format}{%
4143       \let\cref@enumv@format%
4144       \cref@enumiv@format}{}%
4145     \@ifundefined{Cref@enumv@format}{%
4146       \let\Cref@enumv@format%
4147       \Cref@enumiv@format}{}%
4148     \@ifundefined{crefrange@enumv@format}{%
4149       \let\crefrange@enumv@format%
4150       \crefrange@enumiv@format}{}%
4151     \@ifundefined{Crefrange@enumv@format}{%
4152       \let\Crefrange@enumv@format%
4153       \Crefrange@enumiv@format}{}%
4154     \@ifundefined{cref@enumv@format@first}{%
4155       \let\cref@enumv@format@first%
4156       \cref@enumiv@format@first}{}%
4157     \@ifundefined{Cref@enumv@format@first}{%
4158       \let\Cref@enumv@format@first%
4159       \Cref@enumiv@format@first}{}%
4160     \@ifundefined{cref@enumv@format@second}{%
4161       \let\cref@enumv@format@second%
4162       \cref@enumiv@format@second}{}%
4163     \@ifundefined{Cref@enumv@format@second}{%
4164       \let\Cref@enumv@format@second%
4165       \Cref@enumiv@format@second}{}%
4166     \@ifundefined{cref@enumv@format@middle}{%
4167       \let\cref@enumv@format@middle%
4168       \cref@enumiv@format@middle}{}%
4169     \@ifundefined{Cref@enumv@format@middle}{%
4170       \let\Cref@enumv@format@middle%
4171       \Cref@enumiv@format@middle}{}%
4172     \@ifundefined{cref@enumv@format@last}{%
4173       \let\cref@enumv@format@last%
4174       \cref@enumiv@format@last}{}%
4175     \@ifundefined{Cref@enumv@format@last}{%
4176       \let\Cref@enumv@format@last%
4177       \Cref@enumiv@format@last}{}%
4178     \@ifundefined{crefrange@enumv@format@first}{%
4179       \let\crefrange@enumv@format@first%
4180       \crefrange@enumiv@format@first}{}%
4181     \@ifundefined{Crefrange@enumv@format@first}{%
4182       \let\Crefrange@enumv@format@first%
4183       \Crefrange@enumiv@format@first}{}%
4184     \@ifundefined{crefrange@enumv@format@second}{%
4185       \let\crefrange@enumv@format@second%
4186       \crefrange@enumiv@format@second}{}%
4187     \@ifundefined{Crefrange@enumv@format@second}{%
4188       \let\Crefrange@enumv@format@second%
4189       \Crefrange@enumiv@format@second}{}%
4190     \@ifundefined{crefrange@enumv@format@middle}{%
4191       \let\crefrange@enumv@format@middle%
4192       \crefrange@enumiv@format@middle}{}%
4193     \@ifundefined{Crefrange@enumv@format@middle}{%
4194       \let\Crefrange@enumv@format@middle%
4195       \Crefrange@enumiv@format@middle}{}%
4196     \@ifundefined{crefrange@enumv@format@last}{%
4197       \let\crefrange@enumv@format@last%
4198       \crefrange@enumiv@format@last}{}%
4199     \@ifundefined{Crefrange@enumv@format@last}{%
4200       \let\Crefrange@enumv@format@last%
4201       \Crefrange@enumiv@format@last}{}%
4202   \let\cref@language\relax%
4203 }
4204 \endinput
4205 %%
4206 %% End of file `cleveref.sty'.