diff --git a/publications/activation-functions/00README.XXX b/publications/activation-functions/00README.XXX new file mode 100644 index 0000000..c7146ab --- /dev/null +++ b/publications/activation-functions/00README.XXX @@ -0,0 +1,2 @@ +main.tex toplevelfile +nohypertex diff --git a/publications/activation-functions/IEEEtran.cls b/publications/activation-functions/IEEEtran.cls new file mode 100644 index 0000000..8d2b1c6 --- /dev/null +++ b/publications/activation-functions/IEEEtran.cls @@ -0,0 +1,6347 @@ +%% +%% IEEEtran.cls 2015/08/26 version V1.8b +%% +%% This is the IEEEtran LaTeX class for authors of the Institute of +%% Electrical and Electronics Engineers (IEEE) Transactions journals and +%% conferences. +%% +%% Support sites: +%% http://www.michaelshell.org/tex/ieeetran/ +%% http://www.ctan.org/pkg/ieeetran +%% and +%% http://www.ieee.org/ +%% +%% Based on the original 1993 IEEEtran.cls, but with many bug fixes +%% and enhancements (from both JVH and MDS) over the 1996/7 version. +%% +%% +%% Contributors: +%% Gerry Murray (1993), Silvano Balemi (1993), +%% Jon Dixon (1996), Peter N"uchter (1996), +%% Juergen von Hagen (2000), and Michael Shell (2001-2014) +%% +%% +%% Copyright (c) 1993-2000 by Gerry Murray, Silvano Balemi, +%% Jon Dixon, Peter N"uchter, +%% Juergen von Hagen +%% and +%% Copyright (c) 2001-2015 by Michael Shell +%% +%% Current maintainer (V1.3 to V1.8b): Michael Shell +%% See: +%% http://www.michaelshell.org/ +%% for current contact information. +%% +%% Special thanks to Peter Wilson (CUA) and Donald Arseneau +%% for allowing the inclusion of the \@ifmtarg command +%% from their ifmtarg LaTeX package. +%% +%%************************************************************************* +%% Legal Notice: +%% This code is offered as-is without any warranty either expressed or +%% implied; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE! +%% User assumes all risk. +%% In no event shall the IEEE or any contributor to this code be liable for +%% any damages or losses, including, but not limited to, incidental, +%% consequential, or any other damages, resulting from the use or misuse +%% of any information contained here. +%% +%% All comments are the opinions of their respective authors and are not +%% necessarily endorsed by the IEEE. +%% +%% This work is distributed under the LaTeX Project Public License (LPPL) +%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used, +%% distributed and modified. A copy of the LPPL, version 1.3, is included +%% in the base LaTeX documentation of all distributions of LaTeX released +%% 2003/12/01 or later. +%% Retain all contribution notices and credits. +%% ** Modified files should be clearly indicated as such, including ** +%% ** renaming them and changing author support contact information. ** +%% +%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex, +%% bare_conf.tex, bare_jrnl.tex, bare_conf_compsoc.tex, +%% bare_jrnl_compsoc.tex +%% +%% Major changes to the user interface should be indicated by an +%% increase in the version numbers. If a version is a beta, it will +%% be indicated with a BETA suffix, i.e., 1.4 BETA. +%% Small changes can be indicated by appending letters to the version +%% such as "IEEEtran_v14a.cls". +%% In all cases, \Providesclass, any \typeout messages to the user, +%% \IEEEtransversionmajor and \IEEEtransversionminor must reflect the +%% correct version information. +%% The changes should also be documented via source comments. +%%************************************************************************* +%% +% +% Available class options +% e.g., \documentclass[10pt,conference]{IEEEtran} +% +% *** choose only one from each category *** +% +% 9pt, 10pt, 11pt, 12pt +% Sets normal font size. The default is 10pt. +% +% conference, journal, technote, peerreview, peerreviewca +% determines format mode - conference papers, journal papers, +% correspondence papers (technotes), or peer review papers. The user +% should also select 9pt when using technote. peerreview is like +% journal mode, but provides for a single-column "cover" title page for +% anonymous peer review. The paper title (without the author names) is +% repeated at the top of the page after the cover page. For peer review +% papers, the \IEEEpeerreviewmaketitle command must be executed (will +% automatically be ignored for non-peerreview modes) at the place the +% cover page is to end, usually just after the abstract (keywords are +% not normally used with peer review papers). peerreviewca is like +% peerreview, but allows the author names to be entered and formatted +% as with conference mode so that author affiliation and contact +% information can be easily seen on the cover page. +% The default is journal. +% +% draft, draftcls, draftclsnofoot, final +% determines if paper is formatted as a widely spaced draft (for +% handwritten editor comments) or as a properly typeset final version. +% draftcls restricts draft mode to the class file while all other LaTeX +% packages (i.e., \usepackage{graphicx}) will behave as final - allows +% for a draft paper with visible figures, etc. draftclsnofoot is like +% draftcls, but does not display the date and the word "DRAFT" at the foot +% of the pages. If using one of the draft modes, the user will probably +% also want to select onecolumn. +% The default is final. +% +% letterpaper, a4paper, cspaper +% determines paper size: 8.5in X 11in, 210mm X 297mm or 7.875in X 10.75in. +% Changing the paper size in the standard journal and conference modes +% will not alter the typesetting of the document - only the margins will +% be affected. In particular, documents using the a4paper option will +% have reduced side margins (A4 is narrower than US letter) and a longer +% bottom margin (A4 is longer than US letter). For both cases, the top +% margins will be the same and the text will be horizontally centered. +% For the compsoc conference and draft modes, it is the margins that will +% remain constant, and thus the text area size will vary, with changes in +% the paper size. +% The cspaper option is the special ``trim'' paper size (7.875in x 10.75in) +% used in the actual publication of Computer Society journals. Under +% compsoc journal mode, this option does not alter the typesetting of the +% document. Authors should invoke the cspaper option only if requested to +% do so by the editors of the specific journal they are submitting to. +% For final submission to the IEEE, authors should generally use US letter +% (8.5 X 11in) paper unless otherwise instructed. Note that authors should +% ensure that all post-processing (ps, pdf, etc.) uses the same paper +% specificiation as the .tex document. Problems here are by far the number +% one reason for incorrect margins. IEEEtran will automatically set the +% default paper size under pdflatex (without requiring any change to +% pdftex.cfg), so this issue is more important to dvips users. Fix +% config.ps, config.pdf, or ~/.dvipsrc for dvips, or use the +% dvips -t papersize option instead as needed. For the cspaper option, +% the corresponding dvips paper name is "ieeecs". +% See the testflow documentation +% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/testflow +% for more details on dvips paper size configuration. +% The default is letterpaper. +% +% oneside, twoside +% determines if layout follows single sided or two sided (duplex) +% printing. The only notable change is with the headings at the top of +% the pages. +% The default is oneside. +% +% onecolumn, twocolumn +% determines if text is organized into one or two columns per page. One +% column mode is usually used only with draft papers. +% The default is twocolumn. +% +% comsoc, compsoc, transmag +% Use the format of the IEEE Communications Society, IEEE Computer Society +% or IEEE Transactions on Magnetics, respectively. +% +% romanappendices +% Use the "Appendix I" convention when numbering appendices. IEEEtran.cls +% now defaults to Alpha "Appendix A" convention - the opposite of what +% v1.6b and earlier did. +% +% captionsoff +% disables the display of the figure/table captions. Some IEEE journals +% request that captions be removed and figures/tables be put on pages +% of their own at the end of an initial paper submission. The endfloat +% package can be used with this class option to achieve this format. +% +% nofonttune +% turns off tuning of the font interword spacing. Maybe useful to those +% not using the standard Times fonts or for those who have already "tuned" +% their fonts. +% The default is to enable IEEEtran to tune font parameters. +% +% +%---------- +% Available CLASSINPUTs provided (all are macros unless otherwise noted): +% \CLASSINPUTbaselinestretch +% \CLASSINPUTinnersidemargin +% \CLASSINPUToutersidemargin +% \CLASSINPUTtoptextmargin +% \CLASSINPUTbottomtextmargin +% +% Available CLASSINFOs provided: +% \ifCLASSINFOpdf (TeX if conditional) +% \CLASSINFOpaperwidth (macro) +% \CLASSINFOpaperheight (macro) +% \CLASSINFOnormalsizebaselineskip (length) +% \CLASSINFOnormalsizeunitybaselineskip (length) +% +% Available CLASSOPTIONs provided: +% all class option flags (TeX if conditionals) unless otherwise noted, +% e.g., \ifCLASSOPTIONcaptionsoff +% point size options provided as a single macro: +% \CLASSOPTIONpt +% which will be defined as 9, 10, 11, or 12 depending on the document's +% normalsize point size. +% also, class option peerreviewca implies the use of class option peerreview +% and classoption draft implies the use of class option draftcls + + + + + +\ProvidesClass{IEEEtran}[2015/08/26 V1.8b by Michael Shell] +\typeout{-- See the "IEEEtran_HOWTO" manual for usage information.} +\typeout{-- http://www.michaelshell.org/tex/ieeetran/} +\NeedsTeXFormat{LaTeX2e} + +% IEEEtran.cls version numbers, provided as of V1.3 +% These values serve as a way a .tex file can +% determine if the new features are provided. +% The version number of this IEEEtrans.cls can be obtained from +% these values. i.e., V1.4 +% KEEP THESE AS INTEGERS! i.e., NO {4a} or anything like that- +% (no need to enumerate "a" minor changes here) +\def\IEEEtransversionmajor{1} +\def\IEEEtransversionminor{8} + + +% hook to allow easy changeover to IEEEtran.cls/tools.sty error reporting +\def\@IEEEclspkgerror{\ClassError{IEEEtran}} + + +% These do nothing, but provide them like in article.cls +\newif\if@restonecol +\newif\if@titlepage + + +% class option conditionals +\newif\ifCLASSOPTIONonecolumn \CLASSOPTIONonecolumnfalse +\newif\ifCLASSOPTIONtwocolumn \CLASSOPTIONtwocolumntrue + +\newif\ifCLASSOPTIONoneside \CLASSOPTIONonesidetrue +\newif\ifCLASSOPTIONtwoside \CLASSOPTIONtwosidefalse + +\newif\ifCLASSOPTIONfinal \CLASSOPTIONfinaltrue +\newif\ifCLASSOPTIONdraft \CLASSOPTIONdraftfalse +\newif\ifCLASSOPTIONdraftcls \CLASSOPTIONdraftclsfalse +\newif\ifCLASSOPTIONdraftclsnofoot \CLASSOPTIONdraftclsnofootfalse + +\newif\ifCLASSOPTIONpeerreview \CLASSOPTIONpeerreviewfalse +\newif\ifCLASSOPTIONpeerreviewca \CLASSOPTIONpeerreviewcafalse + +\newif\ifCLASSOPTIONjournal \CLASSOPTIONjournaltrue +\newif\ifCLASSOPTIONconference \CLASSOPTIONconferencefalse +\newif\ifCLASSOPTIONtechnote \CLASSOPTIONtechnotefalse + +\newif\ifCLASSOPTIONnofonttune \CLASSOPTIONnofonttunefalse + +\newif\ifCLASSOPTIONcaptionsoff \CLASSOPTIONcaptionsofffalse + +\newif\ifCLASSOPTIONcomsoc \CLASSOPTIONcomsocfalse +\newif\ifCLASSOPTIONcompsoc \CLASSOPTIONcompsocfalse +\newif\ifCLASSOPTIONtransmag \CLASSOPTIONtransmagfalse + +\newif\ifCLASSOPTIONromanappendices \CLASSOPTIONromanappendicesfalse + + +% class info conditionals + +% indicates if pdf (via pdflatex) output +\newif\ifCLASSINFOpdf \CLASSINFOpdffalse + + +% V1.6b internal flag to show if using a4paper +\newif\if@IEEEusingAfourpaper \@IEEEusingAfourpaperfalse +% V1.6b internal flag to show if using cspaper +\newif\if@IEEEusingcspaper \@IEEEusingcspaperfalse + + +% IEEEtran class scratch pad registers +% dimen +\newdimen\@IEEEtrantmpdimenA +\newdimen\@IEEEtrantmpdimenB +\newdimen\@IEEEtrantmpdimenC +% count +\newcount\@IEEEtrantmpcountA +\newcount\@IEEEtrantmpcountB +\newcount\@IEEEtrantmpcountC +% token list +\newtoks\@IEEEtrantmptoksA + +% we use \CLASSOPTIONpt so that we can ID the point size (even for 9pt docs) +% as well as LaTeX's \@ptsize to retain some compatability with some +% external packages +\def\@ptsize{0} +% LaTeX does not support 9pt, so we set \@ptsize to 0 - same as that of 10pt +\DeclareOption{9pt}{\def\CLASSOPTIONpt{9}\def\@ptsize{0}} +\DeclareOption{10pt}{\def\CLASSOPTIONpt{10}\def\@ptsize{0}} +\DeclareOption{11pt}{\def\CLASSOPTIONpt{11}\def\@ptsize{1}} +\DeclareOption{12pt}{\def\CLASSOPTIONpt{12}\def\@ptsize{2}} + + + +\DeclareOption{letterpaper}{\setlength{\paperwidth}{8.5in}% + \setlength{\paperheight}{11in}% + \@IEEEusingAfourpaperfalse + \@IEEEusingcspaperfalse + \def\CLASSOPTIONpaper{letter}% + \def\CLASSINFOpaperwidth{8.5in}% + \def\CLASSINFOpaperheight{11in}} + + +\DeclareOption{a4paper}{\setlength{\paperwidth}{210mm}% + \setlength{\paperheight}{297mm}% + \@IEEEusingAfourpapertrue + \@IEEEusingcspaperfalse + \def\CLASSOPTIONpaper{a4}% + \def\CLASSINFOpaperwidth{210mm}% + \def\CLASSINFOpaperheight{297mm}} + +% special paper option for compsoc journals +\DeclareOption{cspaper}{\setlength{\paperwidth}{7.875in}% + \setlength{\paperheight}{10.75in}% + \@IEEEusingcspapertrue + \@IEEEusingAfourpaperfalse + \def\CLASSOPTIONpaper{ieeecs}% + \def\CLASSINFOpaperwidth{7.875in}% + \def\CLASSINFOpaperheight{10.75in}} + +\DeclareOption{oneside}{\@twosidefalse\@mparswitchfalse + \CLASSOPTIONonesidetrue\CLASSOPTIONtwosidefalse} +\DeclareOption{twoside}{\@twosidetrue\@mparswitchtrue + \CLASSOPTIONtwosidetrue\CLASSOPTIONonesidefalse} + +\DeclareOption{onecolumn}{\CLASSOPTIONonecolumntrue\CLASSOPTIONtwocolumnfalse} +\DeclareOption{twocolumn}{\CLASSOPTIONtwocolumntrue\CLASSOPTIONonecolumnfalse} + +% If the user selects draft, then this class AND any packages +% will go into draft mode. +\DeclareOption{draft}{\CLASSOPTIONdrafttrue\CLASSOPTIONdraftclstrue + \CLASSOPTIONdraftclsnofootfalse} +% draftcls is for a draft mode which will not affect any packages +% used by the document. +\DeclareOption{draftcls}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclstrue + \CLASSOPTIONdraftclsnofootfalse} +% draftclsnofoot is like draftcls, but without the footer. +\DeclareOption{draftclsnofoot}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclstrue + \CLASSOPTIONdraftclsnofoottrue} +\DeclareOption{final}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclsfalse + \CLASSOPTIONdraftclsnofootfalse} + +\DeclareOption{journal}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse + \CLASSOPTIONjournaltrue\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse} + +\DeclareOption{conference}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse + \CLASSOPTIONjournalfalse\CLASSOPTIONconferencetrue\CLASSOPTIONtechnotefalse} + +\DeclareOption{technote}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse + \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotetrue} + +\DeclareOption{peerreview}{\CLASSOPTIONpeerreviewtrue\CLASSOPTIONpeerreviewcafalse + \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse} + +\DeclareOption{peerreviewca}{\CLASSOPTIONpeerreviewtrue\CLASSOPTIONpeerreviewcatrue + \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse} + +\DeclareOption{nofonttune}{\CLASSOPTIONnofonttunetrue} + +\DeclareOption{captionsoff}{\CLASSOPTIONcaptionsofftrue} + +\DeclareOption{comsoc}{\CLASSOPTIONcomsoctrue\CLASSOPTIONcompsocfalse\CLASSOPTIONtransmagfalse} + +\DeclareOption{compsoc}{\CLASSOPTIONcomsocfalse\CLASSOPTIONcompsoctrue\CLASSOPTIONtransmagfalse} + +\DeclareOption{transmag}{\CLASSOPTIONtransmagtrue\CLASSOPTIONcomsocfalse\CLASSOPTIONcompsocfalse} + +\DeclareOption{romanappendices}{\CLASSOPTIONromanappendicestrue} + + +% default to US letter paper, 10pt, twocolumn, one sided, final, journal +\ExecuteOptions{letterpaper,10pt,twocolumn,oneside,final,journal} +% overrride these defaults per user requests +\ProcessOptions + + + +%% -- Command Argument Scanning Support Functions -- + +% Sets the category codes for punctuation to their normal values. +% For local use with argument scanning. +\def\IEEEnormalcatcodespunct{\catcode`\!=12 \catcode`\,=12 \catcode`\:=12 +\catcode`\;=12 \catcode`\`=12 \catcode`\'=12 \catcode`\"=12 \catcode`\.=12 +\catcode`\/=12 \catcode`\?=12 \catcode`\*=12 \catcode`\+=12 \catcode`\-=12 +\catcode`\<=12 \catcode`\>=12 \catcode`\(=12 \catcode`\)=12 \catcode`\[=12 +\catcode`\]=12 \catcode`\==12 \catcode`\|=12} +% Sets the category codes for numbers to their normal values. +% For local use with argument scanning. +\def\IEEEnormalcatcodesnum{\catcode`\0=12 \catcode`\1=12 \catcode`\2=12 +\catcode`\3=12 \catcode`\4=12 \catcode`\5=12 \catcode`\6=12 \catcode`\7=12 +\catcode`\8=12 \catcode`\9=12} +% combined action of \IEEEnormalcatcodespunct and \IEEEnormalcatcodesnum +\def\IEEEnormalcatcodes{\IEEEnormalcatcodespunct\IEEEnormalcatcodesnum} + + +% usage: \@IEEEextracttoken*{} +% \@IEEEextracttoken fully expands its argument (which it then stores in +% \@IEEEextracttokenarg) via \edef and then the meaning of the first +% nonbrace (but including the empty group) token found is assigned via \let +% to \@IEEEextractedtoken as well as stored in the macro +% \@IEEEextractedtokenmacro. Tokens that would otherwise be discarded during +% the acquisition of the first are stored in \@IEEEextractedtokensdiscarded, +% however their original relative brace nesting depths are not guaranteed to +% be preserved. +% If the argument is empty, or if a first nonbrace token does not exist (or +% is an empty group), \@IEEEextractedtoken will be \relax and +% \@IEEEextractedtokenmacro and \@IEEEextractedtokensdiscarded will be empty. +% +% For example: +% \@IEEEextracttoken{{{ab}{cd}}{{ef}g}} +% results in: +% +% \@IEEEextracttokenarg ==> a macro containing {{ab}{cd}}{{ef}g} +% \@IEEEextractedtoken ==> the letter a +% \@IEEEextractedtokenmacro ==> a macro containing a +% \@IEEEextractedtokensdiscarded ==> a macro containing bcd{ef}g +% +% the *-star form, \@IEEEextracttoken*, does not expand its argument +% contents during processing. +\def\@IEEEextracttoken{\@ifstar{\let\@IEEEextracttokendef=\def\@@IEEEextracttoken}{\let\@IEEEextracttokendef=\edef\@@IEEEextracttoken}} + +\def\@@IEEEextracttoken#1{\@IEEEextracttokendef\@IEEEextracttokenarg{#1}\relax +\def\@IEEEextractedtokensdiscarded{}\relax % initialize to empty +% if the macro is unchanged after being acquired as a single undelimited argument +% with anything after it being stripped off as a delimited argument +% we know we have one token without any enclosing braces. loop until this is true. +\let\@IEEEextracttokencurgroup\@IEEEextracttokenarg +\loop + % trap case of an empty argument as this would cause a problem with + % \@@@IEEEextracttoken's first (nondelimited) argument acquisition + \ifx\@IEEEextracttokencurgroup\@empty + \def\@IEEEextractedtokenmacro{}\relax + \else + \expandafter\@@@IEEEextracttoken\@IEEEextracttokencurgroup\@IEEEgeneralsequenceDELIMITER\relax + \fi + \ifx\@IEEEextractedtokenmacro\@IEEEextracttokencurgroup + \else + \let\@IEEEextracttokencurgroup=\@IEEEextractedtokenmacro +\repeat +% we can safely do a \let= here because there should be at most one token +% the relax is needed to handle the case of no token found +\expandafter\let\expandafter\@IEEEextractedtoken\@IEEEextractedtokenmacro\relax} + +\def\@@@IEEEextracttoken#1#2\@IEEEgeneralsequenceDELIMITER{\def\@IEEEextractedtokenmacro{#1}\relax +\def\@@IEEEextractedtokensdiscarded{#2}\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter +\@IEEEextractedtokensdiscarded\expandafter\expandafter\expandafter +{\expandafter\@@IEEEextractedtokensdiscarded\@IEEEextractedtokensdiscarded}} +%% +%% -- End of Command Argument Scanning Support Functions -- + + + +% Computer Society conditional execution command +\long\def\@IEEEcompsoconly#1{\relax\ifCLASSOPTIONcompsoc\relax#1\relax\fi\relax} +% inverse +\long\def\@IEEEnotcompsoconly#1{\relax\ifCLASSOPTIONcompsoc\else\relax#1\relax\fi\relax} +% compsoc conference +\long\def\@IEEEcompsocconfonly#1{\relax\ifCLASSOPTIONcompsoc\ifCLASSOPTIONconference\relax#1\relax\fi\fi\relax} +% compsoc not conference +\long\def\@IEEEcompsocnotconfonly#1{\relax\ifCLASSOPTIONcompsoc\ifCLASSOPTIONconference\else\relax#1\relax\fi\fi\relax} + + +% comsoc verify that newtxmath, mtpro2, mt11p or mathtime has been loaded +\def\@IEEEcomsocverifymathfont{\typeout{-- Verifying Times compatible math font.}\relax + \@ifpackageloaded{newtxmath}{\typeout{-- newtxmath loaded, OK.}}{\@@IEEEcomsocverifymathfont}} +\def\@@IEEEcomsocverifymathfont{\@ifpackageloaded{mtpro2}{\typeout{-- mtpro2 loaded, OK.}}{\@@@IEEEcomsocverifymathfont}} +\def\@@@IEEEcomsocverifymathfont{\@ifpackageloaded{mt11p}{\typeout{-- mt11p2 loaded, OK.}}{\@@@@IEEEcomsocverifymathfont}} +\def\@@@@IEEEcomsocverifymathfont{\@ifpackageloaded{mathtime}{\typeout{-- mathtime loaded, OK.}}{\@IEEEcomsocenforcemathfont}} + +% comsoc, if a Times math font was not loaded by user, enforce it +\def\@IEEEcomsocenforcemathfont{\typeout{** Times compatible math font not found, forcing.}\relax +\IfFileExists{newtxmath.sty}{\typeout{-- Found newtxmath, loading.}\RequirePackage{newtxmath}}{\@@IEEEcomsocenforcemathfont}} +\def\@@IEEEcomsocenforcemathfont{\IfFileExists{mtpro2.sty}{\typeout{-- Found mtpro2, loading.}\RequirePackage{mtpro2}}{\@@@IEEEcomsocenforcemathfont}} +\def\@@@IEEEcomsocenforcemathfont{\IfFileExists{mt11p.sty}{\typeout{-- Found mt11p, loading.}\RequirePackage{mt11p}}{\@@@@IEEEcomsocenforcemathfont}} +\def\@@@@IEEEcomsocenforcemathfont{\IfFileExists{mathtime.sty}{\typeout{-- Found mathtime, loading.}\RequirePackage{mathtime}}{\@@@@@IEEEcomsocenforcemathfont}} +% if no acceptable Times math font package found, error with newtxmath requirement +\def\@@@@@IEEEcomsocenforcemathfont{\typeout{** No Times compatible math font package found. newtxmath is required.}\RequirePackage{newtxmath}} + + +\ifCLASSOPTIONcomsoc + % ensure that if newtxmath is used, the cmintegrals option is also invoked + \PassOptionsToPackage{cmintegrals}{newtxmath} + % comsoc requires a Times like math font + % ensure this requirement is satisfied at document start + \AtBeginDocument{\@IEEEcomsocverifymathfont} +\fi + + + +% The IEEE uses Times Roman font, so we'll default to Times. +% These three commands make up the entire times.sty package. +\renewcommand{\sfdefault}{phv} +\renewcommand{\rmdefault}{ptm} +\renewcommand{\ttdefault}{pcr} + +% V1.7 compsoc nonconference papers, use Palatino/Palladio as the main text font, +% not Times Roman. +\@IEEEcompsocnotconfonly{\renewcommand{\rmdefault}{ppl}} + +% enable the selected main text font +\normalfont\selectfont + + +\ifCLASSOPTIONcomsoc + \typeout{-- Using IEEE Communications Society mode.} +\fi + +\ifCLASSOPTIONcompsoc + \typeout{-- Using IEEE Computer Society mode.} +\fi + + +% V1.7 conference notice message hook +\def\@IEEEconsolenoticeconference{\typeout{}% +\typeout{** Conference Paper **}% +\typeout{Before submitting the final camera ready copy, remember to:}% +\typeout{}% +\typeout{ 1. Manually equalize the lengths of two columns on the last page}% +\typeout{ of your paper;}% +\typeout{}% +\typeout{ 2. Ensure that any PostScript and/or PDF output post-processing}% +\typeout{ uses only Type 1 fonts and that every step in the generation}% +\typeout{ process uses the appropriate paper size.}% +\typeout{}} + + +% we can send console reminder messages to the user here +\AtEndDocument{\ifCLASSOPTIONconference\@IEEEconsolenoticeconference\fi} + + +% warn about the use of single column other than for draft mode +\ifCLASSOPTIONtwocolumn\else% + \ifCLASSOPTIONdraftcls\else% + \typeout{** ATTENTION: Single column mode is not typically used with IEEE publications.}% + \fi% +\fi + + +% V1.7 improved paper size setting code. +% Set pdfpage and dvips paper sizes. Conditional tests are similar to that +% of ifpdf.sty. Retain within {} to ensure tested macros are never altered, +% even if only effect is to set them to \relax. +% if \pdfoutput is undefined or equal to relax, output a dvips special +{\@ifundefined{pdfoutput}{\AtBeginDvi{\special{papersize=\CLASSINFOpaperwidth,\CLASSINFOpaperheight}}}{% +% pdfoutput is defined and not equal to \relax +% check for pdfpageheight existence just in case someone sets pdfoutput +% under non-pdflatex. If exists, set them regardless of value of \pdfoutput. +\@ifundefined{pdfpageheight}{\relax}{\global\pdfpagewidth\paperwidth +\global\pdfpageheight\paperheight}% +% if using \pdfoutput=0 under pdflatex, send dvips papersize special +\ifcase\pdfoutput +\AtBeginDvi{\special{papersize=\CLASSINFOpaperwidth,\CLASSINFOpaperheight}}% +\else +% we are using pdf output, set CLASSINFOpdf flag +\global\CLASSINFOpdftrue +\fi}} + +% let the user know the selected papersize +\typeout{-- Using \CLASSINFOpaperwidth\space x \CLASSINFOpaperheight\space +(\CLASSOPTIONpaper)\space paper.} + +\ifCLASSINFOpdf +\typeout{-- Using PDF output.} +\else +\typeout{-- Using DVI output.} +\fi + + +% The idea hinted here is for LaTeX to generate markleft{} and markright{} +% automatically for you after you enter \author{}, \journal{}, +% \journaldate{}, journalvol{}, \journalnum{}, etc. +% However, there may be some backward compatibility issues here as +% well as some special applications for IEEEtran.cls and special issues +% that may require the flexible \markleft{}, \markright{} and/or \markboth{}. +% We'll leave this as an open future suggestion. +%\newcommand{\journal}[1]{\def\@journal{#1}} +%\def\@journal{} + + + +% pointsize values +% used with ifx to determine the document's normal size +\def\@IEEEptsizenine{9} +\def\@IEEEptsizeten{10} +\def\@IEEEptsizeeleven{11} +\def\@IEEEptsizetwelve{12} + + + +% FONT DEFINITIONS (No sizexx.clo file needed) +% V1.6 revised font sizes, displayskip values and +% revised normalsize baselineskip to reduce underfull vbox problems +% on the 58pc = 696pt = 9.5in text height we want +% normalsize #lines/column baselineskip (aka leading) +% 9pt 63 11.0476pt (truncated down) +% 10pt 58 12pt (exact) +% 11pt 52 13.3846pt (truncated down) +% 12pt 50 13.92pt (exact) +% + +% we need to store the nominal baselineskip for the given font size +% in case baselinestretch ever changes. +% this is a dimen, so it will not hold stretch or shrink +\newdimen\@IEEEnormalsizeunitybaselineskip +\@IEEEnormalsizeunitybaselineskip\baselineskip + + + +%% ******* WARNING! ******* +%% +%% Authors should not alter font sizes, baselineskip ("leading"), +%% margins or other spacing values in an attempt to squeeze more +%% material on each page. +%% +%% The IEEE's own typesetting software will restore the correct +%% values when re-typesetting/proofing the submitted document, +%% possibly resulting in unexpected article over length charges. +%% +%% ******* WARNING! ******* + + +% 9pt option defaults +\ifx\CLASSOPTIONpt\@IEEEptsizenine +\typeout{-- This is a 9 point document.} +\def\normalsize{\@setfontsize{\normalsize}{9}{11.0476pt}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{11.0476pt} +\normalsize +\abovedisplayskip 1.5ex plus 3pt minus 1pt +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 3pt +\belowdisplayshortskip 1.5ex plus 3pt minus 1pt +\def\small{\@setfontsize{\small}{8.5}{10pt}} +\def\footnotesize{\@setfontsize{\footnotesize}{8}{9pt}} +\def\scriptsize{\@setfontsize{\scriptsize}{7}{8pt}} +\def\tiny{\@setfontsize{\tiny}{5}{6pt}} +% sublargesize is the same as large - 10pt +\def\sublargesize{\@setfontsize{\sublargesize}{10}{12pt}} +\def\large{\@setfontsize{\large}{10}{12pt}} +\def\Large{\@setfontsize{\Large}{12}{14pt}} +\def\LARGE{\@setfontsize{\LARGE}{14}{17pt}} +\def\huge{\@setfontsize{\huge}{17}{20pt}} +\def\Huge{\@setfontsize{\Huge}{20}{24pt}} +\fi +% +% 10pt option defaults +\ifx\CLASSOPTIONpt\@IEEEptsizeten +\typeout{-- This is a 10 point document.} +\def\normalsize{\@setfontsize{\normalsize}{10}{12.00pt}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{12pt} +\normalsize +\abovedisplayskip 1.5ex plus 4pt minus 2pt +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 4pt +\belowdisplayshortskip 1.5ex plus 4pt minus 2pt +\def\small{\@setfontsize{\small}{9}{10pt}} +\def\footnotesize{\@setfontsize{\footnotesize}{8}{9pt}} +\def\scriptsize{\@setfontsize{\scriptsize}{7}{8pt}} +\def\tiny{\@setfontsize{\tiny}{5}{6pt}} +% sublargesize is a tad smaller than large - 11pt +\def\sublargesize{\@setfontsize{\sublargesize}{11}{13.4pt}} +\def\large{\@setfontsize{\large}{12}{14pt}} +\def\Large{\@setfontsize{\Large}{14}{17pt}} +\def\LARGE{\@setfontsize{\LARGE}{17}{20pt}} +\def\huge{\@setfontsize{\huge}{20}{24pt}} +\def\Huge{\@setfontsize{\Huge}{24}{28pt}} +\fi +% +% 11pt option defaults +\ifx\CLASSOPTIONpt\@IEEEptsizeeleven +\typeout{-- This is an 11 point document.} +\def\normalsize{\@setfontsize{\normalsize}{11}{13.3846pt}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{13.3846pt} +\normalsize +\abovedisplayskip 1.5ex plus 5pt minus 3pt +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 5pt +\belowdisplayshortskip 1.5ex plus 5pt minus 3pt +\def\small{\@setfontsize{\small}{10}{12pt}} +\def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}} +\def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}} +\def\tiny{\@setfontsize{\tiny}{6}{7pt}} +% sublargesize is the same as large - 12pt +\def\sublargesize{\@setfontsize{\sublargesize}{12}{14pt}} +\def\large{\@setfontsize{\large}{12}{14pt}} +\def\Large{\@setfontsize{\Large}{14}{17pt}} +\def\LARGE{\@setfontsize{\LARGE}{17}{20pt}} +\def\huge{\@setfontsize{\huge}{20}{24pt}} +\def\Huge{\@setfontsize{\Huge}{24}{28pt}} +\fi +% +% 12pt option defaults +\ifx\CLASSOPTIONpt\@IEEEptsizetwelve +\typeout{-- This is a 12 point document.} +\def\normalsize{\@setfontsize{\normalsize}{12}{13.92pt}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{13.92pt} +\normalsize +\abovedisplayskip 1.5ex plus 6pt minus 4pt +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 6pt +\belowdisplayshortskip 1.5ex plus 6pt minus 4pt +\def\small{\@setfontsize{\small}{10}{12pt}} +\def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}} +\def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}} +\def\tiny{\@setfontsize{\tiny}{6}{7pt}} +% sublargesize is the same as large - 14pt +\def\sublargesize{\@setfontsize{\sublargesize}{14}{17pt}} +\def\large{\@setfontsize{\large}{14}{17pt}} +\def\Large{\@setfontsize{\Large}{17}{20pt}} +\def\LARGE{\@setfontsize{\LARGE}{20}{24pt}} +\def\huge{\@setfontsize{\huge}{22}{26pt}} +\def\Huge{\@setfontsize{\Huge}{24}{28pt}} +\fi + + + +% V1.8a compsoc font sizes +% compsoc font sizes use bp "Postscript" point units (1/72in) +% rather than the traditional pt (1/72.27) +\ifCLASSOPTIONcompsoc +% -- compsoc defaults -- +% ** will override some of these values later ** +% 9pt +\ifx\CLASSOPTIONpt\@IEEEptsizenine +\def\normalsize{\@setfontsize{\normalsize}{9bp}{11bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{11bp} +\normalsize +\abovedisplayskip 1.5ex plus 3bp minus 1bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0bp plus 3bp +\belowdisplayshortskip 1.5ex plus 3bp minus 1bp +\def\small{\@setfontsize{\small}{8.5bp}{10bp}} +\def\footnotesize{\@setfontsize{\footnotesize}{8bp}{9bp}} +\def\scriptsize{\@setfontsize{\scriptsize}{7bp}{8bp}} +\def\tiny{\@setfontsize{\tiny}{5bp}{6bp}} +% sublargesize is the same as large - 10bp +\def\sublargesize{\@setfontsize{\sublargesize}{10bp}{12bp}} +\def\large{\@setfontsize{\large}{10bp}{12bp}} +\def\Large{\@setfontsize{\Large}{12bp}{14bp}} +\def\LARGE{\@setfontsize{\LARGE}{14bp}{17bp}} +\def\huge{\@setfontsize{\huge}{17bp}{20bp}} +\def\Huge{\@setfontsize{\Huge}{20bp}{24bp}} +\fi +% +% 10pt +\ifx\CLASSOPTIONpt\@IEEEptsizeten +\def\normalsize{\@setfontsize{\normalsize}{10bp}{12bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{12bp} +\normalsize +\abovedisplayskip 1.5ex plus 4bp minus 2bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 4bp +\belowdisplayshortskip 1.5ex plus 4bp minus 2bp +\def\small{\@setfontsize{\small}{9bp}{10bp}} +\def\footnotesize{\@setfontsize{\footnotesize}{8bp}{9bp}} +\def\scriptsize{\@setfontsize{\scriptsize}{7bp}{8bp}} +\def\tiny{\@setfontsize{\tiny}{5bp}{6bp}} +% sublargesize is a tad smaller than large - 11bp +\def\sublargesize{\@setfontsize{\sublargesize}{11bp}{13.5bp}} +\def\large{\@setfontsize{\large}{12bp}{14bp}} +\def\Large{\@setfontsize{\Large}{14bp}{17bp}} +\def\LARGE{\@setfontsize{\LARGE}{17bp}{20bp}} +\def\huge{\@setfontsize{\huge}{20bp}{24bp}} +\def\Huge{\@setfontsize{\Huge}{24bp}{28bp}} +\fi +% +% 11pt +\ifx\CLASSOPTIONpt\@IEEEptsizeeleven +\def\normalsize{\@setfontsize{\normalsize}{11bp}{13.5bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{13.5bp} +\normalsize +\abovedisplayskip 1.5ex plus 5bp minus 3bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 5bp +\belowdisplayshortskip 1.5ex plus 5bp minus 3bp +\def\small{\@setfontsize{\small}{10bp}{12bp}} +\def\footnotesize{\@setfontsize{\footnotesize}{9bp}{10.5bp}} +\def\scriptsize{\@setfontsize{\scriptsize}{8bp}{9bp}} +\def\tiny{\@setfontsize{\tiny}{6bp}{7bp}} +% sublargesize is the same as large - 12bp +\def\sublargesize{\@setfontsize{\sublargesize}{12bp}{14bp}} +\def\large{\@setfontsize{\large}{12bp}{14bp}} +\def\Large{\@setfontsize{\Large}{14bp}{17bp}} +\def\LARGE{\@setfontsize{\LARGE}{17bp}{20bp}} +\def\huge{\@setfontsize{\huge}{20bp}{24bp}} +\def\Huge{\@setfontsize{\Huge}{24bp}{28bp}} +\fi +% +% 12pt +\ifx\CLASSOPTIONpt\@IEEEptsizetwelve +\def\normalsize{\@setfontsize{\normalsize}{12bp}{14bp}}% +\setlength{\@IEEEnormalsizeunitybaselineskip}{14bp}% +\normalsize +\abovedisplayskip 1.5ex plus 6bp minus 4bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 6bp +\belowdisplayshortskip 1.5ex plus 6bp minus 4bp +\def\small{\@setfontsize{\small}{10bp}{12bp}} +\def\footnotesize{\@setfontsize{\footnotesize}{9bp}{10.5bp}} +\def\scriptsize{\@setfontsize{\scriptsize}{8bp}{9bp}} +\def\tiny{\@setfontsize{\tiny}{6bp}{7bp}} +% sublargesize is the same as large - 14bp +\def\sublargesize{\@setfontsize{\sublargesize}{14bp}{17bp}} +\def\large{\@setfontsize{\large}{14bp}{17bp}} +\def\Large{\@setfontsize{\Large}{17bp}{20bp}} +\def\LARGE{\@setfontsize{\LARGE}{20bp}{24bp}} +\def\huge{\@setfontsize{\huge}{22bp}{26bp}} +\def\Huge{\@setfontsize{\Huge}{24bp}{28bp}} +\fi +% +% -- override defaults: compsoc journals use special normalsizes -- +\ifCLASSOPTIONconference +% +% compsoc conferences +% 9pt +\ifx\CLASSOPTIONpt\@IEEEptsizenine +\def\normalsize{\@setfontsize{\normalsize}{9bp}{10.8bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{10.8bp} +\normalsize +\abovedisplayskip 1.5ex plus 3bp minus 1bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0bp plus 3bp +\belowdisplayshortskip 1.5ex plus 3bp minus 1bp +\fi +% 10pt +\ifx\CLASSOPTIONpt\@IEEEptsizeten +\def\normalsize{\@setfontsize{\normalsize}{10bp}{11.2bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{11.2bp} +\normalsize +\abovedisplayskip 1.5ex plus 4bp minus 2bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 4bp +\belowdisplayshortskip 1.5ex plus 4bp minus 2bp +\fi +% 11pt +\ifx\CLASSOPTIONpt\@IEEEptsizeeleven +\def\normalsize{\@setfontsize{\normalsize}{11bp}{13.2bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{13.2bp} +\normalsize +\abovedisplayskip 1.5ex plus 5bp minus 3bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 5bp +\belowdisplayshortskip 1.5ex plus 5bp minus 3bp +\fi +% 12pt +\ifx\CLASSOPTIONpt\@IEEEptsizetwelve +\def\normalsize{\@setfontsize{\normalsize}{12bp}{14.4bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{14.4bp} +\normalsize +\abovedisplayskip 1.5ex plus 6bp minus 4bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 6bp +\belowdisplayshortskip 1.5ex plus 6bp minus 4bp +\fi +% +% compsoc nonconferences +\else +% 9pt +\ifx\CLASSOPTIONpt\@IEEEptsizenine +\def\normalsize{\@setfontsize{\normalsize}{9bp}{10.8bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{10.8bp} +\normalsize +\abovedisplayskip 1.5ex plus 3bp minus 1bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0bp plus 3bp +\belowdisplayshortskip 1.5ex plus 3bp minus 1bp +\fi +% 10pt +\ifx\CLASSOPTIONpt\@IEEEptsizeten +% the official spec is 9.5bp with 11.4bp leading for 10pt, +% but measurements of proofs suggest upto 11.723bp leading +% here we'll use 11.54bp which gives 61 lines per column +% with the standard compsoc margins +\def\normalsize{\@setfontsize{\normalsize}{9.5bp}{11.54bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{11.54bp} +\normalsize +\abovedisplayskip 1.5ex plus 4bp minus 2bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 4bp +\belowdisplayshortskip 1.5ex plus 4bp minus 2bp +\fi +% 11pt +\ifx\CLASSOPTIONpt\@IEEEptsizeeleven +\def\normalsize{\@setfontsize{\normalsize}{11bp}{13.2bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{13.2bp} +\normalsize +\abovedisplayskip 1.5ex plus 5bp minus 3bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 5bp +\belowdisplayshortskip 1.5ex plus 5bp minus 3bp +\fi +% 12pt +\ifx\CLASSOPTIONpt\@IEEEptsizetwelve +\def\normalsize{\@setfontsize{\normalsize}{12bp}{14.4bp}} +\setlength{\@IEEEnormalsizeunitybaselineskip}{14.4bp} +\normalsize +\abovedisplayskip 1.5ex plus 6bp minus 4bp +\belowdisplayskip \abovedisplayskip +\abovedisplayshortskip 0pt plus 6bp +\belowdisplayshortskip 1.5ex plus 6bp minus 4bp +\fi +\fi\fi + + + + +% V1.6 The Computer Modern Fonts will issue a substitution warning for +% 24pt titles (24.88pt is used instead, but the default and correct +% Times font will scale exactly as needed) increase the substitution +% tolerance to turn off this warning. +% +% V1.8a, the compsoc bp font sizes can also cause bogus font substitution +% warnings with footnote or scriptsize math and the $\bullet$ itemized +% list of \IEEEcompsocitemizethanks. So, increase this to 1.5pt or more. +\def\fontsubfuzz{1.7bp} + + +% warn the user in case they forget to use the 9pt option with +% technote +\ifCLASSOPTIONtechnote% + \ifx\CLASSOPTIONpt\@IEEEptsizenine\else% + \typeout{** ATTENTION: Technotes are normally 9pt documents.}% + \fi% +\fi + + +% V1.7 +% Improved \textunderscore to provide a much better fake _ when used with +% OT1 encoding. Under OT1, detect use of pcr or cmtt \ttfamily and use +% available true _ glyph for those two typewriter fonts. +\def\@IEEEstringptm{ptm} % Times Roman family +\def\@IEEEstringppl{ppl} % Palatino Roman family +\def\@IEEEstringphv{phv} % Helvetica Sans Serif family +\def\@IEEEstringpcr{pcr} % Courier typewriter family +\def\@IEEEstringcmtt{cmtt} % Computer Modern typewriter family +\DeclareTextCommandDefault{\textunderscore}{\leavevmode +\ifx\f@family\@IEEEstringpcr\string_\else +\ifx\f@family\@IEEEstringcmtt\string_\else +\ifx\f@family\@IEEEstringptm\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else +\ifx\f@family\@IEEEstringppl\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else +\ifx\f@family\@IEEEstringphv\kern -0.03em\vbox{\hrule\@width 0.62em\@height 0.52pt\kern -0.33ex}\kern -0.03em\else +\kern 0.09em\vbox{\hrule\@width 0.6em\@height 0.44pt\kern -0.63pt\kern -0.42ex}\kern 0.09em\fi\fi\fi\fi\fi\relax} + + + + +% set the default \baselinestretch +\def\baselinestretch{1} +\ifCLASSOPTIONdraftcls + \def\baselinestretch{1.5}% default baselinestretch for draft modes +\fi + + +% process CLASSINPUT baselinestretch +\ifx\CLASSINPUTbaselinestretch\@IEEEundefined +\else + \edef\baselinestretch{\CLASSINPUTbaselinestretch} % user CLASSINPUT override + \typeout{** ATTENTION: Overriding \string\baselinestretch\space to + \baselinestretch\space via \string\CLASSINPUT.} +\fi + +\small\normalsize % make \baselinestretch take affect + + + + +% store the normalsize baselineskip +\newdimen\CLASSINFOnormalsizebaselineskip +\CLASSINFOnormalsizebaselineskip=\baselineskip\relax +% and the normalsize unity (baselinestretch=1) baselineskip +% we could save a register by giving the user access to +% \@IEEEnormalsizeunitybaselineskip. However, let's protect +% its read only internal status +\newdimen\CLASSINFOnormalsizeunitybaselineskip +\CLASSINFOnormalsizeunitybaselineskip=\@IEEEnormalsizeunitybaselineskip\relax +% store the nominal value of jot +\newdimen\IEEEnormaljot +\IEEEnormaljot=0.25\baselineskip\relax + +% set \jot +\jot=\IEEEnormaljot\relax + + + + +% V1.6, we are now going to fine tune the interword spacing +% The default interword glue for Times under TeX appears to use a +% nominal interword spacing of 25% (relative to the font size, i.e., 1em) +% a maximum of 40% and a minimum of 19%. +% For example, 10pt text uses an interword glue of: +% +% 2.5pt plus 1.49998pt minus 0.59998pt +% +% However, the IEEE allows for a more generous range which reduces the need +% for hyphenation, especially for two column text. Furthermore, the IEEE +% tends to use a little bit more nominal space between the words. +% The IEEE's interword spacing percentages appear to be: +% 35% nominal +% 23% minimum +% 50% maximum +% (They may even be using a tad more for the largest fonts such as 24pt.) +% +% for bold text, the IEEE increases the spacing a little more: +% 37.5% nominal +% 23% minimum +% 55% maximum + +% here are the interword spacing ratios we'll use +% for medium (normal weight) +\def\@IEEEinterspaceratioM{0.35} +\def\@IEEEinterspaceMINratioM{0.23} +\def\@IEEEinterspaceMAXratioM{0.50} + +% for bold +\def\@IEEEinterspaceratioB{0.375} +\def\@IEEEinterspaceMINratioB{0.23} +\def\@IEEEinterspaceMAXratioB{0.55} + + +% compsoc nonconference papers use Palatino, +% tweak settings to better match the proofs +\ifCLASSOPTIONcompsoc +\ifCLASSOPTIONconference\else +% for medium (normal weight) +\def\@IEEEinterspaceratioM{0.28} +\def\@IEEEinterspaceMINratioM{0.21} +\def\@IEEEinterspaceMAXratioM{0.47} +% for bold +\def\@IEEEinterspaceratioB{0.305} +\def\@IEEEinterspaceMINratioB{0.21} +\def\@IEEEinterspaceMAXratioB{0.52} +\fi\fi + + +% command to revise the interword spacing for the current font under TeX: +% \fontdimen2 = nominal interword space +% \fontdimen3 = interword stretch +% \fontdimen4 = interword shrink +% since all changes to the \fontdimen are global, we can enclose these commands +% in braces to confine any font attribute or length changes +\def\@@@IEEEsetfontdimens#1#2#3{{% +\setlength{\@IEEEtrantmpdimenB}{\f@size pt}% grab the font size in pt, could use 1em instead. +\setlength{\@IEEEtrantmpdimenA}{#1\@IEEEtrantmpdimenB}% +\fontdimen2\font=\@IEEEtrantmpdimenA\relax +\addtolength{\@IEEEtrantmpdimenA}{-#2\@IEEEtrantmpdimenB}% +\fontdimen3\font=-\@IEEEtrantmpdimenA\relax +\setlength{\@IEEEtrantmpdimenA}{#1\@IEEEtrantmpdimenB}% +\addtolength{\@IEEEtrantmpdimenA}{-#3\@IEEEtrantmpdimenB}% +\fontdimen4\font=\@IEEEtrantmpdimenA\relax}} + +% revise the interword spacing for each font weight +\def\@@IEEEsetfontdimens{{% +\mdseries +\@@@IEEEsetfontdimens{\@IEEEinterspaceratioM}{\@IEEEinterspaceMAXratioM}{\@IEEEinterspaceMINratioM}% +\bfseries +\@@@IEEEsetfontdimens{\@IEEEinterspaceratioB}{\@IEEEinterspaceMAXratioB}{\@IEEEinterspaceMINratioB}% +}} + +% revise the interword spacing for each font shape +% \slshape is not often used for IEEE work and is not altered here. The \scshape caps are +% already a tad too large in the free LaTeX fonts (as compared to what the IEEE uses) so we +% won't alter these either. +\def\@IEEEsetfontdimens{{% +\normalfont +\@@IEEEsetfontdimens +\normalfont\itshape +\@@IEEEsetfontdimens +}} + +% command to revise the interword spacing for each font size (and shape +% and weight). Only the \rmfamily is done here as \ttfamily uses a +% fixed spacing and \sffamily is not used as the main text of IEEE papers. +\def\@IEEEtunefonts{{\selectfont\rmfamily +\tiny\@IEEEsetfontdimens +\scriptsize\@IEEEsetfontdimens +\footnotesize\@IEEEsetfontdimens +\small\@IEEEsetfontdimens +\normalsize\@IEEEsetfontdimens +\sublargesize\@IEEEsetfontdimens +\large\@IEEEsetfontdimens +\LARGE\@IEEEsetfontdimens +\huge\@IEEEsetfontdimens +\Huge\@IEEEsetfontdimens}} + +% if the nofonttune class option is not given, revise the interword spacing +% now - in case IEEEtran makes any default length measurements, and make +% sure all the default fonts are loaded +\ifCLASSOPTIONnofonttune\else +\@IEEEtunefonts +\fi + +% and again at the start of the document in case the user loaded different fonts +\AtBeginDocument{\ifCLASSOPTIONnofonttune\else\@IEEEtunefonts\fi} + + + + + +% -- V1.8a page setup commands -- + +% The default sample text for calculating margins +% Note that IEEE publications use \scriptsize for headers and footers. +\def\IEEEdefaultsampletext{\normalfont\normalsize gT} +\def\IEEEdefaultheadersampletext{\normalfont\scriptsize T}% IEEE headers default to uppercase +\def\IEEEdefaultfootersampletext{\normalfont\scriptsize gT} + + + +% usage: \IEEEsettextwidth{inner margin}{outer margin} +% Sets \textwidth to allow the specified inner and outer margins +% for the current \paperwidth. +\def\IEEEsettextwidth#1#2{\@IEEEtrantmpdimenA\paperwidth +\@IEEEtrantmpdimenB#1\relax +\advance\@IEEEtrantmpdimenA by -\@IEEEtrantmpdimenB +\@IEEEtrantmpdimenB#2\relax +\advance\@IEEEtrantmpdimenA by -\@IEEEtrantmpdimenB +\textwidth\@IEEEtrantmpdimenA} + + + +% usage: \IEEEsetsidemargin{mode: i, o, c, a}{margin/offset} +% Sets \oddsidemargin and \evensidemargin to yield the specified margin +% of the given mode. +% The available modes are: +% i = inner margin +% o = outer margin +% c = centered, with the given offset +% a = adjust the margins using the given offset +% For the offsets, positive values increase the inner margin. +% \textwidth should be set properly for the given margins before calling this +% function. +\def\IEEEsetsidemargin#1#2{\@IEEEtrantmpdimenA #2\relax +\@IEEEextracttoken{#1}\relax +% check for mode errors +\ifx\@IEEEextractedtokenmacro\@empty + \@IEEEclspkgerror{Empty mode type in \string\IEEEsetsidemargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `i'}{Valid modes for \string\IEEEsetsidemargin\space are: i, o, c and a.}\relax + \let\@IEEEextractedtoken=i\relax + \def\@IEEEextractedtokenmacro{i}\relax +\else + \ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: \string\IEEEsetsidemargin\space mode specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax + \fi +\fi +% handle each mode +\if\@IEEEextractedtoken a\relax + \advance\oddsidemargin by \@IEEEtrantmpdimenA\relax +\else +\if\@IEEEextractedtoken c\relax + \oddsidemargin\paperwidth + \advance\oddsidemargin by -\textwidth + \divide\oddsidemargin by 2\relax + \advance\oddsidemargin by -1in\relax + \advance\oddsidemargin by \@IEEEtrantmpdimenA\relax +\else +\if\@IEEEextractedtoken o\relax + \oddsidemargin\paperwidth + \advance\oddsidemargin by -\textwidth + \advance\oddsidemargin by -\@IEEEtrantmpdimenA + \advance\oddsidemargin by -1in\relax +\else + \if\@IEEEextractedtoken i\relax + \else + \@IEEEclspkgerror{Unknown mode type `\@IEEEextractedtokenmacro' in \string\IEEEsetsidemargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `i'}% + {Valid modes for \string\IEEEsetsidemargin\space are: i, o, c and a.}% + \fi + \oddsidemargin\@IEEEtrantmpdimenA + \advance\oddsidemargin by -1in\relax +\fi\fi\fi +% odd and even side margins both mean "inner" for single sided pages +\evensidemargin\oddsidemargin +% but are mirrors of each other when twosided is in effect +\if@twoside + \evensidemargin\paperwidth + \advance\evensidemargin by -\textwidth + \advance\evensidemargin by -\oddsidemargin + % have to compensate for both the builtin 1in LaTex offset + % and the fact we already subtracted this offset from \oddsidemargin + \advance\evensidemargin -2in\relax +\fi} + + + +% usage: \IEEEsettextheight[sample text]{top text margin}{bottom text margin} +% Sets \textheight based on the specified top margin and bottom margin. +% Takes into consideration \paperheight, \topskip, and (by default) the +% the actual height and depth of the \IEEEdefaultsampletext text. +\def\IEEEsettextheight{\@ifnextchar [{\@IEEEsettextheight}{\@IEEEsettextheight[\IEEEdefaultsampletext]}} +\def\@IEEEsettextheight[#1]#2#3{\textheight\paperheight\relax + \@IEEEtrantmpdimenA #2\relax + \advance \textheight by -\@IEEEtrantmpdimenA% subtract top margin + \@IEEEtrantmpdimenA #3\relax + \advance \textheight by -\@IEEEtrantmpdimenA% subtract bottom margin + \advance \textheight by \topskip% add \topskip + % subtract off everything above the top, and below the bottom, baselines + \settoheight{\@IEEEtrantmpdimenA}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance \textheight by -\@IEEEtrantmpdimenA + \settodepth{\@IEEEtrantmpdimenA}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance \textheight by -\@IEEEtrantmpdimenA} + + + +\newdimen\IEEEquantizedlength +\IEEEquantizedlength 0sp\relax +\newdimen\IEEEquantizedlengthdiff +\IEEEquantizedlengthdiff 0sp\relax +\def\IEEEquantizedlengthint{0} + +% usage: \IEEEquantizelength{mode: d, c, i}{base unit}{length} +% Sets the length \IEEEquantizedlength to be an integer multiple of the given +% (nonzero) base unit such that \IEEEquantizedlength approximates the given +% length. +% \IEEEquantizedlengthdiff is a length equal to the difference between the +% \IEEEquantizedlength and the given length. +% \IEEEquantizedlengthint is a macro containing the integer number of base units +% in \IEEEquantizedlength. +% i.e., \IEEEquantizedlength = \IEEEquantizedlengthint * base unit +% The mode determines how \IEEEquantizedlength is quantized: +% d = always decrease (always round down \IEEEquantizeint) +% c = use the closest match +% i = always increase (always round up \IEEEquantizeint) +% In anycase, if the given length is already quantized, +% \IEEEquantizedlengthdiff will be set to zero. +\def\IEEEquantizelength#1#2#3{\begingroup +% work in isolation so as not to externally disturb the \@IEEEtrantmp +% variables +% load the argument values indirectly via \IEEEquantizedlengthdiff +% in case the user refers to our \@IEEEtrantmpdimenX, \IEEEquantizedlength, +% etc. in the arguments. we also will work with these as counters, +% i.e., in sp units +% A has the base unit +\IEEEquantizedlengthdiff #2\relax\relax\relax\relax +\@IEEEtrantmpcountA\IEEEquantizedlengthdiff +% B has the input length +\IEEEquantizedlengthdiff #3\relax\relax\relax\relax +\@IEEEtrantmpcountB\IEEEquantizedlengthdiff +\@IEEEtrantmpdimenA\the\@IEEEtrantmpcountA sp\relax +\@IEEEtrantmpdimenB\the\@IEEEtrantmpcountB sp\relax +% \@IEEEtrantmpcountC will have the quantized int +% \IEEEquantizedlength will have the quantized length +% \@IEEEtrantmpdimenC will have the quantized diff +% initialize them to zero as this is what will be +% exported if an error occurs +\@IEEEtrantmpcountC 0\relax +\IEEEquantizedlength 0sp\relax +\@IEEEtrantmpdimenC 0sp\relax +% extract mode +\@IEEEextracttoken{#1}\relax +% check for mode errors +\ifx\@IEEEextractedtokenmacro\@empty + \@IEEEclspkgerror{Empty mode type in \string\IEEEquantizelength\space (line \the\inputlineno).\MessageBreak + Defaulting to `d'}{Valid modes for \string\IEEEquantizelength\space are: d, c and i.}\relax + \let\@IEEEextractedtoken=d\relax + \def\@IEEEextractedtokenmacro{d}\relax +\else + \ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: \string\IEEEquantizelength\space mode specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax + \fi +\fi +% check for base unit is zero error +\ifnum\@IEEEtrantmpcountA=0\relax +\@IEEEclspkgerror{Base unit is zero in \string\IEEEquantizelength\space (line \the\inputlineno).\MessageBreak + \string\IEEEquantizedlength\space and \string\IEEEquantizedlengthdiff\space are set to zero}{Division by zero is not allowed.}\relax +\else% base unit is nonzero + % \@IEEEtrantmpcountC carries the number of integer units + % in the quantized length (integer length \ base) + \@IEEEtrantmpcountC\@IEEEtrantmpcountB\relax + \divide\@IEEEtrantmpcountC by \@IEEEtrantmpcountA\relax + % \IEEEquantizedlength has the (rounded down) quantized length + % = base * int + \IEEEquantizedlength\@IEEEtrantmpdimenA\relax + \multiply\IEEEquantizedlength by \@IEEEtrantmpcountC\relax + % \@IEEEtrantmpdimenC has the difference + % = quantized length - length + \@IEEEtrantmpdimenC\IEEEquantizedlength\relax + \advance\@IEEEtrantmpdimenC by -\@IEEEtrantmpdimenB\relax + % trap special case of length being already quantized + % to avoid a roundup under i option + \ifdim\@IEEEtrantmpdimenC=0sp\relax + \else % length not is already quantized + % set dimenA to carry the upper quantized (absolute value) difference: + % quantizedlength + base - length + \advance\@IEEEtrantmpdimenA by \IEEEquantizedlength\relax + \advance\@IEEEtrantmpdimenA by -\@IEEEtrantmpdimenB\relax + % set dimenB to carry the lower quantized (absolute value) difference: + % length - quantizedlength + \advance\@IEEEtrantmpdimenB by -\IEEEquantizedlength\relax + % handle each mode + \if\@IEEEextractedtoken c\relax + % compare upper and lower amounts, select upper if lower > upper + \ifdim\@IEEEtrantmpdimenB>\@IEEEtrantmpdimenA\relax + % use upper + \advance\IEEEquantizedlength by \the\@IEEEtrantmpcountA sp\relax + \advance\@IEEEtrantmpcountC by 1\relax + \@IEEEtrantmpdimenC\@IEEEtrantmpdimenA + \else% <=. uselower + % no need to do anything for lower, use output values already setup + \fi + \else% not mode c + \if\@IEEEextractedtoken i\relax + % always round up under i mode + \advance\IEEEquantizedlength by \the\@IEEEtrantmpcountA sp\relax + \advance\@IEEEtrantmpcountC by 1\relax + \@IEEEtrantmpdimenC\@IEEEtrantmpdimenA + \else + \if\@IEEEextractedtoken d\relax + \else + \@IEEEclspkgerror{Unknown mode type `\@IEEEextractedtokenmacro' in \string\IEEEquantizelength\space (line \the\inputlineno).\MessageBreak + Defaulting to `d'}% + {Valid modes for \string\IEEEquantizelength\space are: d, c, and i.}\relax + \fi % if d + % no need to do anything for d, use output values already setup + \fi\fi % if i, c + \fi % if length is already quantized +\fi% if base unit is zero +% globally assign the results to macros we use here to escape the enclosing +% group without needing to call \global on any of the \@IEEEtrantmp variables. +% \@IEEEtrantmpcountC has the quantized int +% \IEEEquantizedlength has the quantized length +% \@IEEEtrantmpdimenC has the quantized diff +\xdef\@IEEEquantizedlengthintmacro{\the\@IEEEtrantmpcountC}\relax +\@IEEEtrantmpcountC\IEEEquantizedlength\relax +\xdef\@IEEEquantizedlengthmacro{\the\@IEEEtrantmpcountC}\relax +\@IEEEtrantmpcountC\@IEEEtrantmpdimenC\relax +\xdef\@IEEEquantizedlengthdiffmacro{\the\@IEEEtrantmpcountC}\relax +\endgroup +% locally assign the outputs here from the macros +\expandafter\IEEEquantizedlength\@IEEEquantizedlengthmacro sp\relax +\expandafter\IEEEquantizedlengthdiff\@IEEEquantizedlengthdiffmacro sp\relax +\edef\IEEEquantizedlengthint{\@IEEEquantizedlengthintmacro}\relax} + + + +\newdimen\IEEEquantizedtextheightdiff +\IEEEquantizedtextheightdiff 0sp\relax + +% usage: \IEEEquantizetextheight[base unit]{mode: d, c, i} +% Sets \textheight to be an integer multiple of the current \baselineskip +% (or the optionally specified base unit) plus the first (\topskip) line. +% \IEEEquantizedtextheightdiff is a length equal to the difference between +% the new quantized and original \textheight. +% \IEEEquantizedtextheightlpc is a macro containing the integer number of +% lines per column under the quantized \textheight. i.e., +% \textheight = \IEEEquantizedtextheightlpc * \baselineskip + \topskip +% The mode determines how \textheight is quantized: +% d = always decrease (always round down the number of lines per column) +% c = use the closest match +% i = always increase (always round up the number of lines per column) +% In anycase, if \textheight is already quantized, it will remain unchanged, +% and \IEEEquantizedtextheightdiff will be set to zero. +% Depends on: \IEEEquantizelength +\def\IEEEquantizetextheight{\@ifnextchar [{\@IEEEquantizetextheight}{\@IEEEquantizetextheight[\baselineskip]}} +\def\@IEEEquantizetextheight[#1]#2{\begingroup +% use our \IEEEquantizedtextheightdiff as a scratch pad +% we need to subtract off \topskip before quantization +\IEEEquantizedtextheightdiff\textheight +\advance\IEEEquantizedtextheightdiff by -\topskip\relax +\IEEEquantizelength{#2}{#1}{\IEEEquantizedtextheightdiff} +% add back \topskip line +\advance\IEEEquantizedlength by \topskip +\@IEEEtrantmpcountC\IEEEquantizedlengthint\relax +\advance\@IEEEtrantmpcountC by 1\relax +% globally assign the results to macros we use here to escape the enclosing +% group without needing to call \global on any of the \@IEEEtrantmp variables. +\xdef\@IEEEquantizedtextheightlpcmacro{\the\@IEEEtrantmpcountC}\relax +\@IEEEtrantmpcountC\IEEEquantizedlength\relax +\xdef\@IEEEquantizedtextheightmacro{\the\@IEEEtrantmpcountC}\relax +\@IEEEtrantmpcountC\IEEEquantizedlengthdiff\relax +\xdef\@IEEEquantizedtextheightdiffmacro{\the\@IEEEtrantmpcountC}\relax +\endgroup +% locally assign the outputs here from the macros +\textheight\@IEEEquantizedtextheightmacro sp\relax +\IEEEquantizedtextheightdiff\@IEEEquantizedtextheightdiffmacro sp\relax +\edef\IEEEquantizedtextheightlpc{\@IEEEquantizedtextheightlpcmacro}} + + + +% usage: \IEEEsettopmargin[sample text]{mode: t, b, c, a, q}{margin/offset} +% Sets \topmargin based on the specified vertical margin. +% Takes into consideration the base 1in offset, \headheight, \headsep, +% \topskip, and (by default) the the actual height (or, for the bottom, depth) +% of the \IEEEdefaultsampletext text. +% The available modes are: +% t = top margin +% b = bottom margin +% c = vertically centered, with the given offset +% a = adjust the vertical margins using the given offset +% q = adjust the margins using \IEEEquantizedtextheightdiff and the given offset +% For the offsets, positive values increase the top margin. +% \headheight, \headsep, \topskip and \textheight should be set properly for the +% given margins before calling this function. +\def\IEEEsettopmargin{\@ifnextchar [{\@IEEEsettopmargin}{\@IEEEsettopmargin[\IEEEdefaultsampletext]}} +\def\@IEEEsettopmargin[#1]#2#3{\@IEEEtrantmpdimenA #3\relax +\@IEEEextracttoken{#2}\relax +% check for mode errors +\ifx\@IEEEextractedtokenmacro\@empty + \@IEEEclspkgerror{Empty mode type in \string\IEEEsettopmargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `t'}{Valid modes for \string\IEEEsettopmargin\space are: t, b, c, a and q.}\relax + \let\@IEEEextractedtoken=t\relax + \def\@IEEEextractedtokenmacro{t}\relax +\else + \ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: \string\IEEEsettopmargin\space mode specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax + \fi +\fi +% handle each mode +\if\@IEEEextractedtoken a\relax + \advance\topmargin by \@IEEEtrantmpdimenA\relax +\else +\if\@IEEEextractedtoken q\relax + % we need to adjust by half the \IEEEquantizedtextheightdiff value + \@IEEEtrantmpdimenB\IEEEquantizedtextheightdiff\relax + \divide\@IEEEtrantmpdimenB by 2\relax + % a positive \IEEEquantizedtextheightdiff means we need to reduce \topmargin + % because \textheight has been lenghtened + \advance\topmargin by -\@IEEEtrantmpdimenB\relax + \advance\topmargin by \@IEEEtrantmpdimenA\relax +\else +\if\@IEEEextractedtoken c\relax + \topmargin\paperheight + \advance\topmargin by -\textheight + % \textheight includes \topskip, but we should not count topskip whitespace here, backout + \advance \topmargin by \topskip + \settoheight{\@IEEEtrantmpdimenB}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\topmargin by -\@IEEEtrantmpdimenB\relax + \settodepth{\@IEEEtrantmpdimenB}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\topmargin by -\@IEEEtrantmpdimenB\relax + \divide\topmargin by 2\relax + \advance\topmargin by \@IEEEtrantmpdimenA\relax +\else +\if\@IEEEextractedtoken b\relax + \topmargin\paperheight + \advance\topmargin by -\textheight + % \textheight includes \topskip, but we should not count topskip whitespace here, backout + \advance \topmargin by \topskip + \settodepth{\@IEEEtrantmpdimenB}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\topmargin by -\@IEEEtrantmpdimenB\relax + \advance\topmargin by -\@IEEEtrantmpdimenA\relax +\else + \if\@IEEEextractedtoken t\relax + \else + \@IEEEclspkgerror{Unknown mode type `\@IEEEextractedtokenmacro' in \string\IEEEsettopmargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `t'}% + {Valid modes for \string\IEEEsettopmargin\space are: t, b, c, a and q.}\relax + \fi + \topmargin\@IEEEtrantmpdimenA\relax + \settoheight{\@IEEEtrantmpdimenB}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\topmargin by \@IEEEtrantmpdimenB\relax +\fi\fi % if t, b, c +% convert desired top margin into actual \topmargin +% this is not done for the q or a modes because they are only adjustments +\advance \topmargin by -\topskip +\advance \topmargin by -1in +\advance \topmargin by -\headheight +\advance \topmargin by -\headsep +\fi\fi % if q, a +} + + + +% usage: \IEEEsetheadermargin[header sample][text sample]{mode: t, b, c, a}{margin/offset} +% Differentially adjusts \topmargin and \headsep (such that their sum is unchanged) +% based on the specified header margin. +% Takes into consideration the base 1in offset, \headheight, \topskip, and (by default) +% the actual height (or depth) of the \IEEEdefaultheadersampletext and +% \IEEEdefaultsampletext text. +% The available modes are: +% t = top margin (top of the header text to the top of the page) +% b = bottom margin (bottom of the header text to the top of the main text) +% c = vertically centered between the main text and the top of the page, +% with the given offset +% a = adjust the vertical position using the given offset +% For the offsets, positive values move the header downward. +% \headheight, \headsep, \topskip and \topmargin should be set properly before +% calling this function. +\def\IEEEsetheadermargin{\@ifnextchar [{\@IEEEsetheadermargin}{\@IEEEsetheadermargin[\IEEEdefaultheadersampletext]}} +\def\@IEEEsetheadermargin[#1]{\@ifnextchar [{\@@IEEEsetheadermargin[#1]}{\@@IEEEsetheadermargin[#1][\IEEEdefaultsampletext]}} +\def\@@IEEEsetheadermargin[#1][#2]#3#4{\@IEEEtrantmpdimenA #4\relax +\@IEEEextracttoken{#3}\relax +% check for mode errors +\ifx\@IEEEextractedtokenmacro\@empty + \@IEEEclspkgerror{Empty mode type in \string\IEEEsetheadermargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `t'}{Valid modes for \string\IEEEsetheadermargin\space are: t, b, c, and a.}\relax + \let\@IEEEextractedtoken=t\relax + \def\@IEEEextractedtokenmacro{t}\relax +\else + \ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: \string\IEEEsetheadermargin\space mode specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax + \fi +\fi +% handle each mode +\if\@IEEEextractedtoken a\relax + % No need to do anything here and can pass through the adjustment + % value as is. The end adjustment of \topmargin and \headsep will + % do all that is needed +\else +\if\@IEEEextractedtoken c\relax + % get the bottom margin + \@IEEEtrantmpdimenB\headsep\relax + \settodepth{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + \advance\@IEEEtrantmpdimenB by \topskip + \settoheight{\@IEEEtrantmpdimenC}{\begingroup #2\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the actual header bottom margin + % subtract from it the top header margin + \advance\@IEEEtrantmpdimenB -1in\relax % take into consideration the system 1in offset of the top margin + \advance\@IEEEtrantmpdimenB by -\topmargin + \advance\@IEEEtrantmpdimenB by -\headheight + \settoheight{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by \@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the difference between the bottom and top margins + % we need to adjust by half this amount to center the header + \divide\@IEEEtrantmpdimenB by 2\relax + % and add to offset + \advance\@IEEEtrantmpdimenA by \@IEEEtrantmpdimenB +\else +\if\@IEEEextractedtoken b\relax + \@IEEEtrantmpdimenB\headsep\relax + \settodepth{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + \advance\@IEEEtrantmpdimenB by \topskip + \settoheight{\@IEEEtrantmpdimenC}{\begingroup #2\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the actual header bottom margin + % get the difference between the actual and the desired + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenA + \@IEEEtrantmpdimenA\@IEEEtrantmpdimenB +\else + \if\@IEEEextractedtoken t\relax + \else + \@IEEEclspkgerror{Unknown mode type `\@IEEEextractedtokenmacro' in \string\IEEEsetheadermargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `t'}% + {Valid modes for \string\IEEEsetheadermargin\space are: t, b, c and a.}\relax + \fi + \@IEEEtrantmpdimenB 1in\relax % take into consideration the system 1in offset of the top margin + \advance\@IEEEtrantmpdimenB by \topmargin + \advance\@IEEEtrantmpdimenB by \headheight + \settoheight{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the actual header top margin + % get the difference between the desired and the actual + \advance\@IEEEtrantmpdimenA by -\@IEEEtrantmpdimenB +\fi\fi % if t, b, c +\fi % if a +% advance \topmargin by the needed amount and reduce \headsep by the same +% so as not to disturb the location of the main text +\advance\topmargin by \@IEEEtrantmpdimenA\relax +\advance\headsep by -\@IEEEtrantmpdimenA\relax +} + + + +% usage: \IEEEsetfootermargin[footer sample][text sample]{mode: t, b, c, a}{margin/offset} +% Adjusts \footskip based on the specified footer margin. +% Takes into consideration the base 1in offset, \paperheight, \headheight, +% \headsep, \textheight and (by default) the actual height (or depth) of the +% \IEEEdefaultfootersampletext and \IEEEdefaultsampletext text. +% The available modes are: +% t = top margin (top of the footer text to the bottom of the main text) +% b = bottom margin (bottom of the footer text to the bottom of page) +% c = vertically centered between the main text and the bottom of the page, +% with the given offset +% a = adjust the vertical position using the given offset +% For the offsets, positive values move the footer downward. +% \headheight, \headsep, \topskip, \topmargin, and \textheight should be set +% properly before calling this function. +\def\IEEEsetfootermargin{\@ifnextchar [{\@IEEEsetfootermargin}{\@IEEEsetfootermargin[\IEEEdefaultfootersampletext]}} +\def\@IEEEsetfootermargin[#1]{\@ifnextchar [{\@@IEEEsetfootermargin[#1]}{\@@IEEEsetfootermargin[#1][\IEEEdefaultsampletext]}} +\def\@@IEEEsetfootermargin[#1][#2]#3#4{\@IEEEtrantmpdimenA #4\relax +\@IEEEextracttoken{#3}\relax +% check for mode errors +\ifx\@IEEEextractedtokenmacro\@empty + \@IEEEclspkgerror{Empty mode type in \string\IEEEsetfootermargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `t'}{Valid modes for \string\IEEEsetfootermargin\space are: t, b, c, and a.}\relax + \let\@IEEEextractedtoken=t\relax + \def\@IEEEextractedtokenmacro{t}\relax +\else + \ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: \string\IEEEsetfootermargin\space mode specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax + \fi +\fi +% handle each mode +\if\@IEEEextractedtoken a\relax + % No need to do anything here and can pass through the adjustment + % value as is. The end adjustment of \footskip will do all that + % is needed +\else +\if\@IEEEextractedtoken c\relax + % calculate the bottom margin + \@IEEEtrantmpdimenB 1in\relax % system 1in offset + \advance\@IEEEtrantmpdimenB\topmargin\relax + \advance\@IEEEtrantmpdimenB\headheight\relax + \advance\@IEEEtrantmpdimenB\headsep\relax + \advance\@IEEEtrantmpdimenB\textheight\relax + \advance\@IEEEtrantmpdimenB\footskip\relax + \settodepth{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenC by \@IEEEtrantmpdimenB + \@IEEEtrantmpdimenB\paperheight + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the actual footer bottom margin + % now subtract off the footer top margin + \advance\@IEEEtrantmpdimenB -\footskip\relax + \settodepth{\@IEEEtrantmpdimenC}{\begingroup #2\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by \@IEEEtrantmpdimenC + \settoheight{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by \@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the difference between the bottom + % and top footer margins + % our adjustment must be half this value to center the footer + \divide\@IEEEtrantmpdimenB by 2\relax + % add to the offset + \advance\@IEEEtrantmpdimenA by \@IEEEtrantmpdimenB +\else +\if\@IEEEextractedtoken b\relax + % calculate the bottom margin + \@IEEEtrantmpdimenB 1in\relax % system 1in offset + \advance\@IEEEtrantmpdimenB\topmargin\relax + \advance\@IEEEtrantmpdimenB\headheight\relax + \advance\@IEEEtrantmpdimenB\headsep\relax + \advance\@IEEEtrantmpdimenB\textheight\relax + \advance\@IEEEtrantmpdimenB\footskip\relax + \settodepth{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenC by \@IEEEtrantmpdimenB + \@IEEEtrantmpdimenB\paperheight + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the actual footer bottom margin + % get the difference between the actual and the desired + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenA + \@IEEEtrantmpdimenA\@IEEEtrantmpdimenB +\else + \if\@IEEEextractedtoken t\relax + \else + \@IEEEclspkgerror{Unknown mode type `\@IEEEextractedtokenmacro' in \string\IEEEsetfootermargin\space (line \the\inputlineno).\MessageBreak + Defaulting to `t'}% + {Valid modes for \string\IEEEsetfootermargin\space are: t, b, c and a.}\relax + \fi + \@IEEEtrantmpdimenB\footskip\relax + \settodepth{\@IEEEtrantmpdimenC}{\begingroup #2\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + \settoheight{\@IEEEtrantmpdimenC}{\begingroup #1\relax\relax\relax\endgroup}\relax + \advance\@IEEEtrantmpdimenB by -\@IEEEtrantmpdimenC + % at this point \@IEEEtrantmpdimenB has the actual footer top margin + % get the difference between the desired and the actual + \advance\@IEEEtrantmpdimenA by -\@IEEEtrantmpdimenB +\fi\fi % if t, b, c +\fi % if a +% advance \footskip by the needed amount +\advance\footskip by \@IEEEtrantmpdimenA\relax +} + +% -- End V1.8a page setup commands -- + + + + + +% V1.6 +% LaTeX is a little to quick to use hyphenations +% So, we increase the penalty for their use and raise +% the badness level that triggers an underfull hbox +% warning. The author may still have to tweak things, +% but the appearance will be much better "right out +% of the box" than that under V1.5 and prior. +% TeX default is 50 +\hyphenpenalty=750 +\ifCLASSOPTIONcompsoc +\hyphenpenalty 500 +\fi +% If we didn't adjust the interword spacing, 2200 might be better. +% The TeX default is 1000 +\hbadness=1350 +% The IEEE does not use extra spacing after punctuation +\frenchspacing + +% V1.7 increase this a tad to discourage equation breaks +\binoppenalty=1000 % default 700 +\relpenalty=800 % default 500 + +% v1.8a increase these to discourage widows and orphans +\clubpenalty=1000 % default 150 +\widowpenalty=1000 % default 150 +\displaywidowpenalty=1000 % default 50 + + +% margin note stuff +\marginparsep 10pt +\marginparwidth 20pt +\marginparpush 25pt + + +% if things get too close, go ahead and let them touch +\lineskip 0pt +\normallineskip 0pt +\lineskiplimit 0pt +\normallineskiplimit 0pt + +% The distance from the lower edge of the text body to the +% footline +\footskip 0.4in + +% normally zero, should be relative to font height. +% put in a little rubber to help stop some bad breaks (underfull vboxes) +\parskip 0ex plus 0.2ex minus 0.1ex + +\parindent 1.0em +\ifCLASSOPTIONcompsoc + \parindent 1.5em +\fi + +\headheight 12pt +\headsep 18pt +% use the normal font baselineskip +% so that \topskip is unaffected by changes in \baselinestretch +\topskip=\@IEEEnormalsizeunitybaselineskip + + +% V1.8 \maxdepth defaults to 4pt, but should be font size dependent +\maxdepth=0.5\@IEEEnormalsizeunitybaselineskip +\textheight 58pc % 9.63in, 696pt + +% set the default top margin to 58pt +% which results in a \topmargin of -49.59pt for 10pt documents +\IEEEsettopmargin{t}{58pt} +% tweak textheight to a perfect integer number of lines/column. +% standard is: 9pt/63 lpc; 10pt/58 lpc; 11pt/52 lpc; 12pt/50 lpc +\IEEEquantizetextheight{c} +% tweak top margin so that the error is shared equally at the top and bottom +\IEEEsettopmargin{q}{0sp} + + +\columnsep 1pc +\textwidth 43pc % 2 x 21pc + 1pc = 43pc + +% set the default side margins to center the text +\IEEEsetsidemargin{c}{0pt} + + +% adjust margins for default conference mode +\ifCLASSOPTIONconference + \textheight 9.25in % The standard for conferences (668.4975pt) + \IEEEsettopmargin{t}{0.75in} + % tweak textheight to a perfect integer number of lines/page. + % standard is: 9pt/61 lpc; 10pt/56 lpc; 11pt/50 lpc; 12pt/48 lpc + \IEEEquantizetextheight{c} + % tweak top margin so that the error is shared equally at the top and bottom + \IEEEsettopmargin{q}{0sp} +\fi + + +% compsoc text sizes, margins and spacings +\ifCLASSOPTIONcompsoc + \columnsep 12bp + % CS specs for \textwdith are 6.875in + % \textwidth 6.875in + % however, measurements from proofs show they are using 3.5in columns + \textwidth 7in + \advance\textwidth by \columnsep + % set the side margins to center the text + \IEEEsetsidemargin{c}{0pt} + % top/bottom margins to center + % could just set \textheight to 9.75in for all the different paper sizes + % and then quantize, but we'll do it the long way here to allow for easy + % future per-paper size adjustments + \IEEEsettextheight{0.625in}{0.625in}% 11in - 2 * 0.625in = 9.75in is the standard text height for compsoc journals + \IEEEsettopmargin{t}{0.625in} + \if@IEEEusingcspaper + \IEEEsettextheight{0.5in}{0.5in}% 10.75in - 2 * 0.5in = 9.75in + \IEEEsettopmargin{t}{0.5in} + \fi + \if@IEEEusingAfourpaper + \IEEEsettextheight{24.675mm}{24.675mm}% 297mm - 2 * 24.675mm = 247.650mm (9.75in) + \IEEEsettopmargin{t}{24.675mm} + \fi + % tweak textheight to a perfect integer number of lines/page. + % standard is: 9pt/65 lpc; 10pt/61 lpc; 11pt/53 lpc; 12pt/49 lpc + \IEEEquantizetextheight{c} + % tweak top margin so that the error is shared equally at the top and bottom + \IEEEsettopmargin{q}{0sp} + +% compsoc conference + \ifCLASSOPTIONconference + % compsoc conference use a larger value for columnsep + \columnsep 0.25in + \IEEEsettextwidth{0.75in}{0.75in} + % set the side margins to center the text (0.75in for letterpaper) + \IEEEsetsidemargin{c}{0pt} + % compsoc conferences want 1in top and bottom margin + \IEEEsettextheight{1in}{1in} + \IEEEsettopmargin{t}{1in} + % tweak textheight to a perfect integer number of lines/page. + % standard is: 9pt/58 lpc; 10pt/53 lpc; 11pt/48 lpc; 12pt/46 lpc + \IEEEquantizetextheight{c} + % tweak top margin so that the error is shared equally at the top and bottom + \IEEEsettopmargin{q}{0sp} + \fi +\fi + + + +% draft mode settings override that of all other modes +% provides a nice 1in margin all around the paper and extra +% space between the lines for editor's comments +\ifCLASSOPTIONdraftcls + % we want 1in side margins regardless of paper type + \IEEEsettextwidth{1in}{1in} + \IEEEsetsidemargin{c}{0pt} + % want 1in top and bottom margins + \IEEEsettextheight{1in}{1in} + \IEEEsettopmargin{t}{1in} + % digitize textheight to be an integer number of lines. + % this may cause the top and bottom margins to be off a tad + \IEEEquantizetextheight{c} + % tweak top margin so that the error is shared equally at the top and bottom + \IEEEsettopmargin{q}{0sp} +\fi + + + +% process CLASSINPUT inner/outer margin +% if inner margin defined, but outer margin not, set outer to inner. +\ifx\CLASSINPUTinnersidemargin\@IEEEundefined +\else + \ifx\CLASSINPUToutersidemargin\@IEEEundefined + \edef\CLASSINPUToutersidemargin{\CLASSINPUTinnersidemargin} + \fi +\fi + +\ifx\CLASSINPUToutersidemargin\@IEEEundefined +\else + % if outer margin defined, but inner margin not, set inner to outer. + \ifx\CLASSINPUTinnersidemargin\@IEEEundefined + \edef\CLASSINPUTinnersidemargin{\CLASSINPUToutersidemargin} + \fi + \IEEEsettextwidth{\CLASSINPUTinnersidemargin}{\CLASSINPUToutersidemargin} + \IEEEsetsidemargin{i}{\CLASSINPUTinnersidemargin} + \typeout{** ATTENTION: Overriding inner side margin to \CLASSINPUTinnersidemargin\space and + outer side margin to \CLASSINPUToutersidemargin\space via \string\CLASSINPUT.} +\fi + + + +% process CLASSINPUT top/bottom text margin +% if toptext margin defined, but bottomtext margin not, set bottomtext to toptext margin +\ifx\CLASSINPUTtoptextmargin\@IEEEundefined +\else + \ifx\CLASSINPUTbottomtextmargin\@IEEEundefined + \edef\CLASSINPUTbottomtextmargin{\CLASSINPUTtoptextmargin} + \fi +\fi + +\ifx\CLASSINPUTbottomtextmargin\@IEEEundefined +\else + % if bottomtext margin defined, but toptext margin not, set toptext to bottomtext margin + \ifx\CLASSINPUTtoptextmargin\@IEEEundefined + \edef\CLASSINPUTtoptextmargin{\CLASSINPUTbottomtextmargin} + \fi + \IEEEsettextheight{\CLASSINPUTtoptextmargin}{\CLASSINPUTbottomtextmargin} + \IEEEsettopmargin{t}{\CLASSINPUTtoptextmargin} + \typeout{** ATTENTION: Overriding top text margin to \CLASSINPUTtoptextmargin\space and + bottom text margin to \CLASSINPUTbottomtextmargin\space via \string\CLASSINPUT.} +\fi + + + +% default to center header and footer text in the margins +\IEEEsetheadermargin{c}{0pt} +\IEEEsetfootermargin{c}{0pt} + +% adjust header and footer positions for compsoc journals +\ifCLASSOPTIONcompsoc + \ifCLASSOPTIONjournal + \IEEEsetheadermargin{b}{\@IEEEnormalsizeunitybaselineskip} + \IEEEsetfootermargin{t}{\@IEEEnormalsizeunitybaselineskip} + \fi +\fi + + +% V1.8a display lines per column info message on user's console +\def\IEEEdisplayinfolinespercolumn{\@IEEEtrantmpdimenA=\textheight +% topskip represents only one line even if > baselineskip +\advance\@IEEEtrantmpdimenA by -1\topskip +\@IEEEtrantmpcountA=\@IEEEtrantmpdimenA +\@IEEEtrantmpcountB=\@IEEEtrantmpdimenA +\divide\@IEEEtrantmpcountB by \baselineskip +% need to add one line to include topskip (first) line +\advance\@IEEEtrantmpcountB by 1 +% save lines per column value as text +\edef\@IEEEnumlinespercolumninfotxt{\the\@IEEEtrantmpcountB} +% backout topskip advance to allow direct \@IEEEtrantmpcountA comparison +\advance\@IEEEtrantmpcountB by -1 +% restore value as text height (without topskip) rather than just as number of lines +\multiply\@IEEEtrantmpcountB by \baselineskip +% is the column height an integer number of lines per column? +\ifnum\@IEEEtrantmpcountA=\@IEEEtrantmpcountB +\edef\@IEEEnumlinespercolumnexactinfotxt{exact} +\else +\@IEEEtrantmpdimenA\@IEEEtrantmpcountA sp\relax +\advance\@IEEEtrantmpdimenA by -\@IEEEtrantmpcountB sp\relax +\edef\@IEEEnumlinespercolumnexactinfotxt{approximate, difference = \the\@IEEEtrantmpdimenA} +\fi +\typeout{-- Lines per column: \@IEEEnumlinespercolumninfotxt\space (\@IEEEnumlinespercolumnexactinfotxt).}} +% delay execution till start of document to allow for user changes +\AtBeginDocument{\IEEEdisplayinfolinespercolumn} + + + +% LIST SPACING CONTROLS + +% Controls the amount of EXTRA spacing +% above and below \trivlist +% Both \list and IED lists override this. +% However, \trivlist will use this as will most +% things built from \trivlist like the \center +% environment. +\topsep 0.5\baselineskip + +% Controls the additional spacing around lists preceded +% or followed by blank lines. the IEEE does not increase +% spacing before or after paragraphs so it is set to zero. +% \z@ is the same as zero, but faster. +\partopsep \z@ + +% Controls the spacing between paragraphs in lists. +% The IEEE does not increase spacing before or after paragraphs +% so this is also zero. +% With IEEEtran.cls, global changes to +% this value DO affect lists (but not IED lists). +\parsep \z@ + +% Controls the extra spacing between list items. +% The IEEE does not put extra spacing between items. +% With IEEEtran.cls, global changes to this value DO affect +% lists (but not IED lists). +\itemsep \z@ + +% \itemindent is the amount to indent the FIRST line of a list +% item. It is auto set to zero within the \list environment. To alter +% it, you have to do so when you call the \list. +% However, the IEEE uses this for the theorem environment +% There is an alternative value for this near \leftmargini below +\itemindent -1em + +% \leftmargin, the spacing from the left margin of the main text to +% the left of the main body of a list item is set by \list. +% Hence this statement does nothing for lists. +% But, quote and verse do use it for indention. +\leftmargin 2em + +% we retain this stuff from the older IEEEtran.cls so that \list +% will work the same way as before. However, itemize, enumerate and +% description (IED) could care less about what these are as they +% all are overridden. +\leftmargini 2em +%\itemindent 2em % Alternative values: sometimes used. +%\leftmargini 0em +\leftmarginii 1em +\leftmarginiii 1.5em +\leftmarginiv 1.5em +\leftmarginv 1.0em +\leftmarginvi 1.0em +\labelsep 0.5em +\labelwidth \z@ + + +% The old IEEEtran.cls behavior of \list is retained. +% However, the new V1.3 IED list environments override all the +% @list stuff (\@listX is called within \list for the +% appropriate level just before the user's list_decl is called). +% \topsep is now 2pt as the IEEE puts a little extra space around +% lists - used by those non-IED macros that depend on \list. +% Note that \parsep and \itemsep are not redefined as in +% the sizexx.clo \@listX (which article.cls uses) so global changes +% of these values DO affect \list +% +\def\@listi{\leftmargin\leftmargini \topsep 2pt plus 1pt minus 1pt} +\let\@listI\@listi +\def\@listii{\leftmargin\leftmarginii\labelwidth\leftmarginii% + \advance\labelwidth-\labelsep \topsep 2pt} +\def\@listiii{\leftmargin\leftmarginiii\labelwidth\leftmarginiii% + \advance\labelwidth-\labelsep \topsep 2pt} +\def\@listiv{\leftmargin\leftmarginiv\labelwidth\leftmarginiv% + \advance\labelwidth-\labelsep \topsep 2pt} +\def\@listv{\leftmargin\leftmarginv\labelwidth\leftmarginv% + \advance\labelwidth-\labelsep \topsep 2pt} +\def\@listvi{\leftmargin\leftmarginvi\labelwidth\leftmarginvi% + \advance\labelwidth-\labelsep \topsep 2pt} + + +% The IEEE uses 5) not 5. +\def\labelenumi{\theenumi)} \def\theenumi{\arabic{enumi}} + +% The IEEE uses a) not (a) +\def\labelenumii{\theenumii)} \def\theenumii{\alph{enumii}} + +% The IEEE uses iii) not iii. +\def\labelenumiii{\theenumiii)} \def\theenumiii{\roman{enumiii}} + +% The IEEE uses A) not A. +\def\labelenumiv{\theenumiv)} \def\theenumiv{\Alph{enumiv}} + +% exactly the same as in article.cls +\def\p@enumii{\theenumi} +\def\p@enumiii{\theenumi(\theenumii)} +\def\p@enumiv{\p@enumiii\theenumiii} + +% itemized list label styles +\def\labelitemi{$\scriptstyle\bullet$} +\def\labelitemii{\textbf{--}} +\def\labelitemiii{$\ast$} +\def\labelitemiv{$\cdot$} + + + +% **** V1.3 ENHANCEMENTS **** +% Itemize, Enumerate and Description (IED) List Controls +% *************************** +% +% +% The IEEE seems to use at least two different values by +% which ITEMIZED list labels are indented to the right +% For The Journal of Lightwave Technology (JLT) and The Journal +% on Selected Areas in Communications (JSAC), they tend to use +% an indention equal to \parindent. For Transactions on Communications +% they tend to indent ITEMIZED lists a little more--- 1.3\parindent. +% We'll provide both values here for you so that you can choose +% which one you like in your document using a command such as: +% setlength{\IEEEilabelindent}{\IEEEilabelindentB} +\newdimen\IEEEilabelindentA +\IEEEilabelindentA \parindent + +\newdimen\IEEEilabelindentB +\IEEEilabelindentB 1.3\parindent +% However, we'll default to using \parindent +% which makes more sense to me +\newdimen\IEEEilabelindent +\IEEEilabelindent \IEEEilabelindentA + + +% This controls the default amount the enumerated list labels +% are indented to the right. +% Normally, this is the same as the paragraph indention +\newdimen\IEEEelabelindent +\IEEEelabelindent \parindent + +% This controls the default amount the description list labels +% are indented to the right. +% Normally, this is the same as the paragraph indention +\newdimen\IEEEdlabelindent +\IEEEdlabelindent \parindent + +% This is the value actually used within the IED lists. +% The IED environments automatically set its value to +% one of the three values above, so global changes do +% not have any effect +\newdimen\IEEElabelindent +\IEEElabelindent \parindent + +% The actual amount labels will be indented is +% \IEEElabelindent multiplied by the factor below +% corresponding to the level of nesting depth +% This provides a means by which the user can +% alter the effective \IEEElabelindent for deeper +% levels +% There may not be such a thing as correct "standard IEEE" +% values. What the IEEE actually does may depend on the specific +% circumstances. +% The first list level almost always has full indention. +% The second levels I've seen have only 75% of the normal indentation +% Three level or greater nestings are very rare. I am guessing +% that they don't use any indentation. +\def\IEEElabelindentfactori{1.0} % almost always one +\def\IEEElabelindentfactorii{0.75} % 0.0 or 1.0 may be used in some cases +\def\IEEElabelindentfactoriii{0.0} % 0.75? 0.5? 0.0? +\def\IEEElabelindentfactoriv{0.0} +\def\IEEElabelindentfactorv{0.0} +\def\IEEElabelindentfactorvi{0.0} + +% value actually used within IED lists, it is auto +% set to one of the 6 values above +% global changes here have no effect +\def\IEEElabelindentfactor{1.0} + +% This controls the default spacing between the end of the IED +% list labels and the list text, when normal text is used for +% the labels. +% compsoc uses a larger value here, but we'll set that later +% in the class so that this code block area can be extracted +% as-is for IEEEtrantools.sty +\newdimen\IEEEiednormlabelsep +\IEEEiednormlabelsep 0.6em + +% This controls the default spacing between the end of the IED +% list labels and the list text, when math symbols are used for +% the labels (nomenclature lists). The IEEE usually increases the +% spacing in these cases +\newdimen\IEEEiedmathlabelsep +\IEEEiedmathlabelsep 1.2em + +% This controls the extra vertical separation put above and +% below each IED list. the IEEE usually puts a little extra spacing +% around each list. However, this spacing is barely noticeable. +% compsoc uses a larger value here, but we'll set that later +% in the class so that this code block area can be extracted +% as-is for IEEEtrantools.sty +\newskip\IEEEiedtopsep +\IEEEiedtopsep 2pt plus 1pt minus 1pt + + +% This command is executed within each IED list environment +% at the beginning of the list. You can use this to set the +% parameters for some/all your IED list(s) without disturbing +% global parameters that affect things other than lists. +% i.e., renewcommand{\IEEEiedlistdecl}{\setlength{\labelsep}{5em}} +% will alter the \labelsep for the next list(s) until +% \IEEEiedlistdecl is redefined. +\def\IEEEiedlistdecl{\relax} + +% This command provides an easy way to set \leftmargin based +% on the \labelwidth, \labelsep and the argument \IEEElabelindent +% Usage: \IEEEcalcleftmargin{width-to-indent-the-label} +% output is in the \leftmargin variable, i.e., effectively: +% \leftmargin = argument + \labelwidth + \labelsep +% Note controlled spacing here, shield end of lines with % +\def\IEEEcalcleftmargin#1{\setlength{\leftmargin}{#1}% +\addtolength{\leftmargin}{\labelwidth}% +\addtolength{\leftmargin}{\labelsep}} + +% This command provides an easy way to set \labelwidth to the +% width of the given text. It is the same as +% \settowidth{\labelwidth}{label-text} +% and useful as a shorter alternative. +% Typically used to set \labelwidth to be the width +% of the longest label in the list +\def\IEEEsetlabelwidth#1{\settowidth{\labelwidth}{#1}} + +% When this command is executed, IED lists will use the +% IEEEiedmathlabelsep label separation rather than the normal +% spacing. To have an effect, this command must be executed via +% the \IEEEiedlistdecl or within the option of the IED list +% environments. +\def\IEEEusemathlabelsep{\setlength{\labelsep}{\IEEEiedmathlabelsep}} + +% A flag which controls whether the IED lists automatically +% calculate \leftmargin from \IEEElabelindent, \labelwidth and \labelsep +% Useful if you want to specify your own \leftmargin +% This flag must be set (\IEEEnocalcleftmargintrue or \IEEEnocalcleftmarginfalse) +% via the \IEEEiedlistdecl or within the option of the IED list +% environments to have an effect. +\newif\ifIEEEnocalcleftmargin +\IEEEnocalcleftmarginfalse + +% A flag which controls whether \IEEElabelindent is multiplied by +% the \IEEElabelindentfactor for each list level. +% This flag must be set via the \IEEEiedlistdecl or within the option +% of the IED list environments to have an effect. +\newif\ifIEEEnolabelindentfactor +\IEEEnolabelindentfactorfalse + + +% internal variable to indicate type of IED label +% justification +% 0 - left; 1 - center; 2 - right +\def\@IEEEiedjustify{0} + + +% commands to allow the user to control IED +% label justifications. Use these commands within +% the IED environment option or in the \IEEEiedlistdecl +% Note that changing the normal list justifications +% is nonstandard and the IEEE may not like it if you do so! +% I include these commands as they may be helpful to +% those who are using these enhanced list controls for +% other non-IEEE related LaTeX work. +% itemize and enumerate automatically default to right +% justification, description defaults to left. +\def\IEEEiedlabeljustifyl{\def\@IEEEiedjustify{0}}%left +\def\IEEEiedlabeljustifyc{\def\@IEEEiedjustify{1}}%center +\def\IEEEiedlabeljustifyr{\def\@IEEEiedjustify{2}}%right + + + + +% commands to save to and restore from the list parameter copies +% this allows us to set all the list parameters within +% the list_decl and prevent \list (and its \@list) +% from overriding any of our parameters +% V1.6 use \edefs instead of dimen's to conserve dimen registers +% Note controlled spacing here, shield end of lines with % +\def\@IEEEsavelistparams{\edef\@IEEEiedtopsep{\the\topsep}% +\edef\@IEEEiedlabelwidth{\the\labelwidth}% +\edef\@IEEEiedlabelsep{\the\labelsep}% +\edef\@IEEEiedleftmargin{\the\leftmargin}% +\edef\@IEEEiedpartopsep{\the\partopsep}% +\edef\@IEEEiedparsep{\the\parsep}% +\edef\@IEEEieditemsep{\the\itemsep}% +\edef\@IEEEiedrightmargin{\the\rightmargin}% +\edef\@IEEEiedlistparindent{\the\listparindent}% +\edef\@IEEEieditemindent{\the\itemindent}} + +% Note controlled spacing here +\def\@IEEErestorelistparams{\topsep\@IEEEiedtopsep\relax% +\labelwidth\@IEEEiedlabelwidth\relax% +\labelsep\@IEEEiedlabelsep\relax% +\leftmargin\@IEEEiedleftmargin\relax% +\partopsep\@IEEEiedpartopsep\relax% +\parsep\@IEEEiedparsep\relax% +\itemsep\@IEEEieditemsep\relax% +\rightmargin\@IEEEiedrightmargin\relax% +\listparindent\@IEEEiedlistparindent\relax% +\itemindent\@IEEEieditemindent\relax} + + +% v1.6b provide original LaTeX IED list environments +% note that latex.ltx defines \itemize and \enumerate, but not \description +% which must be created by the base classes +% save original LaTeX itemize and enumerate +\let\LaTeXitemize\itemize +\let\endLaTeXitemize\enditemize +\let\LaTeXenumerate\enumerate +\let\endLaTeXenumerate\endenumerate + +% provide original LaTeX description environment from article.cls +\newenvironment{LaTeXdescription} + {\list{}{\labelwidth\z@ \itemindent-\leftmargin + \let\makelabel\descriptionlabel}} + {\endlist} +\newcommand*\descriptionlabel[1]{\hspace\labelsep + \normalfont\bfseries #1} + + +% override LaTeX's default IED lists +\def\itemize{\@IEEEitemize} +\def\enditemize{\@endIEEEitemize} +\def\enumerate{\@IEEEenumerate} +\def\endenumerate{\@endIEEEenumerate} +\def\description{\@IEEEdescription} +\def\enddescription{\@endIEEEdescription} + +% provide the user with aliases - may help those using packages that +% override itemize, enumerate, or description +\def\IEEEitemize{\@IEEEitemize} +\def\endIEEEitemize{\@endIEEEitemize} +\def\IEEEenumerate{\@IEEEenumerate} +\def\endIEEEenumerate{\@endIEEEenumerate} +\def\IEEEdescription{\@IEEEdescription} +\def\endIEEEdescription{\@endIEEEdescription} + + +% V1.6 we want to keep the IEEEtran IED list definitions as our own internal +% commands so they are protected against redefinition +\def\@IEEEitemize{\@ifnextchar[{\@@IEEEitemize}{\@@IEEEitemize[\relax]}} +\def\@IEEEenumerate{\@ifnextchar[{\@@IEEEenumerate}{\@@IEEEenumerate[\relax]}} +\def\@IEEEdescription{\@ifnextchar[{\@@IEEEdescription}{\@@IEEEdescription[\relax]}} +\def\@endIEEEitemize{\endlist} +\def\@endIEEEenumerate{\endlist} +\def\@endIEEEdescription{\endlist} + + +% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS +% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS +% IEEEtran itemized list MDS 1/2001 +% Note controlled spacing here, shield end of lines with % +\def\@@IEEEitemize[#1]{% + \ifnum\@itemdepth>3\relax\@toodeep\else% + \ifnum\@listdepth>5\relax\@toodeep\else% + \advance\@itemdepth\@ne% + \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% + % get the IEEElabelindentfactor for this level + \advance\@listdepth\@ne% we need to know what the level WILL be + \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}% + \advance\@listdepth-\@ne% undo our increment + \def\@IEEEiedjustify{2}% right justified labels are default + % set other defaults + \IEEEnocalcleftmarginfalse% + \IEEEnolabelindentfactorfalse% + \topsep\IEEEiedtopsep% + \IEEElabelindent\IEEEilabelindent% + \labelsep\IEEEiednormlabelsep% + \partopsep 0ex% + \parsep 0ex% + \itemsep 0ex% + \rightmargin 0em% + \listparindent 0em% + \itemindent 0em% + % calculate the label width + % the user can override this later if + % they specified a \labelwidth + \settowidth{\labelwidth}{\csname labelitem\romannumeral\the\@itemdepth\endcsname}% + \@IEEEsavelistparams% save our list parameters + \list{\csname\@itemitem\endcsname}{% + \@IEEErestorelistparams% override any list{} changes + % to our globals + \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel + \IEEEiedlistdecl% let user alter parameters + #1\relax% + % If the user has requested not to use the + % IEEElabelindent factor, don't revise \IEEElabelindent + \ifIEEEnolabelindentfactor\relax% + \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent% + \fi% + % Unless the user has requested otherwise, + % calculate our left margin based + % on \IEEElabelindent, \labelwidth and + % \labelsep + \ifIEEEnocalcleftmargin\relax% + \else\IEEEcalcleftmargin{\IEEElabelindent}% + \fi}\fi\fi}% + + +% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS +% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS +% IEEEtran enumerate list MDS 1/2001 +% Note controlled spacing here, shield end of lines with % +\def\@@IEEEenumerate[#1]{% + \ifnum\@enumdepth>3\relax\@toodeep\else% + \ifnum\@listdepth>5\relax\@toodeep\else% + \advance\@enumdepth\@ne% + \edef\@enumctr{enum\romannumeral\the\@enumdepth}% + % get the IEEElabelindentfactor for this level + \advance\@listdepth\@ne% we need to know what the level WILL be + \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}% + \advance\@listdepth-\@ne% undo our increment + \def\@IEEEiedjustify{2}% right justified labels are default + % set other defaults + \IEEEnocalcleftmarginfalse% + \IEEEnolabelindentfactorfalse% + \topsep\IEEEiedtopsep% + \IEEElabelindent\IEEEelabelindent% + \labelsep\IEEEiednormlabelsep% + \partopsep 0ex% + \parsep 0ex% + \itemsep 0ex% + \rightmargin 0em% + \listparindent 0em% + \itemindent 0em% + % calculate the label width + % We'll set it to the width suitable for all labels using + % normalfont 1) to 9) + % The user can override this later + \settowidth{\labelwidth}{9)}% + \@IEEEsavelistparams% save our list parameters + \list{\csname label\@enumctr\endcsname}{\usecounter{\@enumctr}% + \@IEEErestorelistparams% override any list{} changes + % to our globals + \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel + \IEEEiedlistdecl% let user alter parameters + #1\relax% + % If the user has requested not to use the + % IEEElabelindent factor, don't revise \IEEElabelindent + \ifIEEEnolabelindentfactor\relax% + \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent% + \fi% + % Unless the user has requested otherwise, + % calculate our left margin based + % on \IEEElabelindent, \labelwidth and + % \labelsep + \ifIEEEnocalcleftmargin\relax% + \else\IEEEcalcleftmargin{\IEEElabelindent}% + \fi}\fi\fi}% + + +% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS +% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS +% IEEEtran description list MDS 1/2001 +% Note controlled spacing here, shield end of lines with % +\def\@@IEEEdescription[#1]{% + \ifnum\@listdepth>5\relax\@toodeep\else% + % get the IEEElabelindentfactor for this level + \advance\@listdepth\@ne% we need to know what the level WILL be + \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}% + \advance\@listdepth-\@ne% undo our increment + \def\@IEEEiedjustify{0}% left justified labels are default + % set other defaults + \IEEEnocalcleftmarginfalse% + \IEEEnolabelindentfactorfalse% + \topsep\IEEEiedtopsep% + \IEEElabelindent\IEEEdlabelindent% + % assume normal labelsep + \labelsep\IEEEiednormlabelsep% + \partopsep 0ex% + \parsep 0ex% + \itemsep 0ex% + \rightmargin 0em% + \listparindent 0em% + \itemindent 0em% + % Bogus label width in case the user forgets + % to set it. + % TIP: If you want to see what a variable's width is you + % can use the TeX command \showthe\width-variable to + % display it on the screen during compilation + % (This might be helpful to know when you need to find out + % which label is the widest) + \settowidth{\labelwidth}{Hello}% + \@IEEEsavelistparams% save our list parameters + \list{}{\@IEEErestorelistparams% override any list{} changes + % to our globals + \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel + \IEEEiedlistdecl% let user alter parameters + #1\relax% + % If the user has requested not to use the + % labelindent factor, don't revise \IEEElabelindent + \ifIEEEnolabelindentfactor\relax% + \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent% + \fi% + % Unless the user has requested otherwise, + % calculate our left margin based + % on \IEEElabelindent, \labelwidth and + % \labelsep + \ifIEEEnocalcleftmargin\relax% + \else\IEEEcalcleftmargin{\IEEElabelindent}\relax% + \fi}\fi} + +% v1.6b we use one makelabel that does justification as needed. +\def\@IEEEiedmakelabel#1{\relax\if\@IEEEiedjustify 0\relax +\makebox[\labelwidth][l]{\normalfont #1}\else +\if\@IEEEiedjustify 1\relax +\makebox[\labelwidth][c]{\normalfont #1}\else +\makebox[\labelwidth][r]{\normalfont #1}\fi\fi} + + +% compsoc uses a larger value for the normal labelsep +% and also extra spacing above and below each list +\ifCLASSOPTIONcompsoc + \IEEEiednormlabelsep 1.2em + \IEEEiedtopsep 6pt plus 3pt minus 3pt +\fi + + +% VERSE and QUOTE +% V1.7 define environments with newenvironment +\newenvironment{verse}{\let\\=\@centercr + \list{}{\itemsep\z@ \itemindent -1.5em \listparindent \itemindent + \rightmargin\leftmargin\advance\leftmargin 1.5em}\item\relax} + {\endlist} +\newenvironment{quotation}{\list{}{\listparindent 1.5em \itemindent\listparindent + \rightmargin\leftmargin \parsep 0pt plus 1pt}\item\relax} + {\endlist} +\newenvironment{quote}{\list{}{\rightmargin\leftmargin}\item\relax} + {\endlist} + + +% \titlepage +% provided only for backward compatibility. \maketitle is the correct +% way to create the title page. +\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \else \newpage \fi \thispagestyle{empty}\c@page\z@} +\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi} + +% standard values from article.cls +\arraycolsep 5pt +\arrayrulewidth .4pt +\doublerulesep 2pt + +\tabcolsep 6pt +\tabbingsep 0.5em + + +%% FOOTNOTES +% +%\skip\footins 10pt plus 4pt minus 2pt +% V1.6 respond to changes in font size +% space added above the footnotes (if present) +\skip\footins 0.9\baselineskip plus 0.4\baselineskip minus 0.2\baselineskip + +% V1.6, we need to make \footnotesep responsive to changes +% in \baselineskip or strange spacings will result when in +% draft mode. Here is a little LaTeX secret - \footnotesep +% determines the height of an invisible strut that is placed +% *above* the baseline of footnotes after the first. Since +% LaTeX considers the space for characters to be 0.7\baselineskip +% above the baseline and 0.3\baselineskip below it, we need to +% use 0.7\baselineskip as a \footnotesep to maintain equal spacing +% between all the lines of the footnotes. The IEEE often uses a tad +% more, so use 0.8\baselineskip. This slightly larger value also helps +% the text to clear the footnote marks. Note that \thanks in IEEEtran +% uses its own value of \footnotesep which is set in \maketitle. +{\footnotesize +\global\footnotesep 0.8\baselineskip} + + +\skip\@mpfootins = \skip\footins +\fboxsep = 3pt +\fboxrule = .4pt +% V1.6 use 1em, then use LaTeX2e's \@makefnmark +% Note that the IEEE normally *left* aligns the footnote marks, so we don't need +% box resizing tricks here. +\long\def\@makefntext#1{\parindent 1em\indent\hbox{\@makefnmark}#1}% V1.6 use 1em +% V1.7 compsoc does not use superscipts for footnote marks +\ifCLASSOPTIONcompsoc +\def\@IEEEcompsocmakefnmark{\hbox{\normalfont\@thefnmark.\ }} +\long\def\@makefntext#1{\parindent 1em\indent\hbox{\@IEEEcompsocmakefnmark}#1} +\fi + +% The IEEE does not use footnote rules +\def\footnoterule{} + +% V1.7 for compsoc, the IEEE uses a footnote rule only for \thanks. We devise a "one-shot" +% system to implement this. +\newif\if@IEEEenableoneshotfootnoterule +\@IEEEenableoneshotfootnoterulefalse +\ifCLASSOPTIONcompsoc +\def\footnoterule{\relax\if@IEEEenableoneshotfootnoterule +\kern-5pt +\hbox to \columnwidth{\hfill\vrule width 0.5\columnwidth height 0.4pt\hfill} +\kern4.6pt +\global\@IEEEenableoneshotfootnoterulefalse +\else +\relax +\fi} +\fi + +% V1.6 do not allow LaTeX to break a footnote across multiple pages +\interfootnotelinepenalty=10000 + +% V1.6 discourage breaks within equations +% Note that amsmath normally sets this to 10000, +% but LaTeX2e normally uses 100. +\interdisplaylinepenalty=2500 + +% default allows section depth up to /paragraph +\setcounter{secnumdepth}{4} + +% technotes do not allow /paragraph +\ifCLASSOPTIONtechnote + \setcounter{secnumdepth}{3} +\fi +% neither do compsoc conferences +\@IEEEcompsocconfonly{\setcounter{secnumdepth}{3}} + + +\newcounter{section} +\newcounter{subsection}[section] +\newcounter{subsubsection}[subsection] +\newcounter{paragraph}[subsubsection] + +% used only by IEEEtran's IEEEeqnarray as other packages may +% have their own, different, implementations +\newcounter{IEEEsubequation}[equation] + +% as shown when called by user from \ref, \label and in table of contents +\def\theequation{\arabic{equation}} % 1 +\def\theIEEEsubequation{\theequation\alph{IEEEsubequation}} % 1a (used only by IEEEtran's IEEEeqnarray) +\ifCLASSOPTIONcompsoc +% compsoc is all arabic +\def\thesection{\arabic{section}} +\def\thesubsection{\thesection.\arabic{subsection}} +\def\thesubsubsection{\thesubsection.\arabic{subsubsection}} +\def\theparagraph{\thesubsubsection.\arabic{paragraph}} +\else +\def\thesection{\Roman{section}} % I +% V1.7, \mbox prevents breaks around - +\def\thesubsection{\mbox{\thesection-\Alph{subsection}}} % I-A +% V1.7 use I-A1 format used by the IEEE rather than I-A.1 +\def\thesubsubsection{\thesubsection\arabic{subsubsection}} % I-A1 +\def\theparagraph{\thesubsubsection\alph{paragraph}} % I-A1a +\fi + +% From Heiko Oberdiek. Because of the \mbox in \thesubsection, we need to +% tell hyperref to disable the \mbox command when making PDF bookmarks. +% This done already with hyperref.sty version 6.74o and later, but +% it will not hurt to do it here again for users of older versions. +\@ifundefined{pdfstringdefPreHook}{\let\pdfstringdefPreHook\@empty}{}% +\g@addto@macro\pdfstringdefPreHook{\let\mbox\relax} + + +% Main text forms (how shown in main text headings) +% V1.6, using \thesection in \thesectiondis allows changes +% in the former to automatically appear in the latter +\ifCLASSOPTIONcompsoc + \ifCLASSOPTIONconference% compsoc conference + \def\thesectiondis{\thesection.} + \def\thesubsectiondis{\thesectiondis\arabic{subsection}.} + \def\thesubsubsectiondis{\thesubsectiondis\arabic{subsubsection}.} + \def\theparagraphdis{\thesubsubsectiondis\arabic{paragraph}.} + \else% compsoc not conferencs + \def\thesectiondis{\thesection} + \def\thesubsectiondis{\thesectiondis.\arabic{subsection}} + \def\thesubsubsectiondis{\thesubsectiondis.\arabic{subsubsection}} + \def\theparagraphdis{\thesubsubsectiondis.\arabic{paragraph}} + \fi +\else% not compsoc + \def\thesectiondis{\thesection.} % I. + \def\thesubsectiondis{\Alph{subsection}.} % B. + \def\thesubsubsectiondis{\arabic{subsubsection})} % 3) + \def\theparagraphdis{\alph{paragraph})} % d) +\fi + +% just like LaTeX2e's \@eqnnum +\def\theequationdis{{\normalfont \normalcolor (\theequation)}}% (1) +% IEEEsubequation used only by IEEEtran's IEEEeqnarray +\def\theIEEEsubequationdis{{\normalfont \normalcolor (\theIEEEsubequation)}}% (1a) +% redirect LaTeX2e's equation number display and all that depend on +% it, through IEEEtran's \theequationdis +\def\@eqnnum{\theequationdis} + + + +% V1.7 provide string macros as article.cls does +\def\contentsname{Contents} +\def\listfigurename{List of Figures} +\def\listtablename{List of Tables} +\def\refname{References} +\def\indexname{Index} +\def\figurename{Fig.} +\def\tablename{TABLE} +\@IEEEcompsocconfonly{\def\figurename{Figure}} +\def\partname{Part} +\def\appendixname{Appendix} +\def\abstractname{Abstract} +% IEEE specific names +\def\IEEEkeywordsname{Index Terms} +\def\IEEEproofname{Proof} + + +% LIST OF FIGURES AND TABLES AND TABLE OF CONTENTS +% +\def\@pnumwidth{1.55em} +\def\@tocrmarg{2.55em} +\def\@dotsep{4.5} +\setcounter{tocdepth}{3} + +% adjusted some spacings here so that section numbers will not easily +% collide with the section titles. +% VIII; VIII-A; and VIII-A.1 are usually the worst offenders. +% MDS 1/2001 +\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}} +\def\l@section#1#2{\addpenalty{\@secpenalty}\addvspace{1.0em plus 1pt}% + \@tempdima 2.75em \begingroup \parindent \z@ \rightskip \@pnumwidth% + \parfillskip-\@pnumwidth {\bfseries\leavevmode #1}\hfil\hbox to\@pnumwidth{\hss #2}\par% + \endgroup} +% argument format #1:level, #2:labelindent,#3:labelsep +\def\l@subsection{\@dottedtocline{2}{2.75em}{3.75em}} +\def\l@subsubsection{\@dottedtocline{3}{6.5em}{4.5em}} +% must provide \l@ defs for ALL sublevels EVEN if tocdepth +% is such as they will not appear in the table of contents +% these defs are how TOC knows what level these things are! +\def\l@paragraph{\@dottedtocline{4}{6.5em}{5.5em}} +\def\l@subparagraph{\@dottedtocline{5}{6.5em}{6.5em}} +\def\listoffigures{\section*{\listfigurename}\@starttoc{lof}} +\def\l@figure{\@dottedtocline{1}{0em}{2.75em}} +\def\listoftables{\section*{\listtablename}\@starttoc{lot}} +\let\l@table\l@figure + + +% Definitions for floats +% +% Normal Floats +% V1.8 floatsep et al. revised down by 0.15\baselineskip +% to account for the sideeffects of \topskip compensation +\floatsep 0.85\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip +\textfloatsep 1.55\baselineskip plus 0.2\baselineskip minus 0.4\baselineskip +\@fptop 0pt plus 1fil +\@fpsep 0.75\baselineskip plus 2fil +\@fpbot 0pt plus 1fil +\def\topfraction{0.9} +\def\bottomfraction{0.4} +\def\floatpagefraction{0.8} +% V1.7, let top floats approach 90% of page +\def\textfraction{0.1} + +% Double Column Floats +\dblfloatsep 0.85\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip + +\dbltextfloatsep 1.55\baselineskip plus 0.2\baselineskip minus 0.4\baselineskip +% Note that it would be nice if the rubber here actually worked in LaTeX2e. +% There is a long standing limitation in LaTeX, first discovered (to the best +% of my knowledge) by Alan Jeffrey in 1992. LaTeX ignores the stretchable +% portion of \dbltextfloatsep, and as a result, double column figures can and +% do result in an non-integer number of lines in the main text columns with +% underfull vbox errors as a consequence. A post to comp.text.tex +% by Donald Arseneau confirms that this had not yet been fixed in 1998. +% IEEEtran V1.6 will fix this problem for you in the titles, but it doesn't +% protect you from other double floats. Happy vspace'ing. + +\@dblfptop 0pt plus 1fil +\@dblfpsep 0.75\baselineskip plus 2fil +\@dblfpbot 0pt plus 1fil +\def\dbltopfraction{0.8} +\def\dblfloatpagefraction{0.8} +\setcounter{dbltopnumber}{4} + +\intextsep 0.85\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip +\setcounter{topnumber}{2} +\setcounter{bottomnumber}{2} +\setcounter{totalnumber}{4} + + + +% article class provides these, we should too. +\newlength\abovecaptionskip +\newlength\belowcaptionskip +% but only \abovecaptionskip is used above figure captions and *below* table +% captions +\setlength\abovecaptionskip{0.5\baselineskip} +% compsoc journals are a little more generous +\ifCLASSOPTIONcompsoc\ifCLASSOPTIONjournal + \setlength\abovecaptionskip{0.75\baselineskip} +\fi\fi +\setlength\belowcaptionskip{0pt} +% V1.6 create hooks in case the caption spacing ever needs to be +% overridden by a user +\def\@IEEEfigurecaptionsepspace{\vskip\abovecaptionskip\relax}% +\def\@IEEEtablecaptionsepspace{\vskip\abovecaptionskip\relax}% + + +% 1.6b revise caption system so that \@makecaption uses two arguments +% as with LaTeX2e. Otherwise, there will be problems when using hyperref. +\def\@IEEEtablestring{table} + + +% V1.8 compensate for \topskip so top of top figures align with tops of the first lines of main text +% here we calculate a space equal to the amount \topskip exceeds the main text height +% we hook in at \@floatboxreset +\def\@IEEEfiguretopskipspace{\ifdim\prevdepth=-1000pt\relax +\setlength{\@IEEEtrantmpdimenA}{1\topskip}\relax +\addtolength{\@IEEEtrantmpdimenA}{-0.7\@IEEEnormalsizeunitybaselineskip}\relax +\vspace*{\@IEEEtrantmpdimenA}\fi} +% V1.8 compensate for \topskip at the top of top tables so caption text is on main text baseline +% use a strut set on the caption baseline within \@makecaption +\def\@IEEEtabletopskipstrut{\ifdim\prevdepth=-1000pt\rule{0pt}{\topskip}\fi} +% the \ifdim\prevdepth checks are always expected to be true for IEEE style float caption ordering +% because top of figure content and top of captions in tables is the first thing on the vertical +% list of these floats +% thanks to Donald Arseneau for his 2000/11/11 post "Re: caption hacking" with info on this topic. + + +\ifCLASSOPTIONcompsoc +% V1.7 compsoc \@makecaption +\ifCLASSOPTIONconference% compsoc conference +\long\def\@makecaption#1#2{% +% test if is a for a figure or table +\ifx\@captype\@IEEEtablestring% +% if a table, do table caption +\footnotesize\bgroup\par\centering\@IEEEtabletopskipstrut{\normalfont\footnotesize {#1.}\nobreakspace\scshape #2}\par\addvspace{0.5\baselineskip}\egroup% +\@IEEEtablecaptionsepspace +% if not a table, format it as a figure +\else +\@IEEEfigurecaptionsepspace +\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}\nobreakspace #2}% +\ifdim \wd\@tempboxa >\hsize% +% if caption is longer than a line, let it wrap around +\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}\nobreakspace}% +\parbox[t]{\hsize}{\normalfont\footnotesize \noindent\unhbox\@tempboxa#2}% +% if caption is shorter than a line, center +\else% +\hbox to\hsize{\normalfont\footnotesize\hfil\box\@tempboxa\hfil}% +\fi\fi} +% +\else% nonconference compsoc +\long\def\@makecaption#1#2{% +% test if is a for a figure or table +\ifx\@captype\@IEEEtablestring% +% if a table, do table caption +\footnotesize\bgroup\par\centering\@IEEEtabletopskipstrut{\normalfont\sffamily\footnotesize #1}\\{\normalfont\sffamily\footnotesize #2}\par\addvspace{0.5\baselineskip}\egroup% +\@IEEEtablecaptionsepspace +% if not a table, format it as a figure +\else +\@IEEEfigurecaptionsepspace +\setbox\@tempboxa\hbox{\normalfont\sffamily\footnotesize {#1.}\nobreakspace #2}% +\ifdim \wd\@tempboxa >\hsize% +% if caption is longer than a line, let it wrap around +\setbox\@tempboxa\hbox{\normalfont\sffamily\footnotesize {#1.}\nobreakspace}% +\parbox[t]{\hsize}{\normalfont\sffamily\footnotesize \noindent\unhbox\@tempboxa#2}% +% if caption is shorter than a line, left justify +\else% +\hbox to\hsize{\normalfont\sffamily\footnotesize\box\@tempboxa\hfil}% +\fi\fi} +\fi +% +\else% traditional noncompsoc \@makecaption +\long\def\@makecaption#1#2{% +% test if is a for a figure or table +\ifx\@captype\@IEEEtablestring% +% if a table, do table caption +\footnotesize\bgroup\par\centering\@IEEEtabletopskipstrut{\normalfont\footnotesize #1}\\{\normalfont\footnotesize\scshape #2}\par\addvspace{0.5\baselineskip}\egroup% +\@IEEEtablecaptionsepspace +% if not a table, format it as a figure +\else +\@IEEEfigurecaptionsepspace +% 3/2001 use footnotesize, not small; use two nonbreaking spaces, not one +\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}\nobreakspace\nobreakspace #2}% +\ifdim \wd\@tempboxa >\hsize% +% if caption is longer than a line, let it wrap around +\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}\nobreakspace\nobreakspace}% +\parbox[t]{\hsize}{\normalfont\footnotesize\noindent\unhbox\@tempboxa#2}% +% if caption is shorter than a line, center if conference, left justify otherwise +\else% +\ifCLASSOPTIONconference \hbox to\hsize{\normalfont\footnotesize\hfil\box\@tempboxa\hfil}% +\else \hbox to\hsize{\normalfont\footnotesize\box\@tempboxa\hfil}% +\fi\fi\fi} +\fi + + + +% V1.7 disable captions class option, do so in a way that retains operation of \label +% within \caption +\ifCLASSOPTIONcaptionsoff +\long\def\@makecaption#1#2{\vspace*{2em}\footnotesize\bgroup\par\addvspace{0.5\baselineskip}\centering{\footnotesize #1}\par\addvspace{0.5\baselineskip}\egroup% +\let\@IEEEtemporiglabeldefsave\label +\let\@IEEEtemplabelargsave\relax +\def\label##1{\gdef\@IEEEtemplabelargsave{##1}}% +\setbox\@tempboxa\hbox{#2}% +\let\label\@IEEEtemporiglabeldefsave +\ifx\@IEEEtemplabelargsave\relax\else\label{\@IEEEtemplabelargsave}\fi} +\fi + + +% V1.7 define end environments with \def not \let so as to work OK with +% preview-latex +\newcounter{figure} +\def\thefigure{\@arabic\c@figure} +\def\fps@figure{tbp} +\def\ftype@figure{1} +\def\ext@figure{lof} +\def\fnum@figure{\figurename\nobreakspace\thefigure} +% V1.8 within figures add \@IEEEfiguretopskipspace compensation to LaTeX2e's \@floatboxreset +\def\figure{\def\@floatboxreset{\reset@font\normalsize\@setminipage\@IEEEfiguretopskipspace}\@float{figure}} +\def\endfigure{\end@float} +% V1.8 also add \@IEEEfiguretopskipspace compensation to \figure* +\@namedef{figure*}{\def\@floatboxreset{\reset@font\normalsize\@setminipage\@IEEEfiguretopskipspace}\@dblfloat{figure}} +\@namedef{endfigure*}{\end@dblfloat} + +\newcounter{table} +\ifCLASSOPTIONcompsoc +\def\thetable{\arabic{table}} +\else +\def\thetable{\@Roman\c@table} +\fi +\def\fps@table{tbp} +\def\ftype@table{2} +\def\ext@table{lot} +\def\fnum@table{\tablename\nobreakspace\thetable} +% V1.6 The IEEE uses 8pt text for tables +% within tables alter LaTeX2e's \@floatboxreset to use \footnotesize +\def\table{\def\@floatboxreset{\reset@font\footnotesize\@setminipage}\@float{table}} +\def\endtable{\end@float} +% v1.6b double column tables need to default to footnotesize as well. +\@namedef{table*}{\def\@floatboxreset{\reset@font\footnotesize\@setminipage}\@dblfloat{table}} +\@namedef{endtable*}{\end@dblfloat} + + + + +%% -- Command Argument Scanning Support Functions -- +%% V1.8a + +% usage: \@IEEEstripouterbraces*{} +% \@IEEEstripouterbraces fully expands its argument (which it then stores +% in \@IEEEstripouterbracesarg) via \edef, then removes any outer enclosing +% braces, and finally stores the result in the macro +% \@IEEEstrippedouterbraces. +% +% For example: +% \@IEEEstripouterbraces{{{{ab}c}}} +% results in: +% +% \@IEEEstripouterbracesarg ==> a macro containing {{{ab}c}} +% \@IEEEstrippedouterbraces ==> a macro containing {ab}c +% +% the *-star form,\@IEEEstripouterbraces*, does not expand the argument +% contents during processing +\def\@IEEEstripouterbraces{\@ifstar{\let\@IEEEstripouterbracesdef=\def\@@IEEEstripouterbraces}{\let\@IEEEstripouterbracesdef=\edef\@@IEEEstripouterbraces}} + +\def\@@IEEEstripouterbraces#1{\@IEEEstripouterbracesdef\@IEEEstripouterbracesarg{#1}\relax +% If the macro is unchanged after being acquired as a single delimited +% argument, we know we have one sequence of tokens without any enclosing +% braces. Loop until this is true. +\loop + \expandafter\@@@IEEEstripouterbraces\@IEEEstripouterbracesarg\@IEEEgeneralsequenceDELIMITER +\ifx\@IEEEstrippedouterbraces\@IEEEstripouterbracesarg +\else + \let\@IEEEstripouterbracesarg\@IEEEstrippedouterbraces +\repeat} + +\def\@@@IEEEstripouterbraces#1\@IEEEgeneralsequenceDELIMITER{\def\@IEEEstrippedouterbraces{#1}} + + + +% usage: \@IEEEextractgroup*{} +% \@IEEEextractgroup fully expands its argument (which it then stores in +% \@IEEEextractgrouparg) via \edef and then assigns the first "brace group" +% of tokens to the macro \@IEEEextractedgroup. +% The remaining groups, if any, are stored in the macro +% \@IEEEextractedgroupremain. If the argument does not contain the requisite +% groups, the respective macros will be defined to be empty. +% There is an asymmetry in that \@IEEEextractedgroup is stripped of its first +% outer grouping while \@IEEEextractedgroupremain retains even the outer +% grouping (if present) that originally identified it as a group. +% +% For example: +% \@IEEEextractgroup{{{ab}}{c{de}}} +% results in: +% +% \@IEEEextractgrouparg ==> a macro containing {{ab}}{c{de}} +% \@IEEEextractedgroup ==> a macro containing {ab} +% \@IEEEextractedgroupremain ==> a macro containing {c{de}} +% +% The *-star form, \@IEEEextractgroup*, does not expand its argument +% contents during processing. +\def\@IEEEextractgroup{\@ifstar{\let\@IEEEextractgroupdef=\def\@@IEEEextractgroup}{\let\@IEEEextractgroupdef=\edef\@@IEEEextractgroup}} + +\def\@@IEEEextractgroup#1{\@IEEEextractgroupdef\@IEEEextractgrouparg{#1}\relax +% trap the case of an empty extracted group as this would cause problems with +% \@IEEEextractgroupremain's argument acquisition +\ifx\@IEEEextractgrouparg\@empty + \def\@IEEEextractedgroup{}\relax + \def\@IEEEextractedgroupremain{}\relax +\else + % We have to use some dirty tricks here. We want to insert {} around + % whatever remains after the first group so that TeX's argument scanner + % will preserve any originally enclosing braces as well as provide an + % empty argument to acquire even if there isn't a second group. + % In this first of two dirty tricks, we put a } at the end of the structure + % we are going to extract from. The \ifnum0=`{\fi keeps TeX happy to allow + % what would otherwise be an unbalanced macro definition for + % \@@IEEEextractgroup to be acceptable to it. + \ifnum0=`{\fi\expandafter\@IEEEextractgroupremain\@IEEEextractgrouparg}\relax +\fi} + +% In the second part of the dirty tricks, we insert a leading { right after +% the first group is acquired, but before the remainder is. Again, the +% \ifnum0=`}\fi keeps TeX happy during definition time, but will disappear +% during run time. +\def\@IEEEextractgroupremain#1{\def\@IEEEextractedgroup{#1}\expandafter\@@IEEEextractgroupremain\expandafter{\ifnum0=`}\fi} + +\def\@@IEEEextractgroupremain#1{\def\@IEEEextractedgroupremain{#1}} + + + +% \@IEEEextracttoken relocated at top because margin setting commands rely on it + + + +% usage: \@IEEEextracttokengroups*{} +% \@IEEEextracttokengroups fully expands its argument (which it then stores +% in \@IEEEextracttokengroupsarg) and then assigns the first "brace group" of +% tokens (with the outermost braces removed) to the macro +% \@IEEEextractedfirstgroup. +% The meaning of the first nonbrace (but including the empty group) token +% within this first group is assigned via \let to \@IEEEextractedfirsttoken +% as well as stored in the macro \@IEEEextractedfirsttokenmacro. If a first +% nonbrace token does not exist (or is an empty group), these will be \relax +% and empty, respectively. Tokens that would otherwise be discarded during +% the acquisition of the first token in the first group are stored in +% \@IEEEextractedfirsttokensdiscarded, however their original relative brace +% nesting depths are not guaranteed to be preserved. +% The first group within this first group is stored in the macro +% \@IEEEextractedfirstfirstgroup. +% Likewise for the next group after the first: \@IEEEextractednextgroup, +% \@IEEEextractednextfirstgroup, \@IEEEextractednextgroupfirsttoken, +% \@IEEEextractednextgroupfirsttokenmacro, and +% \@IEEEextractednextfirsttokensdiscarded. +% All tokens/groups after the first group, including any enclosing braces, +% are stored in the macro \@IEEEextractedafterfirstgroupremain which will +% be empty if none exist. +% +% For example: +% \@IEEEextracttokengroups{{{ab}{cd}}{{ef}g}} +% will result in: +% +% \@IEEEextracttokengroupsarg ==> a macro containing {{ab}{cd}}{{ef}g} +% \@IEEEextractedfirstgroup ==> a macro containing {ab}{cd} +% \@IEEEextractedafterfirstgroupremain ==> a macro containing {{ef}g} +% \@IEEEextractedfirsttoken ==> the letter a +% \@IEEEextractedfirsttokenmacro ==> a macro containing a +% \@IEEEextractedfirsttokensdiscarded ==> a macro containing bcd +% \@IEEEextractedfirstfirstgroup ==> a macro containing ab +% \@IEEEextractednextgroup ==> a macro containing {ef}g +% \@IEEEextractednextfirsttoken ==> the letter e +% \@IEEEextractednextfirsttokenmacro ==> a macro containing e +% \@IEEEextractednextfirsttokensdiscarded ==> a macro containing fg +% \@IEEEextractednextfirstgroup ==> a macro containing ef +% +% If given an empty argument, \@IEEEextractedfirsttoken and +% \@IEEEextractednextfirsttoken will be set to \relax +% and all the macros will be empty. +% the *-star form, \@IEEEextracttokengroups*, does not expand its argument +% contents during processing. +% +% Depends on: \@IEEEextractgroup, \@IEEEextracttoken +\def\@IEEEextracttokengroups{\@ifstar{\let\@IEEEextracttokengroupsdef=\def\@@IEEEextracttokengroups}{\let\@IEEEextracttokengroupsdef=\edef\@@IEEEextracttokengroups}} +\def\@@IEEEextracttokengroups#1{\@IEEEextracttokengroupsdef\@IEEEextracttokengroupsarg{#1}\relax +% begin extraction, these functions are safe with empty arguments +% first group +\expandafter\@IEEEextractgroup\expandafter*\expandafter{\@IEEEextracttokengroupsarg}\relax +\let\@IEEEextractedfirstgroup\@IEEEextractedgroup +\let\@IEEEextractedafterfirstgroupremain\@IEEEextractedgroupremain +\expandafter\@IEEEextracttoken\expandafter*\expandafter{\@IEEEextractedfirstgroup}\relax +\let\@IEEEextractedfirsttoken\@IEEEextractedtoken +\let\@IEEEextractedfirsttokenmacro\@IEEEextractedtokenmacro +\let\@IEEEextractedfirsttokensdiscarded\@IEEEextractedtokensdiscarded +% first first group +\expandafter\@IEEEextractgroup\expandafter*\expandafter{\@IEEEextractedfirstgroup}\relax +\let\@IEEEextractedfirstfirstgroup\@IEEEextractedgroup +% next group +\expandafter\@IEEEextractgroup\expandafter*\expandafter{\@IEEEextractedafterfirstgroupremain}\relax +\let\@IEEEextractednextgroup\@IEEEextractedgroup +\expandafter\@IEEEextracttoken\expandafter*\expandafter{\@IEEEextractednextgroup}\relax +\let\@IEEEextractednextfirsttoken\@IEEEextractedtoken +\let\@IEEEextractednextfirsttokenmacro\@IEEEextractedtokenmacro +\let\@IEEEextractednextfirsttokensdiscarded\@IEEEextractedtokensdiscarded +% next first group +\expandafter\@IEEEextractgroup\expandafter*\expandafter{\@IEEEextractednextgroup}\relax +\let\@IEEEextractednextfirstgroup\@IEEEextractedgroup} + + +%% -- End of Command Argument Scanning Support Functions -- + + + + +%% +%% START OF IEEEeqnarray DEFINITIONS +%% +%% Inspired by the concepts, examples, and previous works of LaTeX +%% coders and developers such as Donald Arseneau, Fred Bartlett, +%% David Carlisle, Tony Liu, Frank Mittelbach, Piet van Oostrum, +%% Roland Winkler and Mark Wooding. +%% I don't make the claim that my work here is even near their calibre. ;) + + +\newif\if@IEEEeqnarrayboxnojot% flag to indicate if the environment was called as the star form +\@IEEEeqnarrayboxnojotfalse + +\newif\if@advanceIEEEeqncolcnt% tracks if the environment should advance the col counter +% allows a way to make an \IEEEeqnarraybox that can be used within an \IEEEeqnarray +% used by IEEEeqnarraymulticol so that it can work properly in both +\@advanceIEEEeqncolcnttrue + +\newcount\@IEEEeqnnumcols % tracks how many IEEEeqnarray cols are defined +\newcount\@IEEEeqncolcnt % tracks how many IEEEeqnarray cols the user actually used + + +% The default math style used by the columns +\def\IEEEeqnarraymathstyle{\displaystyle} +% The default text style used by the columns +% default to using the current font +\def\IEEEeqnarraytextstyle{\relax} + +% like the iedlistdecl but for \IEEEeqnarray +\def\IEEEeqnarraydecl{\relax} +\def\IEEEeqnarrayboxdecl{\relax} + + + +% V1.8 flags to indicate that equation numbering is to persist +\newif\if@IEEEeqnumpersist% +\@IEEEeqnumpersistfalse +\newif\if@IEEEsubeqnumpersist% +\@IEEEsubeqnumpersistfalse +% +% V1.8 flags to indicate if (sub)equation number of last line was preadvanced +\newif\if@IEEEeqnumpreadv% +\@IEEEeqnumpreadvfalse +\newif\if@IEEEsubeqnumpreadv% +\@IEEEsubeqnumpreadvfalse + +\newcount\@IEEEsubeqnnumrollback% saves previous value of IEEEsubequation number in case we need to restore it + +% \yesnumber is the opposite of \nonumber +% a novel concept with the same def as the equationarray package +% However, we give IEEE versions too since some LaTeX packages such as +% the MDWtools mathenv.sty redefine \nonumber to something else. +% This command is intended for use in non-IEEEeqnarray math environments +\providecommand{\yesnumber}{\global\@eqnswtrue} + + +% IEEEyes/nonumber +% V1.8 add persistant * forms +% These commands can alter the type of equation an IEEEeqnarray line is. +\def\IEEEyesnumber{\@ifstar{\global\@IEEEeqnumpersisttrue\global\@IEEEsubeqnumpersistfalse\@IEEEyesnumber}{\@IEEEyesnumber}} + +\def\@IEEEyesnumber{\global\@eqnswtrue +\if@IEEEeqnarrayISinner% alter counters and label only inside an IEEEeqnarray +\ifnum\c@IEEEsubequation>0\relax + \stepcounter{equation}\setcounter{IEEEsubequation}{0}\gdef\@currentlabel{\p@equation\theequation}\relax + \gdef\@currentHref{\@IEEEtheHrefequation}% setup hyperref label +\fi +% even if we reached this eqn num via a preadv, it is legit now +\global\@IEEEeqnumpreadvfalse\global\@IEEEsubeqnumpreadvfalse +\fi} + +\def\IEEEnonumber{\@ifstar{\global\@IEEEeqnumpersistfalse\global\@IEEEsubeqnumpersistfalse\global\@eqnswfalse}{\global\@eqnswfalse}} + + +\def\IEEEyessubnumber{\@ifstar{\global\@IEEEsubeqnumpersisttrue\@IEEEyessubnumber}{\@IEEEyessubnumber}} +% +\def\@IEEEyessubnumber{\if@IEEEeqnarrayISinner% alter counters and label only inside an IEEEeqnarray + \ifnum\c@IEEEsubequation>0\relax% if it already is a subequation, we are good to go as-is + \else% if we are a regular equation we have to watch out for two cases + \if@IEEEeqnumpreadv% if this equation is the result of a preadvance, backout and bump the sub eqnnum + \global\advance\c@equation\m@ne\global\c@IEEEsubequation=\@IEEEsubeqnnumrollback\addtocounter{IEEEsubequation}{1}\relax + \else% non-preadvanced equations just need initialization of their sub eqnnum + \setcounter{IEEEsubequation}{1}\relax + \fi + \fi% fi already is subequation + \gdef\@currentlabel{\p@IEEEsubequation\theIEEEsubequation}\relax + \gdef\@currentHref{\@IEEEtheHrefsubequation}% setup hyperref label + \global\@IEEEeqnumpreadvfalse\global\@IEEEsubeqnumpreadvfalse% no longer a preadv anymore + \global\@eqnswtrue +\fi} + + +\def\IEEEnosubnumber{\@ifstar{\global\@IEEEsubeqnumpersistfalse\@IEEEnosubnumber}{\@IEEEnosubnumber}} +% +\def\@IEEEnosubnumber{\if@IEEEeqnarrayISinner% alter counters and label only inside an IEEEeqnarray + \if@eqnsw % we do nothing unless we know we will display because we play with the counters here + % if it currently is a subequation, bump up to the next equation number and turn off the subequation + \ifnum\c@IEEEsubequation>0\relax\addtocounter{equation}{1}\setcounter{IEEEsubequation}{0}\relax + \fi + \global\@IEEEeqnumpreadvfalse\global\@IEEEsubeqnumpreadvfalse% no longer a preadv anymore + \gdef\@currentlabel{\p@equation\theequation}\relax + \gdef\@currentHref{\@IEEEtheHrefequation}% setup hyperref label + \fi +\fi} + + + +% allows users to "push away" equations that get too close to the equation numbers +\def\IEEEeqnarraynumspace{\hphantom{\ifnum\c@IEEEsubequation>0\relax\theIEEEsubequationdis\else\theequationdis\fi}} + +% provides a way to span multiple columns within IEEEeqnarray environments +% will consider \if@advanceIEEEeqncolcnt before globally advancing the +% column counter - so as to work within \IEEEeqnarraybox +% usage: \IEEEeqnarraymulticol{number cols. to span}{col type}{cell text} +\long\def\IEEEeqnarraymulticol#1#2#3{\multispan{#1}\relax +% check if column is defined for the precolumn definition +% We have to be careful here because TeX scans for & even within an \iffalse +% where it does not expand macros. So, if we used only one \ifx and a #3 +% appeared in the false branch and the user inserted another alignment +% structure that uses & in the \IEEEeqnarraymulticol{}, TeX will not see that +% there is an inner alignment in the false branch yet still will see any & +% there and will think that they apply to the outer alignment resulting in an +% incomplete \ifx error. +% So, here we use separate checks for the pre and post parts in order to keep +% the #3 outside of all conditionals. +\relax\expandafter\ifx\csname @IEEEeqnarraycolDEF#2\endcsname\@IEEEeqnarraycolisdefined\relax +\csname @IEEEeqnarraycolPRE#2\endcsname +\else% if not, error and use default type +\@IEEEclspkgerror{Invalid column type "#2" in \string\IEEEeqnarraymulticol.\MessageBreak +Using a default centering column instead}% +{You must define IEEEeqnarray column types before use.}% +\csname @IEEEeqnarraycolPRE@IEEEdefault\endcsname +\fi +% The ten \relax are to help prevent misleading error messages in case a user +% accidently inserted a macro that tries to acquire additional arguments. +#3\relax\relax\relax\relax\relax\relax\relax\relax\relax\relax +% check if column is defined for the postcolumn definition +\expandafter\ifx\csname @IEEEeqnarraycolDEF#2\endcsname\@IEEEeqnarraycolisdefined\relax +\csname @IEEEeqnarraycolPOST#2\endcsname +\else% if not, use the default type +\csname @IEEEeqnarraycolPOST@IEEEdefault\endcsname +\fi +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by #1\relax\fi} + +% like \omit, but maintains track of the column counter for \IEEEeqnarray +\def\IEEEeqnarrayomit{\omit\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by 1\relax\fi} + + +% provides a way to define a letter referenced column type +% usage: \IEEEeqnarraydefcol{col. type letter/name}{pre insertion text}{post insertion text} +\def\IEEEeqnarraydefcol#1#2#3{\expandafter\def\csname @IEEEeqnarraycolPRE#1\endcsname{#2}% +\expandafter\def\csname @IEEEeqnarraycolPOST#1\endcsname{#3}% +\expandafter\def\csname @IEEEeqnarraycolDEF#1\endcsname{1}} + + +% provides a way to define a numerically referenced inter-column glue types +% usage: \IEEEeqnarraydefcolsep{col. glue number}{glue definition} +\def\IEEEeqnarraydefcolsep#1#2{\expandafter\def\csname @IEEEeqnarraycolSEP\romannumeral #1\endcsname{#2}% +\expandafter\def\csname @IEEEeqnarraycolSEPDEF\romannumeral #1\endcsname{1}} + + +\def\@IEEEeqnarraycolisdefined{1}% just a macro for 1, used for checking undefined column types + + +% expands and appends the given argument to the \@IEEEtrantmptoksA token list +% used to build up the \halign preamble +\def\@IEEEappendtoksA#1{\edef\@@IEEEappendtoksA{\@IEEEtrantmptoksA={\the\@IEEEtrantmptoksA #1}}% +\@@IEEEappendtoksA} + +% also appends to \@IEEEtrantmptoksA, but does not expand the argument +% uses \toks8 as a scratchpad register +\def\@IEEEappendNOEXPANDtoksA#1{\toks8={#1}% +\edef\@@IEEEappendNOEXPANDtoksA{\@IEEEtrantmptoksA={\the\@IEEEtrantmptoksA\the\toks8}}% +\@@IEEEappendNOEXPANDtoksA} + +% define some common column types for the user +% math +\IEEEeqnarraydefcol{l}{$\IEEEeqnarraymathstyle}{$\hfil} +\IEEEeqnarraydefcol{c}{\hfil$\IEEEeqnarraymathstyle}{$\hfil} +\IEEEeqnarraydefcol{r}{\hfil$\IEEEeqnarraymathstyle}{$} +\IEEEeqnarraydefcol{L}{$\IEEEeqnarraymathstyle{}}{{}$\hfil} +\IEEEeqnarraydefcol{C}{\hfil$\IEEEeqnarraymathstyle{}}{{}$\hfil} +\IEEEeqnarraydefcol{R}{\hfil$\IEEEeqnarraymathstyle{}}{{}$} +% text +\IEEEeqnarraydefcol{s}{\IEEEeqnarraytextstyle}{\hfil} +\IEEEeqnarraydefcol{t}{\hfil\IEEEeqnarraytextstyle}{\hfil} +\IEEEeqnarraydefcol{u}{\hfil\IEEEeqnarraytextstyle}{} + +% vertical rules +\IEEEeqnarraydefcol{v}{}{\vrule width\arrayrulewidth} +\IEEEeqnarraydefcol{vv}{\vrule width\arrayrulewidth\hfil}{\hfil\vrule width\arrayrulewidth} +\IEEEeqnarraydefcol{V}{}{\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth} +\IEEEeqnarraydefcol{VV}{\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth\hfil}% +{\hfil\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth} + +% horizontal rules +\IEEEeqnarraydefcol{h}{}{\leaders\hrule height\arrayrulewidth\hfil} +\IEEEeqnarraydefcol{H}{}{\leaders\vbox{\hrule width\arrayrulewidth\vskip\doublerulesep\hrule width\arrayrulewidth}\hfil} + +% plain +\IEEEeqnarraydefcol{x}{}{} +\IEEEeqnarraydefcol{X}{$}{$} + +% the default column type to use in the event a column type is not defined +\IEEEeqnarraydefcol{@IEEEdefault}{\hfil$\IEEEeqnarraymathstyle}{$\hfil} + + +% a zero tabskip (used for "-" col types) +\def\@IEEEeqnarraycolSEPzero{0pt plus 0pt minus 0pt} +% a centering tabskip (used for "+" col types) +\def\@IEEEeqnarraycolSEPcenter{1000pt plus 0pt minus 1000pt} + +% top level default tabskip glues for the start, end, and inter-column +% may be reset within environments not always at the top level, e.g., \IEEEeqnarraybox +\edef\@IEEEeqnarraycolSEPdefaultstart{\@IEEEeqnarraycolSEPcenter}% default start glue +\edef\@IEEEeqnarraycolSEPdefaultend{\@IEEEeqnarraycolSEPcenter}% default end glue +\edef\@IEEEeqnarraycolSEPdefaultmid{\@IEEEeqnarraycolSEPzero}% default inter-column glue + + + +% creates a vertical rule that extends from the bottom to the top a a cell +% Provided in case other packages redefine \vline some other way. +% usage: \IEEEeqnarrayvrule[rule thickness] +% If no argument is provided, \arrayrulewidth will be used for the rule thickness. +\newcommand\IEEEeqnarrayvrule[1][\arrayrulewidth]{\vrule\@width#1\relax} + +% creates a blank separator row +% usage: \IEEEeqnarrayseprow[separation length][font size commands] +% default is \IEEEeqnarrayseprow[0.25\normalbaselineskip][\relax] +% blank arguments inherit the default values +% uses \skip5 as a scratch register - calls \@IEEEeqnarraystrutsize which uses more scratch registers +\def\IEEEeqnarrayseprow{\relax\@ifnextchar[{\@IEEEeqnarrayseprow}{\@IEEEeqnarrayseprow[0.25\normalbaselineskip]}} +\def\@IEEEeqnarrayseprow[#1]{\relax\@ifnextchar[{\@@IEEEeqnarrayseprow[#1]}{\@@IEEEeqnarrayseprow[#1][\relax]}} +\def\@@IEEEeqnarrayseprow[#1][#2]{\def\@IEEEeqnarrayseprowARGONE{#1}% +\ifx\@IEEEeqnarrayseprowARGONE\@empty% +% get the skip value, based on the font commands +% use skip5 because \IEEEeqnarraystrutsize uses \skip0, \skip2, \skip3 +% assign within a bogus box to confine the font changes +{\setbox0=\hbox{#2\relax\global\skip5=0.25\normalbaselineskip}}% +\else% +{\setbox0=\hbox{#2\relax\global\skip5=#1}}% +\fi% +\@IEEEeqnarrayhoptolastcolumn\IEEEeqnarraystrutsize{\skip5}{0pt}[\relax]\relax} + +% creates a blank separator row, but omits all the column templates +% usage: \IEEEeqnarrayseprowcut[separation length][font size commands] +% default is \IEEEeqnarrayseprowcut[0.25\normalbaselineskip][\relax] +% blank arguments inherit the default values +% uses \skip5 as a scratch register - calls \@IEEEeqnarraystrutsize which uses more scratch registers +\def\IEEEeqnarrayseprowcut{\multispan{\@IEEEeqnnumcols}\relax% span all the cols +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi% +\@ifnextchar[{\@IEEEeqnarrayseprowcut}{\@IEEEeqnarrayseprowcut[0.25\normalbaselineskip]}} +\def\@IEEEeqnarrayseprowcut[#1]{\relax\@ifnextchar[{\@@IEEEeqnarrayseprowcut[#1]}{\@@IEEEeqnarrayseprowcut[#1][\relax]}} +\def\@@IEEEeqnarrayseprowcut[#1][#2]{\def\@IEEEeqnarrayseprowARGONE{#1}% +\ifx\@IEEEeqnarrayseprowARGONE\@empty% +% get the skip value, based on the font commands +% use skip5 because \IEEEeqnarraystrutsize uses \skip0, \skip2, \skip3 +% assign within a bogus box to confine the font changes +{\setbox0=\hbox{#2\relax\global\skip5=0.25\normalbaselineskip}}% +\else% +{\setbox0=\hbox{#2\relax\global\skip5=#1}}% +\fi% +\IEEEeqnarraystrutsize{\skip5}{0pt}[\relax]\relax} + + + +% draws a single rule across all the columns optional +% argument determines the rule width, \arrayrulewidth is the default +% updates column counter as needed and turns off struts +% usage: \IEEEeqnarrayrulerow[rule line thickness] +\def\IEEEeqnarrayrulerow{\multispan{\@IEEEeqnnumcols}\relax% span all the cols +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi% +\@ifnextchar[{\@IEEEeqnarrayrulerow}{\@IEEEeqnarrayrulerow[\arrayrulewidth]}} +\def\@IEEEeqnarrayrulerow[#1]{\leaders\hrule height#1\hfil\relax% put in our rule +% turn off any struts +\IEEEeqnarraystrutsize{0pt}{0pt}[\relax]\relax} + + +% draws a double rule by using a single rule row, a separator row, and then +% another single rule row +% first optional argument determines the rule thicknesses, \arrayrulewidth is the default +% second optional argument determines the rule spacing, \doublerulesep is the default +% usage: \IEEEeqnarraydblrulerow[rule line thickness][rule spacing] +\def\IEEEeqnarraydblrulerow{\multispan{\@IEEEeqnnumcols}\relax% span all the cols +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi% +\@ifnextchar[{\@IEEEeqnarraydblrulerow}{\@IEEEeqnarraydblrulerow[\arrayrulewidth]}} +\def\@IEEEeqnarraydblrulerow[#1]{\relax\@ifnextchar[{\@@IEEEeqnarraydblrulerow[#1]}% +{\@@IEEEeqnarraydblrulerow[#1][\doublerulesep]}} +\def\@@IEEEeqnarraydblrulerow[#1][#2]{\def\@IEEEeqnarraydblrulerowARG{#1}% +% we allow the user to say \IEEEeqnarraydblrulerow[][] +\ifx\@IEEEeqnarraydblrulerowARG\@empty% +\@IEEEeqnarrayrulerow[\arrayrulewidth]% +\else% +\@IEEEeqnarrayrulerow[#1]\relax% +\fi% +\def\@IEEEeqnarraydblrulerowARG{#2}% +\ifx\@IEEEeqnarraydblrulerowARG\@empty% +\\\IEEEeqnarrayseprow[\doublerulesep][\relax]% +\else% +\\\IEEEeqnarrayseprow[#2][\relax]% +\fi% +\\\multispan{\@IEEEeqnnumcols}% +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi% +\def\@IEEEeqnarraydblrulerowARG{#1}% +\ifx\@IEEEeqnarraydblrulerowARG\@empty% +\@IEEEeqnarrayrulerow[\arrayrulewidth]% +\else% +\@IEEEeqnarrayrulerow[#1]% +\fi% +} + +% draws a double rule by using a single rule row, a separator (cutting) row, and then +% another single rule row +% first optional argument determines the rule thicknesses, \arrayrulewidth is the default +% second optional argument determines the rule spacing, \doublerulesep is the default +% usage: \IEEEeqnarraydblrulerow[rule line thickness][rule spacing] +\def\IEEEeqnarraydblrulerowcut{\multispan{\@IEEEeqnnumcols}\relax% span all the cols +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi% +\@ifnextchar[{\@IEEEeqnarraydblrulerowcut}{\@IEEEeqnarraydblrulerowcut[\arrayrulewidth]}} +\def\@IEEEeqnarraydblrulerowcut[#1]{\relax\@ifnextchar[{\@@IEEEeqnarraydblrulerowcut[#1]}% +{\@@IEEEeqnarraydblrulerowcut[#1][\doublerulesep]}} +\def\@@IEEEeqnarraydblrulerowcut[#1][#2]{\def\@IEEEeqnarraydblrulerowARG{#1}% +% we allow the user to say \IEEEeqnarraydblrulerow[][] +\ifx\@IEEEeqnarraydblrulerowARG\@empty% +\@IEEEeqnarrayrulerow[\arrayrulewidth]% +\else% +\@IEEEeqnarrayrulerow[#1]% +\fi% +\def\@IEEEeqnarraydblrulerowARG{#2}% +\ifx\@IEEEeqnarraydblrulerowARG\@empty% +\\\IEEEeqnarrayseprowcut[\doublerulesep][\relax]% +\else% +\\\IEEEeqnarrayseprowcut[#2][\relax]% +\fi% +\\\multispan{\@IEEEeqnnumcols}% +% advance column counter only if the IEEEeqnarray environment wants it +\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi% +\def\@IEEEeqnarraydblrulerowARG{#1}% +\ifx\@IEEEeqnarraydblrulerowARG\@empty% +\@IEEEeqnarrayrulerow[\arrayrulewidth]% +\else% +\@IEEEeqnarrayrulerow[#1]% +\fi% +} + + + +% inserts a full row's worth of &'s +% relies on \@IEEEeqnnumcols to provide the correct number of columns +% uses \@IEEEtrantmptoksA, \count0 as scratch registers +\def\@IEEEeqnarrayhoptolastcolumn{\@IEEEtrantmptoksA={}\count0=1\relax% +\loop% add cols if the user did not use them all +\ifnum\count0<\@IEEEeqnnumcols\relax% +\@IEEEappendtoksA{&}% +\advance\count0 by 1\relax% update the col count +\repeat% +\the\@IEEEtrantmptoksA%execute the &'s +} + + + +\newif\if@IEEEeqnarrayISinner % flag to indicate if we are within the lines +\@IEEEeqnarrayISinnerfalse % of an IEEEeqnarray - after the IEEEeqnarraydecl + +\edef\@IEEEeqnarrayTHEstrutheight{0pt} % height and depth of IEEEeqnarray struts +\edef\@IEEEeqnarrayTHEstrutdepth{0pt} + +\edef\@IEEEeqnarrayTHEmasterstrutheight{0pt} % default height and depth of +\edef\@IEEEeqnarrayTHEmasterstrutdepth{0pt} % struts within an IEEEeqnarray + +\edef\@IEEEeqnarrayTHEmasterstrutHSAVE{0pt} % saved master strut height +\edef\@IEEEeqnarrayTHEmasterstrutDSAVE{0pt} % and depth + +\newif\if@IEEEeqnarrayusemasterstrut % flag to indicate that the master strut value +\@IEEEeqnarrayusemasterstruttrue % is to be used + + + +% saves the strut height and depth of the master strut +\def\@IEEEeqnarraymasterstrutsave{\relax% +\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax% +% remove stretchability +\dimen0\skip0\relax% +\dimen2\skip2\relax% +% save values +\edef\@IEEEeqnarrayTHEmasterstrutHSAVE{\the\dimen0}% +\edef\@IEEEeqnarrayTHEmasterstrutDSAVE{\the\dimen2}} + +% restores the strut height and depth of the master strut +\def\@IEEEeqnarraymasterstrutrestore{\relax% +\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutHSAVE\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutDSAVE\relax% +% remove stretchability +\dimen0\skip0\relax% +\dimen2\skip2\relax% +% restore values +\edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}} + + +% globally restores the strut height and depth to the +% master values and sets the master strut flag to true +\def\@IEEEeqnarraystrutreset{\relax% +\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax% +% remove stretchability +\dimen0\skip0\relax% +\dimen2\skip2\relax% +% restore values +\xdef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}% +\xdef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}% +\global\@IEEEeqnarrayusemasterstruttrue} + + +% if the master strut is not to be used, make the current +% values of \@IEEEeqnarrayTHEstrutheight, \@IEEEeqnarrayTHEstrutdepth +% and the use master strut flag, global +% this allows user strut commands issued in the last column to be carried +% into the isolation/strut column +\def\@IEEEeqnarrayglobalizestrutstatus{\relax% +\if@IEEEeqnarrayusemasterstrut\else% +\xdef\@IEEEeqnarrayTHEstrutheight{\@IEEEeqnarrayTHEstrutheight}% +\xdef\@IEEEeqnarrayTHEstrutdepth{\@IEEEeqnarrayTHEstrutdepth}% +\global\@IEEEeqnarrayusemasterstrutfalse% +\fi} + + + +% usage: \IEEEeqnarraystrutsize{height}{depth}[font size commands] +% If called outside the lines of an IEEEeqnarray, sets the height +% and depth of both the master and local struts. If called inside +% an IEEEeqnarray line, sets the height and depth of the local strut +% only and sets the flag to indicate the use of the local strut +% values. If the height or depth is left blank, 0.7\normalbaselineskip +% and 0.3\normalbaselineskip will be used, respectively. +% The optional argument can be used to evaluate the lengths under +% a different font size and styles. If none is specified, the current +% font is used. +% uses scratch registers \skip0, \skip2, \skip3, \dimen0, \dimen2 +\def\IEEEeqnarraystrutsize#1#2{\relax\@ifnextchar[{\@IEEEeqnarraystrutsize{#1}{#2}}{\@IEEEeqnarraystrutsize{#1}{#2}[\relax]}} +\def\@IEEEeqnarraystrutsize#1#2[#3]{\def\@IEEEeqnarraystrutsizeARG{#1}% +\ifx\@IEEEeqnarraystrutsizeARG\@empty% +{\setbox0=\hbox{#3\relax\global\skip3=0.7\normalbaselineskip}}% +\skip0=\skip3\relax% +\else% arg one present +{\setbox0=\hbox{#3\relax\global\skip3=#1\relax}}% +\skip0=\skip3\relax% +\fi% if null arg +\def\@IEEEeqnarraystrutsizeARG{#2}% +\ifx\@IEEEeqnarraystrutsizeARG\@empty% +{\setbox0=\hbox{#3\relax\global\skip3=0.3\normalbaselineskip}}% +\skip2=\skip3\relax% +\else% arg two present +{\setbox0=\hbox{#3\relax\global\skip3=#2\relax}}% +\skip2=\skip3\relax% +\fi% if null arg +% remove stretchability, just to be safe +\dimen0\skip0\relax% +\dimen2\skip2\relax% +% dimen0 = height, dimen2 = depth +\if@IEEEeqnarrayISinner% inner does not touch master strut size +\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}% +\@IEEEeqnarrayusemasterstrutfalse% do not use master +\else% outer, have to set master strut too +\edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}% +\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}% +\@IEEEeqnarrayusemasterstruttrue% use master strut +\fi} + + +% usage: \IEEEeqnarraystrutsizeadd{added height}{added depth}[font size commands] +% If called outside the lines of an IEEEeqnarray, adds the given height +% and depth to both the master and local struts. +% If called inside an IEEEeqnarray line, adds the given height and depth +% to the local strut only and sets the flag to indicate the use +% of the local strut values. +% In both cases, if a height or depth is left blank, 0pt is used instead. +% The optional argument can be used to evaluate the lengths under +% a different font size and styles. If none is specified, the current +% font is used. +% uses scratch registers \skip0, \skip2, \skip3, \dimen0, \dimen2 +\def\IEEEeqnarraystrutsizeadd#1#2{\relax\@ifnextchar[{\@IEEEeqnarraystrutsizeadd{#1}{#2}}{\@IEEEeqnarraystrutsizeadd{#1}{#2}[\relax]}} +\def\@IEEEeqnarraystrutsizeadd#1#2[#3]{\def\@IEEEeqnarraystrutsizearg{#1}% +\ifx\@IEEEeqnarraystrutsizearg\@empty% +\skip0=0pt\relax% +\else% arg one present +{\setbox0=\hbox{#3\relax\global\skip3=#1}}% +\skip0=\skip3\relax% +\fi% if null arg +\def\@IEEEeqnarraystrutsizearg{#2}% +\ifx\@IEEEeqnarraystrutsizearg\@empty% +\skip2=0pt\relax% +\else% arg two present +{\setbox0=\hbox{#3\relax\global\skip3=#2}}% +\skip2=\skip3\relax% +\fi% if null arg +% remove stretchability, just to be safe +\dimen0\skip0\relax% +\dimen2\skip2\relax% +% dimen0 = height, dimen2 = depth +\if@IEEEeqnarrayISinner% inner does not touch master strut size +% get local strut size +\expandafter\skip0=\@IEEEeqnarrayTHEstrutheight\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEstrutdepth\relax% +% add it to the user supplied values +\advance\dimen0 by \skip0\relax% +\advance\dimen2 by \skip2\relax% +% update the local strut size +\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}% +\@IEEEeqnarrayusemasterstrutfalse% do not use master +\else% outer, have to set master strut too +% get master strut size +\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax% +% add it to the user supplied values +\advance\dimen0 by \skip0\relax% +\advance\dimen2 by \skip2\relax% +% update the local and master strut sizes +\edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}% +\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}% +\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}% +\@IEEEeqnarrayusemasterstruttrue% use master strut +\fi} + + +% allow user a way to see the struts +\newif\ifIEEEvisiblestruts +\IEEEvisiblestrutsfalse + +% inserts an invisible strut using the master or local strut values +% uses scratch registers \skip0, \skip2, \dimen0, \dimen2 +\def\@IEEEeqnarrayinsertstrut{\relax% +\if@IEEEeqnarrayusemasterstrut +% get master strut size +\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax% +\else% +% get local strut size +\expandafter\skip0=\@IEEEeqnarrayTHEstrutheight\relax% +\expandafter\skip2=\@IEEEeqnarrayTHEstrutdepth\relax% +\fi% +% remove stretchability, probably not needed +\dimen0\skip0\relax% +\dimen2\skip2\relax% +% dimen0 = height, dimen2 = depth +% allow user to see struts if desired +\ifIEEEvisiblestruts% +\vrule width0.2pt height\dimen0 depth\dimen2\relax% +\else% +\vrule width0pt height\dimen0 depth\dimen2\relax\fi} + + +% creates an invisible strut, useable even outside \IEEEeqnarray +% if \IEEEvisiblestrutstrue, the strut will be visible and 0.2pt wide. +% usage: \IEEEstrut[height][depth][font size commands] +% default is \IEEEstrut[0.7\normalbaselineskip][0.3\normalbaselineskip][\relax] +% blank arguments inherit the default values +% uses \dimen0, \dimen2, \skip0, \skip2 +\def\IEEEstrut{\relax\@ifnextchar[{\@IEEEstrut}{\@IEEEstrut[0.7\normalbaselineskip]}} +\def\@IEEEstrut[#1]{\relax\@ifnextchar[{\@@IEEEstrut[#1]}{\@@IEEEstrut[#1][0.3\normalbaselineskip]}} +\def\@@IEEEstrut[#1][#2]{\relax\@ifnextchar[{\@@@IEEEstrut[#1][#2]}{\@@@IEEEstrut[#1][#2][\relax]}} +\def\@@@IEEEstrut[#1][#2][#3]{\mbox{#3\relax% +\def\@IEEEstrutARG{#1}% +\ifx\@IEEEstrutARG\@empty% +\skip0=0.7\normalbaselineskip\relax% +\else% +\skip0=#1\relax% +\fi% +\def\@IEEEstrutARG{#2}% +\ifx\@IEEEstrutARG\@empty% +\skip2=0.3\normalbaselineskip\relax% +\else% +\skip2=#2\relax% +\fi% +% remove stretchability, probably not needed +\dimen0\skip0\relax% +\dimen2\skip2\relax% +\ifIEEEvisiblestruts% +\vrule width0.2pt height\dimen0 depth\dimen2\relax% +\else% +\vrule width0.0pt height\dimen0 depth\dimen2\relax\fi}} + + +% enables strut mode by setting a default strut size and then zeroing the +% \baselineskip, \lineskip, \lineskiplimit and \jot +\def\IEEEeqnarraystrutmode{\IEEEeqnarraystrutsize{0.7\normalbaselineskip}{0.3\normalbaselineskip}[\relax]% +\baselineskip=0pt\lineskip=0pt\lineskiplimit=0pt\jot=0pt} + + +% equation and subequation forms to use to setup hyperref's \@currentHref +\def\@IEEEtheHrefequation{equation.\theHequation} +\def\@IEEEtheHrefsubequation{equation.\theHequation\alph{IEEEsubequation}} + + +\def\IEEEeqnarray{\@IEEEeqnumpersisttrue\@IEEEsubeqnumpersistfalse\@IEEEeqnarray} +\def\endIEEEeqnarray{\end@IEEEeqnarray} + +\@namedef{IEEEeqnarray*}{\@IEEEeqnumpersistfalse\@IEEEsubeqnumpersistfalse\@IEEEeqnarray} +\@namedef{endIEEEeqnarray*}{\end@IEEEeqnarray} + + +% \IEEEeqnarray is an enhanced \eqnarray. +% The star form defaults to not putting equation numbers at the end of each row. +% usage: \IEEEeqnarray[decl]{cols} +\def\@IEEEeqnarray{\relax\@ifnextchar[{\@@IEEEeqnarray}{\@@IEEEeqnarray[\relax]}} +% We have to be careful here to normalize catcodes just before acquiring the +% cols as that specification may contain punctuation which could be subject +% to document catcode changes. +\def\@@IEEEeqnarray[#1]{\begingroup\IEEEnormalcatcodes\@@@IEEEeqnarray[#1]} +\def\@@@IEEEeqnarray[#1]#2{\endgroup + % default to showing the equation number or not based on whether or not + % the star form was involked + \if@IEEEeqnumpersist\global\@eqnswtrue + \else% not the star form + \global\@eqnswfalse + \fi% if star form + % provide a basic hyperref \theHequation if this has not already been setup (hyperref not loaded, or no section counter) + \@ifundefined{theHequation}{\def\theHequation{\arabic{equation}}}{}\relax + % provide dummy hyperref commands in case hyperref is not loaded + \providecommand{\Hy@raisedlink}[1]{}\relax + \providecommand{\hyper@anchorstart}[1]{}\relax + \providecommand{\hyper@anchorend}{}\relax + \providecommand{\@currentHref}{}\relax + \@IEEEeqnumpreadvfalse% reset eqnpreadv flag + \@IEEEsubeqnumpreadvfalse% reset subeqnpreadv flag + \@IEEEeqnarrayISinnerfalse% not yet within the lines of the halign + \@IEEEeqnarraystrutsize{0pt}{0pt}[\relax]% turn off struts by default + \@IEEEeqnarrayusemasterstruttrue% use master strut till user asks otherwise + \IEEEvisiblestrutsfalse% diagnostic mode defaults to off + % no extra space unless the user specifically requests it + \lineskip=0pt\relax + \lineskiplimit=0pt\relax + \baselineskip=\normalbaselineskip\relax% + \jot=\IEEEnormaljot\relax% + \mathsurround\z@\relax% no extra spacing around math + \@advanceIEEEeqncolcnttrue% advance the col counter for each col the user uses, + % used in \IEEEeqnarraymulticol and in the preamble build + %V1.8 Here we preadvance to the next equation number. + % If the user later wants a continued subequation, we can roll back. + \global\@IEEEsubeqnnumrollback=\c@IEEEsubequation% + \stepcounter{equation}\@IEEEeqnumpreadvtrue% advance equation counter before first line + \setcounter{IEEEsubequation}{0}% no subequation yet + \let\@IEEEcurrentlabelsave\@currentlabel% save current label as we later change it globally + \let\@IEEEcurrentHrefsave\@currentHref% save current href label as we later change it globally + \def\@currentlabel{\p@equation\theequation}% redefine the ref label + \def\@currentHref{\@IEEEtheHrefequation}% setup hyperref label + \IEEEeqnarraydecl\relax% allow a way for the user to make global overrides + #1\relax% allow user to override defaults + \let\\\@IEEEeqnarraycr% replace newline with one that can put in eqn. numbers + \global\@IEEEeqncolcnt\z@% col. count = 0 for first line + \@IEEEbuildpreamble{#2}\relax% build the preamble and put it into \@IEEEtrantmptoksA + % put in the column for the equation number + \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi% col separator for those after the first + \toks0={##}% + % advance the \@IEEEeqncolcnt for the isolation col, this helps with error checking + \@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}% + % add the isolation column + \@IEEEappendtoksA{\tabskip\z@skip\bgroup\the\toks0\egroup}% + % advance the \@IEEEeqncolcnt for the equation number col, this helps with error checking + \@IEEEappendtoksA{&\global\advance\@IEEEeqncolcnt by 1\relax}% + % add the equation number col to the preamble + \@IEEEappendtoksA{\tabskip\z@skip\hb@xt@\z@\bgroup\hss\the\toks0\egroup}% + % note \@IEEEeqnnumcols does not count the equation col or isolation col + % set the starting tabskip glue as determined by the preamble build + \tabskip=\@IEEEBPstartglue\relax + % begin the display alignment + \@IEEEeqnarrayISinnertrue% commands are now within the lines + $$\everycr{}\halign to\displaywidth\bgroup + % "exspand" the preamble + \span\the\@IEEEtrantmptoksA\cr} + +% enter isolation/strut column (or the next column if the user did not use +% every column), record the strut status, complete the columns, do the strut if needed, +% restore counters (to backout any equation setup for a next line that was never used) +% to their correct values and exit +\def\end@IEEEeqnarray{\@IEEEeqnarrayglobalizestrutstatus&\@@IEEEeqnarraycr\egroup +\if@IEEEsubeqnumpreadv\global\advance\c@IEEEsubequation\m@ne\fi +\if@IEEEeqnumpreadv\global\advance\c@equation\m@ne\global\c@IEEEsubequation=\@IEEEsubeqnnumrollback\fi +\global\let\@currentlabel\@IEEEcurrentlabelsave% restore current label +\global\let\@currentHref\@IEEEcurrentHrefsave% restore current href label +$$\@ignoretrue} + + +% IEEEeqnarray uses a modifed \\ instead of the plain \cr to +% end rows. This allows for things like \\*[vskip amount] +% These "cr" macros are modified versions of those for LaTeX2e's eqnarray +% the {\ifnum0=`} braces must be kept away from the last column to avoid +% altering spacing of its math, so we use & to advance to the next column +% as there is an isolation/strut column after the user's columns +\def\@IEEEeqnarraycr{\@IEEEeqnarrayglobalizestrutstatus&% save strut status and advance to next column + {\ifnum0=`}\fi + \@ifstar{% + \global\@eqpen\@M\@IEEEeqnarrayYCR + }{% + \global\@eqpen\interdisplaylinepenalty \@IEEEeqnarrayYCR + }% +} + +\def\@IEEEeqnarrayYCR{\@testopt\@IEEEeqnarrayXCR\z@skip} + +\def\@IEEEeqnarrayXCR[#1]{% + \ifnum0=`{\fi}% + \@@IEEEeqnarraycr + \noalign{\penalty\@eqpen\vskip\jot\vskip #1\relax}}% + +\def\@@IEEEeqnarraycr{\@IEEEtrantmptoksA={}% clear token register + \advance\@IEEEeqncolcnt by -1\relax% adjust col count because of the isolation column + \ifnum\@IEEEeqncolcnt>\@IEEEeqnnumcols\relax + \@IEEEclspkgerror{Too many columns within the IEEEeqnarray\MessageBreak + environment}% + {Use fewer \string &'s or put more columns in the IEEEeqnarray column\MessageBreak + specifications.}\relax% + \else + \loop% add cols if the user did not use them all + \ifnum\@IEEEeqncolcnt<\@IEEEeqnnumcols\relax + \@IEEEappendtoksA{&}% + \advance\@IEEEeqncolcnt by 1\relax% update the col count + \repeat + % this number of &'s will take us the the isolation column + \fi + % execute the &'s + \the\@IEEEtrantmptoksA% + % handle the strut/isolation column + \@IEEEeqnarrayinsertstrut% do the strut if needed + \@IEEEeqnarraystrutreset% reset the strut system for next line or IEEEeqnarray + &% and enter the equation number column + \if@eqnsw% only if we display something + \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}% start a hyperref anchor + \global\@IEEEeqnumpreadvfalse\relax% displaying an equation number means + \global\@IEEEsubeqnumpreadvfalse\relax% the equation counters point to valid equations + % V1.8 Here we setup the counters, currentlabel and status for what would be the *next* + % equation line as would be the case under the current settings. However, there are two problems. + % One problem is that there might not ever be a next line. The second problem is that the user + % may later alter the meaning of a line with commands such as \IEEEyessubnumber. So, to handle + % these cases we have to record the current values of the (sub)equation counters and revert back + % to them if the next line is changed or never comes. The \if@IEEEeqnumpreadv, \if@IEEEsubeqnumpreadv + % and \@IEEEsubeqnnumrollback stuff tracks this. + % The logic to handle all this is surprisingly complex, but a nice feature of the approach here is + % that the equation counters and labels remain valid for what the line would be unless a + % \IEEEyessubnumber et al. later changes it. So, any hyperref links are always correct. + \ifnum\c@IEEEsubequation>0\relax% handle subequation + \theIEEEsubequationdis\relax + \if@IEEEsubeqnumpersist% setup for default type of next line + \stepcounter{IEEEsubequation}\global\@IEEEsubeqnumpreadvtrue\relax + \gdef\@currentlabel{\p@IEEEsubequation\theIEEEsubequation}\relax + \gdef\@currentHref{\@IEEEtheHrefsubequation}% setup hyperref label + \else + % if no subeqnum persist, go ahead and setup for a new equation number + \global\@IEEEsubeqnnumrollback=\c@IEEEsubequation + \stepcounter{equation}\global\@IEEEeqnumpreadvtrue\relax + \setcounter{IEEEsubequation}{0}\gdef\@currentlabel{\p@equation\theequation}\relax + \gdef\@currentHref{\@IEEEtheHrefequation}% setup hyperref label + \fi + \else% display a standard equation number + \theequationdis\relax + \setcounter{IEEEsubequation}{0}\relax% not really needed + \if@IEEEsubeqnumpersist% setup for default type of next line + % subequations that follow plain equations carry the same equation number e.g, 5, 5a rather than 5, 6a + \stepcounter{IEEEsubequation}\global\@IEEEsubeqnumpreadvtrue\relax + \gdef\@currentlabel{\p@IEEEsubequation\theIEEEsubequation}\relax + \gdef\@currentHref{\@IEEEtheHrefsubequation}% setup hyperref label + \else + % if no subeqnum persist, go ahead and setup for a new equation number + \global\@IEEEsubeqnnumrollback=\c@IEEEsubequation + \stepcounter{equation}\global\@IEEEeqnumpreadvtrue\relax + \setcounter{IEEEsubequation}{0}\gdef\@currentlabel{\p@equation\theequation}\relax + \gdef\@currentHref{\@IEEEtheHrefequation}% setup hyperref label + \fi + \fi% + \Hy@raisedlink{\hyper@anchorend}% end hyperref anchor + \fi% fi only if we display something + % reset the flags to indicate the default preferences of the display of equation numbers + \if@IEEEeqnumpersist\global\@eqnswtrue\else\global\@eqnswfalse\fi + \if@IEEEsubeqnumpersist\global\@eqnswtrue\fi% ditto for the subequation flag + % reset the number of columns the user actually used + \global\@IEEEeqncolcnt\z@\relax + % the real end of the line + \cr} + + + + + +% \IEEEeqnarraybox is like \IEEEeqnarray except the box form puts everything +% inside a vtop, vbox, or vcenter box depending on the letter in the second +% optional argument (t,b,c). Vbox is the default. Unlike \IEEEeqnarray, +% equation numbers are not displayed and \IEEEeqnarraybox can be nested. +% \IEEEeqnarrayboxm is for math mode (like \array) and does not put the vbox +% within an hbox. +% \IEEEeqnarrayboxt is for text mode (like \tabular) and puts the vbox within +% a \hbox{$ $} construct. +% \IEEEeqnarraybox will auto detect whether to use \IEEEeqnarrayboxm or +% \IEEEeqnarrayboxt depending on the math mode. +% The third optional argument specifies the width this box is to be set to - +% natural width is the default. +% The * forms do not add \jot line spacing +% usage: \IEEEeqnarraybox[decl][pos][width]{cols} +\def\IEEEeqnarrayboxm{\@IEEEeqnarrayboxnojotfalse\@IEEEeqnarrayboxHBOXSWfalse\@IEEEeqnarraybox} +\def\endIEEEeqnarrayboxm{\end@IEEEeqnarraybox} +\@namedef{IEEEeqnarrayboxm*}{\@IEEEeqnarrayboxnojottrue\@IEEEeqnarrayboxHBOXSWfalse\@IEEEeqnarraybox} +\@namedef{endIEEEeqnarrayboxm*}{\end@IEEEeqnarraybox} + +\def\IEEEeqnarrayboxt{\@IEEEeqnarrayboxnojotfalse\@IEEEeqnarrayboxHBOXSWtrue\@IEEEeqnarraybox} +\def\endIEEEeqnarrayboxt{\end@IEEEeqnarraybox} +\@namedef{IEEEeqnarrayboxt*}{\@IEEEeqnarrayboxnojottrue\@IEEEeqnarrayboxHBOXSWtrue\@IEEEeqnarraybox} +\@namedef{endIEEEeqnarrayboxt*}{\end@IEEEeqnarraybox} + +\def\IEEEeqnarraybox{\@IEEEeqnarrayboxnojotfalse\ifmmode\@IEEEeqnarrayboxHBOXSWfalse\else\@IEEEeqnarrayboxHBOXSWtrue\fi% +\@IEEEeqnarraybox} +\def\endIEEEeqnarraybox{\end@IEEEeqnarraybox} + +\@namedef{IEEEeqnarraybox*}{\@IEEEeqnarrayboxnojottrue\ifmmode\@IEEEeqnarrayboxHBOXSWfalse\else\@IEEEeqnarrayboxHBOXSWtrue\fi% +\@IEEEeqnarraybox} +\@namedef{endIEEEeqnarraybox*}{\end@IEEEeqnarraybox} + +% flag to indicate if the \IEEEeqnarraybox needs to put things into an hbox{$ $} +% for \vcenter in non-math mode +\newif\if@IEEEeqnarrayboxHBOXSW% +\@IEEEeqnarrayboxHBOXSWfalse + +\def\@IEEEeqnarraybox{\relax\@ifnextchar[{\@@IEEEeqnarraybox}{\@@IEEEeqnarraybox[\relax]}} +% We have to be careful here to normalize catcodes just before acquiring the +% cols as that specification may contain punctuation which could be subject +% to document catcode changes. +\def\@@IEEEeqnarraybox[#1]{\relax\begingroup\IEEEnormalcatcodes\@ifnextchar[{\@@@IEEEeqnarraybox[#1]}{\@@@IEEEeqnarraybox[#1][b]}} +\def\@@@IEEEeqnarraybox[#1][#2]{\relax\@ifnextchar[{\@@@@IEEEeqnarraybox[#1][#2]}{\@@@@IEEEeqnarraybox[#1][#2][\relax]}} + +% #1 = decl; #2 = t,b,c; #3 = width, #4 = col specs +\def\@@@@IEEEeqnarraybox[#1][#2][#3]#4{\endgroup\@IEEEeqnarrayISinnerfalse % not yet within the lines of the halign + \@IEEEeqnarraymasterstrutsave% save current master strut values + \@IEEEeqnarraystrutsize{0pt}{0pt}[\relax]% turn off struts by default + \@IEEEeqnarrayusemasterstruttrue% use master strut till user asks otherwise + \IEEEvisiblestrutsfalse% diagnostic mode defaults to off + % no extra space unless the user specifically requests it + \lineskip=0pt\relax% + \lineskiplimit=0pt\relax% + \baselineskip=\normalbaselineskip\relax% + \jot=\IEEEnormaljot\relax% + \mathsurround\z@\relax% no extra spacing around math + % the default end glues are zero for an \IEEEeqnarraybox + \edef\@IEEEeqnarraycolSEPdefaultstart{\@IEEEeqnarraycolSEPzero}% default start glue + \edef\@IEEEeqnarraycolSEPdefaultend{\@IEEEeqnarraycolSEPzero}% default end glue + \edef\@IEEEeqnarraycolSEPdefaultmid{\@IEEEeqnarraycolSEPzero}% default inter-column glue + \@advanceIEEEeqncolcntfalse% do not advance the col counter for each col the user uses, + % used in \IEEEeqnarraymulticol and in the preamble build + \IEEEeqnarrayboxdecl\relax% allow a way for the user to make global overrides + #1\relax% allow user to override defaults + \let\\\@IEEEeqnarrayboxcr% replace newline with one that allows optional spacing + \@IEEEbuildpreamble{#4}\relax% build the preamble and put it into \@IEEEtrantmptoksA + % add an isolation column to the preamble to stop \\'s {} from getting into the last col + \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi% col separator for those after the first + \toks0={##}% + % add the isolation column to the preamble + \@IEEEappendtoksA{\tabskip\z@skip\bgroup\the\toks0\egroup}% + % set the starting tabskip glue as determined by the preamble build + \tabskip=\@IEEEBPstartglue\relax + % begin the alignment + \everycr{}% + % use only the very first token to determine the positioning + \@IEEEextracttoken{#2}\relax + \ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: IEEEeqnarraybox position specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax + \fi + % \@IEEEextractedtoken has the first token, the rest are ignored + % if we need to put things into and hbox and go into math mode, do so now + \if@IEEEeqnarrayboxHBOXSW \leavevmode \hbox \bgroup $\fi% + % use the appropriate vbox type + \if\@IEEEextractedtoken t\relax\vtop\else\if\@IEEEextractedtoken c\relax% + \vcenter\else\vbox\fi\fi\bgroup% + \@IEEEeqnarrayISinnertrue% commands are now within the lines + \ifx#3\relax\halign\else\halign to #3\relax\fi% + \bgroup + % "exspand" the preamble + \span\the\@IEEEtrantmptoksA\cr} + +% carry strut status and enter the isolation/strut column, +% exit from math mode if needed, and exit +\def\end@IEEEeqnarraybox{\@IEEEeqnarrayglobalizestrutstatus% carry strut status +&% enter isolation/strut column +\@IEEEeqnarrayinsertstrut% do strut if needed +\@IEEEeqnarraymasterstrutrestore% restore the previous master strut values +% reset the strut system for next IEEEeqnarray +% (sets local strut values back to previous master strut values) +\@IEEEeqnarraystrutreset% +% ensure last line, exit from halign, close vbox +\crcr\egroup\egroup% +% exit from math mode and close hbox if needed +\if@IEEEeqnarrayboxHBOXSW $\egroup\fi} + + + +% IEEEeqnarraybox uses a modifed \\ instead of the plain \cr to +% end rows. This allows for things like \\[vskip amount] +% This "cr" macros are modified versions those for LaTeX2e's eqnarray +% For IEEEeqnarraybox, \\* is the same as \\ +% the {\ifnum0=`} braces must be kept away from the last column to avoid +% altering spacing of its math, so we use & to advance to the isolation/strut column +% carry strut status into isolation/strut column +\def\@IEEEeqnarrayboxcr{\@IEEEeqnarrayglobalizestrutstatus% carry strut status +&% enter isolation/strut column +\@IEEEeqnarrayinsertstrut% do strut if needed +% reset the strut system for next line or IEEEeqnarray +\@IEEEeqnarraystrutreset% +{\ifnum0=`}\fi% +\@ifstar{\@IEEEeqnarrayboxYCR}{\@IEEEeqnarrayboxYCR}} + +% test and setup the optional argument to \\[] +\def\@IEEEeqnarrayboxYCR{\@testopt\@IEEEeqnarrayboxXCR\z@skip} + +% IEEEeqnarraybox does not automatically increase line spacing by \jot +\def\@IEEEeqnarrayboxXCR[#1]{\ifnum0=`{\fi}% +\cr\noalign{\if@IEEEeqnarrayboxnojot\else\vskip\jot\fi\vskip#1\relax}} + + + +% usage: \@IEEEbuildpreamble{column specifiers} +% starts the halign preamble build +% the assembled preamble is put in \@IEEEtrantmptoksA +\def\@IEEEbuildpreamble#1{\@IEEEtrantmptoksA={}% clear token register +\let\@IEEEBPcurtype=u%current column type is not yet known +\let\@IEEEBPprevtype=s%the previous column type was the start +\let\@IEEEBPnexttype=u%next column type is not yet known +% ensure these are valid +\def\@IEEEBPcurglue={0pt plus 0pt minus 0pt}% +\def\@IEEEBPcurcolname{@IEEEdefault}% name of current column definition +% currently acquired numerically referenced glue +% use a name that is easier to remember +\let\@IEEEBPcurnum=\@IEEEtrantmpcountA% +\@IEEEBPcurnum=0% +% tracks number of columns in the preamble +\@IEEEeqnnumcols=0% +% record the default end glues +\edef\@IEEEBPstartglue{\@IEEEeqnarraycolSEPdefaultstart}% +\edef\@IEEEBPendglue{\@IEEEeqnarraycolSEPdefaultend}% +\edef\@IEEEedefMACRO{#1}\relax% fully expand the preamble to support macro containers +% now parse the user's column specifications +% \ignorespaces is used as a delimiter, need at least one trailing \relax because +% \@@IEEEbuildpreamble looks into the future +\expandafter\@@IEEEbuildpreamble\@IEEEedefMACRO\ignorespaces\relax\relax} + + +% usage: \@@IEEEbuildpreamble{current column}{next column} +% parses and builds the halign preamble +\def\@@IEEEbuildpreamble#1#2{\let\@@nextIEEEbuildpreamble=\@@IEEEbuildpreamble% +% use only the very first token to check the end +\@IEEEextracttokengroups{#1}\relax +\ifx\@IEEEextractedfirsttoken\ignorespaces\let\@@nextIEEEbuildpreamble=\@@IEEEfinishpreamble\else% +% identify current and next token type +\@IEEEgetcoltype{#1}{\@IEEEBPcurtype}{1}% current, error on invalid +\@IEEEgetcoltype{#2}{\@IEEEBPnexttype}{0}% next, no error on invalid next +% if curtype is a glue, get the glue def +\if\@IEEEBPcurtype g\@IEEEgetcurglue{#1}{\@IEEEBPcurglue}\fi% +% if curtype is a column, get the column def and set the current column name +\if\@IEEEBPcurtype c\@IEEEgetcurcol{#1}\fi% +% if curtype is a numeral, acquire the user defined glue +\if\@IEEEBPcurtype n\@IEEEprocessNcol{#1}\fi% +% process the acquired glue +\if\@IEEEBPcurtype g\@IEEEprocessGcol\fi% +% process the acquired col +\if\@IEEEBPcurtype c\@IEEEprocessCcol\fi% +% ready prevtype for next col spec. +\let\@IEEEBPprevtype=\@IEEEBPcurtype% +% be sure and put back the future token(s) as a group +\fi\@@nextIEEEbuildpreamble{#2}} + + +% usage: \@@IEEEfinishpreamble{discarded} +% executed just after preamble build is completed +% warn about zero cols, and if prevtype type = u, put in end tabskip glue +% argument is not used +\def\@@IEEEfinishpreamble#1{\ifnum\@IEEEeqnnumcols<1\relax +\@IEEEclspkgerror{No column specifiers declared for IEEEeqnarray}% +{At least one column type must be declared for each IEEEeqnarray.}% +\fi%num cols less than 1 +%if last type undefined, set default end tabskip glue +\if\@IEEEBPprevtype u\@IEEEappendtoksA{\tabskip=\@IEEEBPendglue}\fi} + + +% usage: \@IEEEgetcoltype{col specifier}{\output}{error more} +% Identify and return the column specifier's type code in the given +% \output macro: +% n = number +% g = glue (any other char in catagory 12) +% c = letter +% e = \ignorespaces (end of sequence) +% u = undefined +% error mode: 0 = no error message, 1 = error on invalid char +\def\@IEEEgetcoltype#1#2#3{% +% use only the very first token to determine the type +\@IEEEextracttoken{#1}\relax +% \@IEEEextractedtoken has the first token, the rest are discarded +\let#2=u\relax% assume invalid until know otherwise +\ifx\@IEEEextractedtoken\ignorespaces\let#2=e\else +\ifcat\@IEEEextractedtoken\relax\else% screen out control sequences +\if0\@IEEEextractedtoken\let#2=n\else +\if1\@IEEEextractedtoken\let#2=n\else +\if2\@IEEEextractedtoken\let#2=n\else +\if3\@IEEEextractedtoken\let#2=n\else +\if4\@IEEEextractedtoken\let#2=n\else +\if5\@IEEEextractedtoken\let#2=n\else +\if6\@IEEEextractedtoken\let#2=n\else +\if7\@IEEEextractedtoken\let#2=n\else +\if8\@IEEEextractedtoken\let#2=n\else +\if9\@IEEEextractedtoken\let#2=n\else +\ifcat,\@IEEEextractedtoken\let#2=g\relax +\else\ifcat a\@IEEEextractedtoken\let#2=c\relax\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi +\if#2u\relax +\if0\noexpand#3\relax\else\@IEEEclspkgerror{Invalid character in column specifications}% +{Only letters, numerals and certain other symbols are allowed \MessageBreak +as IEEEeqnarray column specifiers.}\fi\fi} + + +% usage: \@IEEEgetcurcol{col specifier} +% verify the letter referenced column exists +% and return its name in \@IEEEBPcurcolname +% if column specifier is invalid, use the default column @IEEEdefault +\def\@IEEEgetcurcol#1{\expandafter\ifx\csname @IEEEeqnarraycolDEF#1\endcsname\@IEEEeqnarraycolisdefined% +\def\@IEEEBPcurcolname{#1}\else% invalid column name +\@IEEEclspkgerror{Invalid column type "#1" in column specifications.\MessageBreak +Using a default centering column instead}% +{You must define IEEEeqnarray column types before use.}% +\def\@IEEEBPcurcolname{@IEEEdefault}\fi} + + +% usage: \@IEEEgetcurglue{glue specifier}{\output} +% identify the predefined (punctuation) glue value +% and return it in the given output macro +\def\@IEEEgetcurglue#1#2{% +% ! = \! (neg small) -0.16667em (-3/18 em) +% , = \, (small) 0.16667em ( 3/18 em) +% : = \: (med) 0.22222em ( 4/18 em) +% ; = \; (large) 0.27778em ( 5/18 em) +% ' = \quad 1em +% " = \qquad 2em +% . = 0.5\arraycolsep +% / = \arraycolsep +% ? = 2\arraycolsep +% * = 1fil +% + = \@IEEEeqnarraycolSEPcenter +% - = \@IEEEeqnarraycolSEPzero +% Note that all em values are referenced to the math font (textfont2) fontdimen6 +% value for 1em. +% +% use only the very first token to determine the type +\@IEEEextracttoken{#1}\relax +\ifx\@IEEEextractedtokensdiscarded\@empty\else + \typeout{** WARNING: IEEEeqnarray predefined inter-column glue type specifiers after the first in `\@IEEEextracttokenarg' ignored (line \the\inputlineno).}\relax +\fi +% get the math font 1em value +% LaTeX2e's NFSS2 does not preload the fonts, but \IEEEeqnarray needs +% to gain access to the math (\textfont2) font's spacing parameters. +% So we create a bogus box here that uses the math font to ensure +% that \textfont2 is loaded and ready. If this is not done, +% the \textfont2 stuff here may not work. +% Thanks to Bernd Raichle for his 1997 post on this topic. +{\setbox0=\hbox{$\displaystyle\relax$}}% +% fontdimen6 has the width of 1em (a quad). +\@IEEEtrantmpdimenA=\fontdimen6\textfont2\relax% +% identify the glue value based on the first token +% we discard anything after the first +\if!\@IEEEextractedtoken\@IEEEtrantmpdimenA=-0.16667\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else +\if,\@IEEEextractedtoken\@IEEEtrantmpdimenA=0.16667\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else +\if:\@IEEEextractedtoken\@IEEEtrantmpdimenA=0.22222\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else +\if;\@IEEEextractedtoken\@IEEEtrantmpdimenA=0.27778\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else +\if'\@IEEEextractedtoken\@IEEEtrantmpdimenA=1\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else +\if"\@IEEEextractedtoken\@IEEEtrantmpdimenA=2\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else +\if.\@IEEEextractedtoken\@IEEEtrantmpdimenA=0.5\arraycolsep\edef#2{\the\@IEEEtrantmpdimenA}\else +\if/\@IEEEextractedtoken\edef#2{\the\arraycolsep}\else +\if?\@IEEEextractedtoken\@IEEEtrantmpdimenA=2\arraycolsep\edef#2{\the\@IEEEtrantmpdimenA}\else +\if *\@IEEEextractedtoken\edef#2{0pt plus 1fil minus 0pt}\else +\if+\@IEEEextractedtoken\edef#2{\@IEEEeqnarraycolSEPcenter}\else +\if-\@IEEEextractedtoken\edef#2{\@IEEEeqnarraycolSEPzero}\else +\edef#2{\@IEEEeqnarraycolSEPzero}% +\@IEEEclspkgerror{Invalid predefined inter-column glue type "#1" in\MessageBreak +column specifications. Using a default value of\MessageBreak +0pt instead}% +{Only !,:;'"./?*+ and - are valid predefined glue types in the\MessageBreak +IEEEeqnarray column specifications.}\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} + + +% usage: \@IEEEprocessNcol{digit} +% process a numerical digit from the column specification +% and look up the corresponding user defined glue value +% can transform current type from n to g or a as the user defined glue is acquired +\def\@IEEEprocessNcol#1{\if\@IEEEBPprevtype g% +\@IEEEclspkgerror{Back-to-back inter-column glue specifiers in column\MessageBreak +specifications. Ignoring consecutive glue specifiers\MessageBreak +after the first}% +{You cannot have two or more glue types next to each other\MessageBreak +in the IEEEeqnarray column specifications.}% +\let\@IEEEBPcurtype=a% abort this glue, future digits will be discarded +\@IEEEBPcurnum=0\relax% +\else% if we previously aborted a glue +\if\@IEEEBPprevtype a\@IEEEBPcurnum=0\let\@IEEEBPcurtype=a%maintain digit abortion +\else%acquire this number +% save the previous type before the numerical digits started +\if\@IEEEBPprevtype n\else\let\@IEEEBPprevsavedtype=\@IEEEBPprevtype\fi% +\multiply\@IEEEBPcurnum by 10\relax% +\advance\@IEEEBPcurnum by #1\relax% add in number, \relax is needed to stop TeX's number scan +\if\@IEEEBPnexttype n\else%close acquisition +\expandafter\ifx\csname @IEEEeqnarraycolSEPDEF\expandafter\romannumeral\number\@IEEEBPcurnum\endcsname\@IEEEeqnarraycolisdefined% +\edef\@IEEEBPcurglue{\csname @IEEEeqnarraycolSEP\expandafter\romannumeral\number\@IEEEBPcurnum\endcsname}% +\else%user glue not defined +\@IEEEclspkgerror{Invalid user defined inter-column glue type "\number\@IEEEBPcurnum" in\MessageBreak +column specifications. Using a default value of\MessageBreak +0pt instead}% +{You must define all IEEEeqnarray numerical inter-column glue types via\MessageBreak +\string\IEEEeqnarraydefcolsep \space before they are used in column specifications.}% +\edef\@IEEEBPcurglue{\@IEEEeqnarraycolSEPzero}% +\fi% glue defined or not +\let\@IEEEBPcurtype=g% change the type to reflect the acquired glue +\let\@IEEEBPprevtype=\@IEEEBPprevsavedtype% restore the prev type before this number glue +\@IEEEBPcurnum=0\relax%ready for next acquisition +\fi%close acquisition, get glue +\fi%discard or acquire number +\fi%prevtype glue or not +} + + +% process an acquired glue +% add any acquired column/glue pair to the preamble +\def\@IEEEprocessGcol{\if\@IEEEBPprevtype a\let\@IEEEBPcurtype=a%maintain previous glue abortions +\else +% if this is the start glue, save it, but do nothing else +% as this is not used in the preamble, but before +\if\@IEEEBPprevtype s\edef\@IEEEBPstartglue{\@IEEEBPcurglue}% +\else%not the start glue +\if\@IEEEBPprevtype g%ignore if back to back glues +\@IEEEclspkgerror{Back-to-back inter-column glue specifiers in column\MessageBreak +specifications. Ignoring consecutive glue specifiers\MessageBreak +after the first}% +{You cannot have two or more glue types next to each other\MessageBreak +in the IEEEeqnarray column specifications.}% +\let\@IEEEBPcurtype=a% abort this glue +\else% not a back to back glue +\if\@IEEEBPprevtype c\relax% if the previoustype was a col, add column/glue pair to preamble +\ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi +\toks0={##}% +% make preamble advance col counter if this environment needs this +\if@advanceIEEEeqncolcnt\@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}\fi +% insert the column defintion into the preamble, being careful not to expand +% the column definition +\@IEEEappendtoksA{\tabskip=\@IEEEBPcurglue}% +\@IEEEappendNOEXPANDtoksA{\begingroup\csname @IEEEeqnarraycolPRE}% +\@IEEEappendtoksA{\@IEEEBPcurcolname}% +\@IEEEappendNOEXPANDtoksA{\endcsname}% +\@IEEEappendtoksA{\the\toks0}% +\@IEEEappendNOEXPANDtoksA{\relax\relax\relax\relax\relax% +\relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST}% +\@IEEEappendtoksA{\@IEEEBPcurcolname}% +\@IEEEappendNOEXPANDtoksA{\endcsname\relax\relax\relax\relax\relax% +\relax\relax\relax\relax\relax\endgroup}% +\advance\@IEEEeqnnumcols by 1\relax%one more column in the preamble +\else% error: non-start glue with no pending column +\@IEEEclspkgerror{Inter-column glue specifier without a prior column\MessageBreak +type in the column specifications. Ignoring this glue\MessageBreak +specifier}% +{Except for the first and last positions, glue can be placed only\MessageBreak +between column types.}% +\let\@IEEEBPcurtype=a% abort this glue +\fi% previous was a column +\fi% back-to-back glues +\fi% is start column glue +\fi% prev type not a +} + + +% process an acquired letter referenced column and, if necessary, add it to the preamble +\def\@IEEEprocessCcol{\if\@IEEEBPnexttype g\else +\if\@IEEEBPnexttype n\else +% we have a column followed by something other than a glue (or numeral glue) +% so we must add this column to the preamble now +\ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi%col separator for those after the first +\if\@IEEEBPnexttype e\@IEEEappendtoksA{\tabskip=\@IEEEBPendglue\relax}\else%put in end glue +\@IEEEappendtoksA{\tabskip=\@IEEEeqnarraycolSEPdefaultmid\relax}\fi% or default mid glue +\toks0={##}% +% make preamble advance col counter if this environment needs this +\if@advanceIEEEeqncolcnt\@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}\fi +% insert the column definition into the preamble, being careful not to expand +% the column definition +\@IEEEappendNOEXPANDtoksA{\begingroup\csname @IEEEeqnarraycolPRE}% +\@IEEEappendtoksA{\@IEEEBPcurcolname}% +\@IEEEappendNOEXPANDtoksA{\endcsname}% +\@IEEEappendtoksA{\the\toks0}% +\@IEEEappendNOEXPANDtoksA{\relax\relax\relax\relax\relax% +\relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST}% +\@IEEEappendtoksA{\@IEEEBPcurcolname}% +\@IEEEappendNOEXPANDtoksA{\endcsname\relax\relax\relax\relax\relax% +\relax\relax\relax\relax\relax\endgroup}% +\advance\@IEEEeqnnumcols by 1\relax%one more column in the preamble +\fi%next type not numeral +\fi%next type not glue +} + + +%% +%% END OF IEEEeqnarray DEFINITIONS +%% + + + + + +% set up the running headers and footers +% +% header and footer font and size specifications +\def\@IEEEheaderstyle{\normalfont\scriptsize} +\def\@IEEEfooterstyle{\normalfont\scriptsize} +% +% compsoc uses sans-serif headers and footers +\ifCLASSOPTIONcompsoc + \def\@IEEEheaderstyle{\normalfont\sffamily\scriptsize} + \def\@IEEEfooterstyle{\normalfont\sffamily\scriptsize} +\fi + + +% standard page style, ps@headings +\def\ps@headings{% default to standard twoside headers, no footers +% will change later if the mode requires otherwise +\def\@oddhead{\hbox{}\@IEEEheaderstyle\rightmark\hfil\thepage}\relax +\def\@evenhead{\@IEEEheaderstyle\thepage\hfil\leftmark\hbox{}}\relax +\let\@oddfoot\@empty +\let\@evenfoot\@empty +\ifCLASSOPTIONtechnote + % technote twoside + \def\@oddhead{\hbox{}\@IEEEheaderstyle\leftmark\hfil\thepage}\relax + \def\@evenhead{\@IEEEheaderstyle\thepage\hfil\leftmark\hbox{}}\relax +\fi +\ifCLASSOPTIONdraftcls + % draft footers + \def\@oddfoot{\@IEEEfooterstyle\@date\hfil DRAFT}\relax + \def\@evenfoot{\@IEEEfooterstyle DRAFT\hfil\@date}\relax +\fi +% oneside +\if@twoside\else + % standard one side headers + \def\@oddhead{\hbox{}\@IEEEheaderstyle\leftmark\hfil\thepage}\relax + \let\@evenhead\@empty + \ifCLASSOPTIONdraftcls + % oneside draft footers + \def\@oddfoot{\@IEEEfooterstyle\@date\hfil DRAFT}\relax + \let\@evenfoot\@empty + \fi +\fi +% turn off headers for conferences +\ifCLASSOPTIONconference + \let\@oddhead\@empty + \let\@evenhead\@empty +\fi +% turn off footers for draftclsnofoot +\ifCLASSOPTIONdraftclsnofoot + \let\@oddfoot\@empty + \let\@evenfoot\@empty +\fi} + + +% title page style, ps@IEEEtitlepagestyle +\def\ps@IEEEtitlepagestyle{% default title page headers, no footers +\def\@oddhead{\hbox{}\@IEEEheaderstyle\leftmark\hfil\thepage}\relax +\def\@evenhead{\@IEEEheaderstyle\thepage\hfil\leftmark\hbox{}}\relax +\let\@oddfoot\@empty +\let\@evenfoot\@empty +% will change later if the mode requires otherwise +\ifCLASSOPTIONdraftcls + % draft footers + \ifCLASSOPTIONdraftclsnofoot\else + % but only if not draftclsnofoot + \def\@oddfoot{\@IEEEfooterstyle\@date\hfil DRAFT}\relax + \def\@evenfoot{\@IEEEfooterstyle DRAFT\hfil\@date}\relax + \fi +\else + % all nondraft mode footers + \if@IEEEusingpubid + % for title pages that are using a pubid + % do not repeat pubid on the title page if using a peer review cover page + \ifCLASSOPTIONpeerreview\else + % for noncompsoc papers, the pubid uses footnotesize and + % is at the same vertical position as where the last baseline would normally be + \def\@oddfoot{\hbox{}\hss\@IEEEfooterstyle\footnotesize\raisebox{\footskip}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \def\@evenfoot{\hbox{}\hss\@IEEEfooterstyle\footnotesize\raisebox{\footskip}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \ifCLASSOPTIONcompsoc + % for compsoc papers, the pubid is at the same vertical position as the normal footer + \def\@oddfoot{\hbox{}\hss\@IEEEfooterstyle\raisebox{0pt}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \def\@evenfoot{\hbox{}\hss\@IEEEfooterstyle\raisebox{0pt}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \fi + \fi + \fi +\fi +% turn off headers for conferences +\ifCLASSOPTIONconference + \let\@oddhead\@empty + \let\@evenhead\@empty +\fi} + + +% peer review cover page style, ps@IEEEpeerreviewcoverpagestyle +\def\ps@IEEEpeerreviewcoverpagestyle{% default peer review cover no headers, no footers +\let\@oddhead\@empty +\let\@evenhead\@empty +\let\@oddfoot\@empty +\let\@evenfoot\@empty +% will change later if the mode requires otherwise +\ifCLASSOPTIONdraftcls + % draft footers + \ifCLASSOPTIONdraftclsnofoot\else + % but only if not draftclsnofoot + \def\@oddfoot{\@IEEEfooterstyle\@date\hfil DRAFT}\relax + \def\@evenfoot{\@IEEEfooterstyle DRAFT\hfil\@date}\relax + \fi +\else + % all nondraft mode footers + \if@IEEEusingpubid + % for peer review cover pages that are using a pubid + % for noncompsoc papers, the pubid uses footnotesize and + % is at the same vertical position as where the last baseline would normally be + \def\@oddfoot{\hbox{}\hss\@IEEEfooterstyle\footnotesize\raisebox{\footskip}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \def\@evenfoot{\hbox{}\hss\@IEEEfooterstyle\footnotesize\raisebox{\footskip}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \ifCLASSOPTIONcompsoc + % for compsoc papers, the pubid is at the same vertical position as the normal footer + \def\@oddfoot{\hbox{}\hss\@IEEEfooterstyle\raisebox{0pt}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \def\@evenfoot{\hbox{}\hss\@IEEEfooterstyle\raisebox{0pt}[0pt][0pt]{\@IEEEpubid}\hss\hbox{}}\relax + \fi + \fi +\fi} + + + +%% Defines the command for putting the header. +%% Note that all the text is forced into uppercase, if you have some text +%% that needs to be in lower case, for instance et. al., then either manually +%% set \leftmark and \rightmark or use \MakeLowercase{et. al.} within the +%% arguments to \markboth. +%% V1.7b add \protect to work with Babel +\def\markboth#1#2{\def\leftmark{\MakeUppercase{\protect#1}}% +\def\rightmark{\MakeUppercase{\protect#2}}} + +\def\today{\ifcase\month\or + January\or February\or March\or April\or May\or June\or + July\or August\or September\or October\or November\or December\fi + \space\number\day, \number\year} + + + + +%% CITATION AND BIBLIOGRAPHY COMMANDS +%% +%% V1.6 no longer supports the older, nonstandard \shortcite and \citename setup stuff +% +% +% Modify Latex2e \@citex to separate citations with "], [" +\def\@citex[#1]#2{% + \let\@citea\@empty + \@cite{\@for\@citeb:=#2\do + {\@citea\def\@citea{], [}% + \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% + \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi + \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}% + \G@refundefinedtrue + \@latex@warning + {Citation `\@citeb' on page \thepage \space undefined}}% + {\hbox{\csname b@\@citeb\endcsname}}}}{#1}} + +% V1.6 we create hooks for the optional use of Donald Arseneau's +% cite.sty package. cite.sty is "smart" and will notice that the +% following format controls are already defined and will not +% redefine them. The result will be the proper sorting of the +% citation numbers and auto detection of 3 or more entry "ranges" - +% all in IEEE style: [1], [2], [5]--[7], [12] +% This also allows for an optional note, i.e., \cite[mynote]{..}. +% If the \cite with note has more than one reference, the note will +% be applied to the last of the listed references. It is generally +% desired that if a note is given, only one reference is listed in +% that \cite. +% Thanks to Mr. Arseneau for providing the required format arguments +% to produce the IEEE style. +\def\citepunct{], [} +\def\citedash{]--[} + +% V1.7 default to using same font for urls made by url.sty +\AtBeginDocument{\csname url@samestyle\endcsname} + +% V1.6 class files should always provide these +\def\newblock{\hskip .11em\@plus.33em\@minus.07em} +\let\@openbib@code\@empty +% V1.8b article.cls is now providing these too +% we do not use \@mkboth, nor alter the page style +\newenvironment{theindex} + {\if@twocolumn + \@restonecolfalse + \else + \@restonecoltrue + \fi + \twocolumn[\section*{\indexname}]% + \parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \columnseprule \z@ + \columnsep 35\p@ + \let\item\@idxitem} + {\if@restonecol\onecolumn\else\clearpage\fi} +\newcommand\@idxitem{\par\hangindent 40\p@} +\newcommand\subitem{\@idxitem \hspace*{20\p@}} +\newcommand\subsubitem{\@idxitem \hspace*{30\p@}} +\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax} + + + +% Provide support for the control entries of IEEEtran.bst V1.00 and later. +% V1.7 optional argument allows for a different aux file to be specified in +% order to handle multiple bibliographies. For example, with multibib.sty: +% \newcites{sec}{Secondary Literature} +% \bstctlcite[@auxoutsec]{BSTcontrolhak} +\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}} +\def\@bstctlcite[#1]#2{\@bsphack + \@for\@citeb:=#2\do{% + \edef\@citeb{\expandafter\@firstofone\@citeb}% + \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}% + \@esphack} + +% \IEEEnoauxwrite{} allows for citations that do not add to or affect +% the order of the existing citation list. Can be useful for \cite +% within \thanks{}. +\DeclareRobustCommand{\IEEEnoauxwrite}[1]{\relax +\if@filesw +\@fileswfalse +#1\relax\relax\relax\relax\relax +\@fileswtrue +\else +#1\relax\relax\relax\relax\relax +\fi} + +% V1.6 provide a way for a user to execute a command just before +% a given reference number - used to insert a \newpage to balance +% the columns on the last page +\edef\@IEEEtriggerrefnum{0} % the default of zero means that + % the command is not executed +\def\@IEEEtriggercmd{\newpage} + +% allow the user to alter the triggered command +\long\def\IEEEtriggercmd#1{\long\def\@IEEEtriggercmd{#1}} + +% allow user a way to specify the reference number just before the +% command is executed +\def\IEEEtriggeratref#1{\@IEEEtrantmpcountA=#1% +\edef\@IEEEtriggerrefnum{\the\@IEEEtrantmpcountA}}% + +% trigger command at the given reference +\def\@IEEEbibitemprefix{\@IEEEtrantmpcountA=\@IEEEtriggerrefnum\relax% +\advance\@IEEEtrantmpcountA by -1\relax% +\ifnum\c@enumiv=\@IEEEtrantmpcountA\relax\@IEEEtriggercmd\relax\fi} + + +\def\@biblabel#1{[#1]} + +% compsoc journals and conferences left align the reference numbers +\@IEEEcompsoconly{\def\@biblabel#1{[#1]\hfill}} + +% controls bib item spacing +\def\IEEEbibitemsep{0pt plus .5pt} + +\@IEEEcompsocconfonly{\def\IEEEbibitemsep{0.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}} + + +\def\thebibliography#1{\section*{\refname}% + \addcontentsline{toc}{section}{\refname}% + % V1.6 add some rubber space here and provide a command trigger + \footnotesize\vskip 0.3\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip% + \list{\@biblabel{\@arabic\c@enumiv}}% + {\settowidth\labelwidth{\@biblabel{#1}}% + \leftmargin\labelwidth + \advance\leftmargin\labelsep\relax + \itemsep \IEEEbibitemsep\relax + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{\@arabic\c@enumiv}}% + \let\@IEEElatexbibitem\bibitem% + \def\bibitem{\@IEEEbibitemprefix\@IEEElatexbibitem}% +\def\newblock{\hskip .11em plus .33em minus .07em}% +% originally: +% \sloppy\clubpenalty4000\widowpenalty4000% +% by adding the \interlinepenalty here, we make it more +% difficult, but not impossible, for LaTeX to break within a reference. +% The IEEE almost never breaks a reference (but they do it more often with +% technotes). You may get an underfull vbox warning around the bibliography, +% but the final result will be much more like what the IEEE will publish. +% MDS 11/2000 +\ifCLASSOPTIONtechnote\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty100% +\else\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty500\fi% + \sfcode`\.=1000\relax} +\let\endthebibliography=\endlist + + + + +% TITLE PAGE COMMANDS +% +% +% \IEEEmembership is used to produce the sublargesize italic font used to indicate author +% IEEE membership. compsoc uses a large size sans slant font +\def\IEEEmembership#1{{\@IEEEnotcompsoconly{\sublargesize}\normalfont\@IEEEcompsoconly{\sffamily}\textit{#1}}} + + +% \IEEEauthorrefmark{} produces a footnote type symbol to indicate author affiliation. +% When given an argument of 1 to 9, \IEEEauthorrefmark{} follows the standard LaTeX footnote +% symbol sequence convention. However, for arguments 10 and above, \IEEEauthorrefmark{} +% reverts to using lower case roman numerals, so it cannot overflow. Do note that you +% cannot use \footnotemark[] in place of \IEEEauthorrefmark{} within \author as the footnote +% symbols will have been turned off to prevent \thanks from creating footnote marks. +% \IEEEauthorrefmark{} produces a symbol that appears to LaTeX as having zero vertical +% height - this allows for a more compact line packing, but the user must ensure that +% the interline spacing is large enough to prevent \IEEEauthorrefmark{} from colliding +% with the text above. +% V1.7 make this a robust command +% V1.8 transmag uses an arabic author affiliation symbol +\ifCLASSOPTIONtransmag +\DeclareRobustCommand*{\IEEEauthorrefmark}[1]{\raisebox{0pt}[0pt][0pt]{\textsuperscript{\footnotesize #1}}} +\else +\DeclareRobustCommand*{\IEEEauthorrefmark}[1]{\raisebox{0pt}[0pt][0pt]{\textsuperscript{\footnotesize\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or% + \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger% + \or \ddagger\ddagger \else\textsuperscript{\expandafter\romannumeral#1}\fi}}}} +\fi + + +% FONT CONTROLS AND SPACINGS FOR CONFERENCE MODE AUTHOR NAME AND AFFILIATION BLOCKS +% +% The default font styles for the author name and affiliation blocks (confmode) +\def\@IEEEauthorblockNstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\sublargesize} +\def\@IEEEauthorblockAstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\@IEEEcompsocconfonly{\itshape}\normalsize} +% The default if the user does not use an author block +\def\@IEEEauthordefaulttextstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\sublargesize} + +% adjustment spacing from title (or special paper notice) to author name blocks (confmode) +% can be negative +\def\@IEEEauthorblockconfadjspace{-0.25em} +% compsoc conferences need more space here +\@IEEEcompsocconfonly{\def\@IEEEauthorblockconfadjspace{0.75\@IEEEnormalsizeunitybaselineskip}} + +% spacing between name and affiliation blocks (confmode) +% This can be negative. +% The IEEE doesn't want any added spacing here, but I will leave these +% controls in place in case they ever change their mind. +% Personally, I like 0.75ex. +%\def\@IEEEauthorblockNtopspace{0.75ex} +%\def\@IEEEauthorblockAtopspace{0.75ex} +\def\@IEEEauthorblockNtopspace{0.0ex} +\def\@IEEEauthorblockAtopspace{0.0ex} +\ifCLASSOPTIONtransmag +% transmag uses one line of space above first affiliation block +\def\@IEEEauthorblockAtopspace{1\@IEEEnormalsizeunitybaselineskip} +\fi + +% baseline spacing within name and affiliation blocks (confmode) +% must be positive, spacings below certain values will make +% the position of line of text sensitive to the contents of the +% line above it i.e., whether or not the prior line has descenders, +% subscripts, etc. For this reason it is a good idea to keep +% these above 2.6ex +\def\@IEEEauthorblockNinterlinespace{2.6ex} +\def\@IEEEauthorblockAinterlinespace{2.75ex} + +% This tracks the required strut size. +% See the \@IEEEauthorhalign command for the actual default value used. +\def\@IEEEauthorblockXinterlinespace{2.7ex} + +% variables to retain font size and style across groups +% values given here have no effect as they will be overwritten later +\gdef\@IEEESAVESTATEfontsize{10} +\gdef\@IEEESAVESTATEfontbaselineskip{12} +\gdef\@IEEESAVESTATEfontencoding{OT1} +\gdef\@IEEESAVESTATEfontfamily{ptm} +\gdef\@IEEESAVESTATEfontseries{m} +\gdef\@IEEESAVESTATEfontshape{n} + +% saves the current font attributes +\def\@IEEEcurfontSAVE{\global\let\@IEEESAVESTATEfontsize\f@size% +\global\let\@IEEESAVESTATEfontbaselineskip\f@baselineskip% +\global\let\@IEEESAVESTATEfontencoding\f@encoding% +\global\let\@IEEESAVESTATEfontfamily\f@family% +\global\let\@IEEESAVESTATEfontseries\f@series% +\global\let\@IEEESAVESTATEfontshape\f@shape} + +% restores the saved font attributes +\def\@IEEEcurfontRESTORE{\fontsize{\@IEEESAVESTATEfontsize}{\@IEEESAVESTATEfontbaselineskip}% +\fontencoding{\@IEEESAVESTATEfontencoding}% +\fontfamily{\@IEEESAVESTATEfontfamily}% +\fontseries{\@IEEESAVESTATEfontseries}% +\fontshape{\@IEEESAVESTATEfontshape}% +\selectfont} + + +% variable to indicate if the current block is the first block in the column +\newif\if@IEEEprevauthorblockincol \@IEEEprevauthorblockincolfalse + + +% the command places a strut with height and depth = \@IEEEauthorblockXinterlinespace +% we use this technique to have complete manual control over the spacing of the lines +% within the halign environment. +% We set the below baseline portion at 30%, the above +% baseline portion at 70% of the total length. +% Responds to changes in the document's \baselinestretch +\def\@IEEEauthorstrutrule{\@IEEEtrantmpdimenA\@IEEEauthorblockXinterlinespace% +\@IEEEtrantmpdimenA=\baselinestretch\@IEEEtrantmpdimenA% +\rule[-0.3\@IEEEtrantmpdimenA]{0pt}{\@IEEEtrantmpdimenA}} + + +% blocks to hold the authors' names and affilations. +% Makes formatting easy for conferences +% +% use real definitions in conference mode +% name block +\def\IEEEauthorblockN#1{\relax\@IEEEauthorblockNstyle% set the default text style +\gdef\@IEEEauthorblockXinterlinespace{0pt}% disable strut for spacer row +% the \expandafter hides the \cr in conditional tex, see the array.sty docs +% for details, probably not needed here as the \cr is in a macro +% do a spacer row if needed +\if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockNtopspaceline\fi +\global\@IEEEprevauthorblockincoltrue% we now have a block in this column +%restore the correct strut value +\gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockNinterlinespace}% +% input the author names +#1% +% end the row if the user did not already +\crcr} +% spacer row for names +\def\@IEEEauthorblockNtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockNtopspace}} +% +% affiliation block +\def\IEEEauthorblockA#1{\relax\@IEEEauthorblockAstyle% set the default text style +\gdef\@IEEEauthorblockXinterlinespace{0pt}%disable strut for spacer row +% the \expandafter hides the \cr in conditional tex, see the array.sty docs +% for details, probably not needed here as the \cr is in a macro +% do a spacer row if needed +\if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockAtopspaceline\fi +\global\@IEEEprevauthorblockincoltrue% we now have a block in this column +%restore the correct strut value +\gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockAinterlinespace}% +% input the author affiliations +#1% +% end the row if the user did not already +\crcr +% V1.8 transmag does not use any additional affiliation spacing after the first author +\ifCLASSOPTIONtransmag\gdef\@IEEEauthorblockAtopspace{0pt}\fi} + +% spacer row for affiliations +\def\@IEEEauthorblockAtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockAtopspace}} + + +% allow papers to compile even if author blocks are used in modes other +% than conference or peerreviewca. For such cases, we provide dummy blocks. +\ifCLASSOPTIONconference +\else + \ifCLASSOPTIONpeerreviewca\else + % not conference, peerreviewca or transmag mode + \ifCLASSOPTIONtransmag\else + \def\IEEEauthorblockN#1{#1}% + \def\IEEEauthorblockA#1{#1}% + \fi + \fi +\fi + + + +% we provide our own halign so as not to have to depend on tabular +\def\@IEEEauthorhalign{\@IEEEauthordefaulttextstyle% default text style + \lineskip=0pt\relax% disable line spacing + \lineskiplimit=0pt\relax% + \baselineskip=0pt\relax% + \@IEEEcurfontSAVE% save the current font + \mathsurround\z@\relax% no extra spacing around math + \let\\\@IEEEauthorhaligncr% replace newline with halign friendly one + \tabskip=0pt\relax% no column spacing + \everycr{}% ensure no problems here + \@IEEEprevauthorblockincolfalse% no author blocks yet + \def\@IEEEauthorblockXinterlinespace{2.7ex}% default interline space + \vtop\bgroup%vtop box + \halign\bgroup&\relax\hfil\@IEEEcurfontRESTORE\relax ##\relax + \hfil\@IEEEcurfontSAVE\@IEEEauthorstrutrule\cr} + +% ensure last line, exit from halign, close vbox +\def\end@IEEEauthorhalign{\crcr\egroup\egroup} + +% handle bogus star form +\def\@IEEEauthorhaligncr{{\ifnum0=`}\fi\@ifstar{\@@IEEEauthorhaligncr}{\@@IEEEauthorhaligncr}} + +% test and setup the optional argument to \\[] +\def\@@IEEEauthorhaligncr{\@testopt\@@@IEEEauthorhaligncr\z@skip} + +% end the line and do the optional spacer +\def\@@@IEEEauthorhaligncr[#1]{\ifnum0=`{\fi}\cr\noalign{\vskip#1\relax}} + + + +% flag to prevent multiple \and warning messages +\newif\if@IEEEWARNand +\@IEEEWARNandtrue + +% if in conference or peerreviewca modes, we support the use of \and as \author is a +% tabular environment, otherwise we warn the user that \and is invalid +% outside of conference or peerreviewca modes. +\def\and{\relax} % provide a bogus \and that we will then override + +\renewcommand{\and}[1][\relax]{\if@IEEEWARNand\typeout{** WARNING: \noexpand\and is valid only + when in conference or peerreviewca}\typeout{modes (line \the\inputlineno).}\fi\global\@IEEEWARNandfalse} + +\ifCLASSOPTIONconference% +\renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}% +\fi +\ifCLASSOPTIONpeerreviewca +\renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}% +\fi +% V1.8 transmag uses conference author format +\ifCLASSOPTIONtransmag +\renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}% +\fi + +% page clearing command +% based on LaTeX2e's \cleardoublepage, but allows different page styles +% for the inserted blank pages +\def\@IEEEcleardoublepage#1{\clearpage\if@twoside\ifodd\c@page\else +\hbox{}\thispagestyle{#1}\newpage\if@twocolumn\hbox{}\thispagestyle{#1}\newpage\fi\fi\fi} + +% V1.8b hooks to allow adjustment of space above title +\def\IEEEtitletopspace{0.5\baselineskip} +% an added extra amount to allow for adjustment/offset +\def\IEEEtitletopspaceextra{0pt} + +% user command to invoke the title page +\def\maketitle{\par% + \begingroup% + \normalfont% + \def\thefootnote{}% the \thanks{} mark type is empty + \def\footnotemark{}% and kill space from \thanks within author + \let\@makefnmark\relax% V1.7, must *really* kill footnotemark to remove all \textsuperscript spacing as well. + \footnotesize% equal spacing between thanks lines + \footnotesep 0.7\baselineskip%see global setting of \footnotesep for more info + % V1.7 disable \thanks note indention for compsoc + \@IEEEcompsoconly{\long\def\@makefntext##1{\parindent 1em\noindent\hbox{\@makefnmark}##1}}% + \normalsize% + \ifCLASSOPTIONpeerreview + \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext% + \thispagestyle{IEEEpeerreviewcoverpagestyle}\@thanks% + \else + \if@twocolumn% + \ifCLASSOPTIONtechnote% + \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext% + \else + \twocolumn[{\IEEEquantizevspace{\@maketitle}[\IEEEquantizedisabletitlecmds]{0pt}[-\topskip]{\baselineskip}{\@IEEENORMtitlevspace}{\@IEEEMINtitlevspace}\@IEEEaftertitletext}]% + \fi + \else + \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext% + \fi + \thispagestyle{IEEEtitlepagestyle}\@thanks% + \fi + % pullup page for pubid if used. + \if@IEEEusingpubid + \enlargethispage{-\@IEEEpubidpullup}% + \fi + \endgroup + \setcounter{footnote}{0}\let\maketitle\relax\let\@maketitle\relax + \gdef\@thanks{}% + % v1.6b do not clear these as we will need the title again for peer review papers + % \gdef\@author{}\gdef\@title{}% + \let\thanks\relax} + + +% V1.8 parbox to format \@IEEEtitleabstractindextext +\long\def\@IEEEtitleabstractindextextbox#1{\parbox{1\textwidth}{#1}} +% V1.8 compsoc is partial width +\ifCLASSOPTIONcompsoc +% comparison with proofs suggests it's in the range of 92.1-92.3% +\long\def\@IEEEtitleabstractindextextbox#1{\parbox{0.922\textwidth}{\@IEEEcompsocnotconfonly{\rightskip\@flushglue\leftskip\z@skip}#1}} +\fi + +% formats the Title, authors names, affiliations and special paper notice +% THIS IS A CONTROLLED SPACING COMMAND! Do not allow blank lines or unintentional +% spaces to enter the definition - use % at the end of each line +\def\@maketitle{\newpage +\bgroup\par\vskip\IEEEtitletopspace\vskip\IEEEtitletopspaceextra\centering% +\ifCLASSOPTIONtechnote% technotes, V1.8a abstract and index terms are not treated differently for compsoc technotes + {\bfseries\large\@IEEEcompsoconly{\Large\sffamily}\@title\par}\vskip 1.3em{\lineskip .5em\@IEEEcompsoconly{\large\sffamily}\@author + \@IEEEspecialpapernotice\par}\relax +\else% not a technote + \vskip0.2em{\Huge\ifCLASSOPTIONtransmag\bfseries\LARGE\fi\@IEEEcompsoconly{\sffamily}\@IEEEcompsocconfonly{\normalfont\normalsize\vskip 2\@IEEEnormalsizeunitybaselineskip + \bfseries\Large}\@IEEEcompsocnotconfonly{\vskip 0.75\@IEEEnormalsizeunitybaselineskip}\@title\par}\relax + \@IEEEcompsocnotconfonly{\vskip 0.5\@IEEEnormalsizeunitybaselineskip}\vskip1.0em\par% + % V1.6 handle \author differently if in conference mode + \ifCLASSOPTIONconference% + {\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace% + \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par}\relax + \else% peerreviewca, peerreview or journal + \ifCLASSOPTIONpeerreviewca + % peerreviewca handles author names just like conference mode + {\@IEEEcompsoconly{\sffamily}\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace% + \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par + {\@IEEEcompsoconly{\vskip 1.5em\relax + \@IEEEtitleabstractindextextbox{\@IEEEtitleabstractindextext}\par\noindent\hfill + \IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax + \else% journal, peerreview or transmag + \ifCLASSOPTIONtransmag + % transmag also handles author names just like conference mode + % it also uses \@IEEEtitleabstractindextex, but with one line less + % space above, and one more below + {\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace% + \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par + {\vspace{0.5\baselineskip}\relax\@IEEEtitleabstractindextextbox{\@IEEEtitleabstractindextext}\vspace{-1\baselineskip}\par}}\relax + \else% journal or peerreview + {\lineskip.5em\@IEEEcompsoconly{\sffamily}\sublargesize\@author\@IEEEspecialpapernotice\par + {\@IEEEcompsoconly{\vskip 1.5em\relax + \@IEEEtitleabstractindextextbox{\@IEEEtitleabstractindextext}\par\noindent\hfill + \IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax + \fi + \fi + \fi +\fi\par\addvspace{0.5\baselineskip}\egroup} + + +% V1.7 Computer Society "diamond line" which follows index terms for nonconference papers +% V1.8a full width diamond line for single column use +\def\@IEEEcompsocdiamondlinei{\vrule depth 0pt height 0.5pt width 4cm\nobreak\hspace{7.5pt}\nobreak +\raisebox{-3.5pt}{\fontfamily{pzd}\fontencoding{U}\fontseries{m}\fontshape{n}\fontsize{11}{12}\selectfont\char70}\nobreak +\hspace{7.5pt}\nobreak\vrule depth 0pt height 0.5pt width 4cm\relax} +% V1.8a narrower width diamond line for double column use +\def\@IEEEcompsocdiamondlineii{\vrule depth 0pt height 0.5pt width 2.5cm\nobreak\hspace{7.5pt}\nobreak +\raisebox{-3.5pt}{\fontfamily{pzd}\fontencoding{U}\fontseries{m}\fontshape{n}\fontsize{11}{12}\selectfont\char70}\nobreak +\hspace{7.5pt}\nobreak\vrule depth 0pt height 0.5pt width 2.5cm\relax} +% V1.8a bare core without rules to base a last resort on for very narrow linewidths +\def\@IEEEcompsocdiamondlineiii{\mbox{}\nobreak\hspace{7.5pt}\nobreak +\raisebox{-3.5pt}{\fontfamily{pzd}\fontencoding{U}\fontseries{m}\fontshape{n}\fontsize{11}{12}\selectfont\char70}\nobreak +\hspace{7.5pt}\nobreak\mbox{}\relax} + +% V1.8a allow \IEEEcompsocdiamondline to adjust for different linewidths. +% Use \@IEEEcompsocdiamondlinei if its width is less than 0.66\linewidth (0.487 nominal for single column) +% if not, fall back to \@IEEEcompsocdiamondlineii if its width is less than 0.75\linewidth (0.659 nominal for double column) +% if all else fails, try to make a custom diamondline based on the abnormally narrow linewidth +\def\IEEEcompsocdiamondline{\settowidth{\@IEEEtrantmpdimenA}{\@IEEEcompsocdiamondlinei}\relax +\ifdim\@IEEEtrantmpdimenA<0.66\linewidth\relax\@IEEEcompsocdiamondlinei\relax +\else +\settowidth{\@IEEEtrantmpdimenA}{\@IEEEcompsocdiamondlineii}\relax +\ifdim\@IEEEtrantmpdimenA<0.75\linewidth\relax\@IEEEcompsocdiamondlineii\relax +\else +\settowidth{\@IEEEtrantmpdimenA}{\@IEEEcompsocdiamondlineiii}\relax +\@IEEEtrantmpdimenB=\linewidth\relax +\addtolength{\@IEEEtrantmpdimenB}{-1\@IEEEtrantmpdimenA}\relax +\vrule depth 0pt height 0.5pt width 0.33\@IEEEtrantmpdimenB\@IEEEcompsocdiamondlineiii\vrule depth 0pt height 0.5pt width 0.33\@IEEEtrantmpdimenB\relax +\fi\fi} + + +% V1.7 standard LateX2e \thanks, but with \itshape under compsoc. Also make it a \long\def +% We also need to trigger the one-shot footnote rule +\def\@IEEEtriggeroneshotfootnoterule{\global\@IEEEenableoneshotfootnoteruletrue} + + +\long\def\thanks#1{\footnotemark + \protected@xdef\@thanks{\@thanks + \protect\footnotetext[\the\c@footnote]{\@IEEEcompsoconly{\itshape + \protect\@IEEEtriggeroneshotfootnoterule\relax}\ignorespaces#1}}} +\let\@thanks\@empty + + +% V1.7 allow \author to contain \par's. This is needed to allow \thanks to contain \par. +\long\def\author#1{\gdef\@author{#1}} + + +% in addition to setting up IEEEitemize, we need to remove a baselineskip space above and +% below it because \list's \pars introduce blank lines because of the footnote struts. +\def\@IEEEsetupcompsocitemizelist{\def\labelitemi{$\bullet$}% +\setlength{\IEEElabelindent}{0pt}\setlength{\labelsep}{1.2em}\setlength{\parskip}{0pt}% +\setlength{\partopsep}{0pt}\setlength{\topsep}{0.5\baselineskip}\vspace{-1\baselineskip}\relax} + + +% flag for fake non-compsoc \IEEEcompsocthanksitem - prevents line break on very first item +\newif\if@IEEEbreakcompsocthanksitem \@IEEEbreakcompsocthanksitemfalse + +\ifCLASSOPTIONcompsoc +% V1.7 compsoc bullet item \thanks +% also, we need to redefine this to destroy the argument in \IEEEquantizevspace +\long\def\IEEEcompsocitemizethanks#1{\relax\@IEEEbreakcompsocthanksitemfalse\footnotemark + \protected@xdef\@thanks{\@thanks + \protect\footnotetext[\the\c@footnote]{\itshape\protect\@IEEEtriggeroneshotfootnoterule + {\let\IEEEiedlistdecl\relax\protect\begin{IEEEitemize}[\protect\@IEEEsetupcompsocitemizelist]\ignorespaces#1\relax + \protect\end{IEEEitemize}}\protect\vspace{-1\baselineskip}}}} +\DeclareRobustCommand*{\IEEEcompsocthanksitem}{\item} +\else +% non-compsoc, allow for dual compilation via rerouting to normal \thanks +\long\def\IEEEcompsocitemizethanks#1{\thanks{#1}} +% redirect to "pseudo-par" \hfil\break\indent after swallowing [] from \IEEEcompsocthanksitem[] +\DeclareRobustCommand{\IEEEcompsocthanksitem}{\@ifnextchar [{\@IEEEthanksswallowoptionalarg}% +{\@IEEEthanksswallowoptionalarg[\relax]}} +% be sure and break only after first item, be sure and ignore spaces after optional argument +\def\@IEEEthanksswallowoptionalarg[#1]{\relax\if@IEEEbreakcompsocthanksitem\hfil\break +\indent\fi\@IEEEbreakcompsocthanksitemtrue\ignorespaces} +\fi + + +% V1.6b define the \IEEEpeerreviewmaketitle as needed +\ifCLASSOPTIONpeerreview +\def\IEEEpeerreviewmaketitle{\@IEEEcleardoublepage{empty}% +\ifCLASSOPTIONtwocolumn +\twocolumn[{\IEEEquantizevspace{\@IEEEpeerreviewmaketitle}[\IEEEquantizedisabletitlecmds]{0pt}[-\topskip]{\baselineskip}{\@IEEENORMtitlevspace}{\@IEEEMINtitlevspace}}] +\else +\newpage\@IEEEpeerreviewmaketitle\@IEEEstatictitlevskip +\fi +\thispagestyle{IEEEtitlepagestyle}} +\else +% \IEEEpeerreviewmaketitle does nothing if peer review option has not been selected +\def\IEEEpeerreviewmaketitle{\relax} +\fi + +% peerreview formats the repeated title like the title in journal papers. +\def\@IEEEpeerreviewmaketitle{\bgroup\par\addvspace{0.5\baselineskip}\centering\@IEEEcompsoconly{\sffamily}% +\normalfont\normalsize\vskip0.2em{\Huge\@title\par}\vskip1.0em\par +\par\addvspace{0.5\baselineskip}\egroup} + + + +% V1.6 +% this is a static rubber spacer between the title/authors and the main text +% used for single column text, or when the title appears in the first column +% of two column text (technotes). +\def\@IEEEstatictitlevskip{{\normalfont\normalsize +% adjust spacing to next text +% v1.6b handle peer review papers +\ifCLASSOPTIONpeerreview +% for peer review papers, the same value is used for both title pages +% regardless of the other paper modes + \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip +\else + \ifCLASSOPTIONconference% conference + \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip% + \else% + \ifCLASSOPTIONtechnote% technote + \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip% + \else% journal uses more space + \vskip 2.5\baselineskip plus 0.75\baselineskip minus 0.375\baselineskip% + \fi + \fi +\fi}} + + +% set the nominal and minimum values for the quantized title spacer +% the quantization algorithm will not allow the spacer size to +% become less than \@IEEEMINtitlevspace - instead it will be lengthened +% default to journal values +\def\@IEEENORMtitlevspace{2.5\baselineskip} +\def\@IEEEMINtitlevspace{2\baselineskip} +% conferences and technotes need tighter spacing +\ifCLASSOPTIONconference% conference + \def\@IEEENORMtitlevspace{1\baselineskip} + \def\@IEEEMINtitlevspace{0.75\baselineskip} +\fi +\ifCLASSOPTIONtechnote% technote + \def\@IEEENORMtitlevspace{1\baselineskip} + \def\@IEEEMINtitlevspace{0.75\baselineskip} +\fi + + +% V1.8a +\def\IEEEquantizevspace{\begingroup\@ifstar{\@IEEEquantizevspacestarformtrue\@IEEEquantizevspace}{\@IEEEquantizevspacestarformfalse\@IEEEquantizevspace}} +% \IEEEquantizevspace[output dimen register]{object}[object decl] +% {top baselineskip} +% [offset][prevdepth][lineskip limit][lineskip] +% {unit height}{nominal vspace}{minimum vspace} +% +% Calculates and creates the vspace needed to make the combined height with +% the given object an integer multiple of the given unit height. This command +% is more general than the older \@IEEEdynamictitlevspace it replaces. +% +% The star form has no effect at present, but is reserved for future use. +% +% If the optional argument [output dimen register] is given, the calculated +% vspace height is stored in the given output dimen (or skip) register +% and no other action is taken, otherwise the object followed by a vspace* +% of the appropriate height is evaluated/output. +% +% The optional object decl (declarations) is code that is evaluated just +% before the object's height is evaluated. Its intented purpose is to allow +% for the alteration or disabling of code within the object during internal +% height evaluation (e.g., \long\def\thanks#1{\relax} ). +% This special code is not invoked if/when the object is rendered at the end. +% +% The nominal vspace is the target value of the added vspace and the minimum +% vspace is the lower allowed limit. The vspacer will be the value that achieves +% integral overall height, in terms of the given unit height, that is closest +% to the nominal vspace and that is not less than the specified minimum vspace. +% +% The line spacing algorithm of TeX is somewhat involved and requires special +% care with regard to the first line of a vertical list (which is indicated +% when \prevdepth is -1000pt or less). top baselineskip specifies the +% baselineskip or topskip used prior to the object. If the height of the +% first line of the object is greater than the given top baselineskip, then +% the top baselineskip is subtracted from the height of the first line and +% that difference is considered along with the rest of the object height +% (because the object will be shifted down by an amount = +% top line height - top baselineskip). Otherwise, the height of the first line +% of the object is ignored as far as the calculations are concerned. +% This algorithm is adequate for objects that appear at the top of a page +% (e.g., titles) where \topskip spacing is used. +% +% However, as explained on page 78 of the TeXbook, interline spacing is more +% complex when \baselineskip is being used (indicated by \prevdepth > +% -1000pt). The four optional parameters offset, prevdepth, lineskip limit and +% lineskip are assumed to be equal to be 0pt, \prevdepth, \lineskiplimit and +% \lineskip, respectively, if they are omitted. +% +% The prevdepth is the depth of the line before the object, the lineskip limit +% specifies how close the top of the object can come to the bottom of the +% previous line before \baselineskip is ignored and \lineskip is inserted +% between the object and the line above it. Lineskip does not come into +% play unless the first line of the object is high enough to "get too close" +% (as specified by lineskiplimit) to the line before it. The the prevdepth, +% lineskip limit, and lineskip optional parameters are not needed for the +% first object/line on a page (i.e., prevdepth <= -1000pt) where the simplier +% \topskip spacing rules are in effect. +% +% Offset is a manual adjustment that is added to the height calculations of +% object irrespective of the value of \prevdepth. It is useful when the top +% baselineskip will result in a noninteger unit height object placement even +% if the object itself has integral height. e.g., a footnotesize baselineskip +% is used before the object, thus an offset of, say -3pt, can be given as a +% correction. + +% Common combinations of these parameters include: +% +% top baselineskip: (and default values for offset, prevdepth, etc.) +% \topskip % for objects that appear at the top of a page +% \maxdimen % always ignore the height of the top line +% 0pt % always consider any positive height of the top line +% +% for objects to appear inline in normal text: +% top baselineskip = \baselineskip +% +% set prevdepth = -1000pt and top baselineskip = 0pt to consider the +% overall height of the object without any other external skip +% consideration + +\newif\if@IEEEquantizevspacestarform % flag to indicate star form +\newif\if@IEEEquantizevspaceuseoutdimenreg % flag to indicate output dimen register is to be used +% Use our own private registers because the object could contain a +% structure that uses the existing tmp scratch pad registers +\newdimen\@IEEEquantizeheightA +\newdimen\@IEEEquantizeheightB +\newdimen\@IEEEquantizeheightC +\newdimen\@IEEEquantizeprevdepth % need to save this early as can change +\newcount\@IEEEquantizemultiple +\newbox\@IEEEquantizeboxA + + +\def\@IEEEquantizevspace{\@ifnextchar [{\@IEEEquantizevspaceuseoutdimenregtrue\@@IEEEquantizevspace}{\@IEEEquantizevspaceuseoutdimenregfalse\@@IEEEquantizevspace[]}} + + +\long\def\@@IEEEquantizevspace[#1]#2{\relax +% acquire and store +% #1 optional output dimen register +% #2 object +\edef\@IEEEquantizeoutdimenreg{#1}\relax +% allow for object specifications that contain parameters +\@IEEEtrantmptoksA={#2}\relax +\long\edef\@IEEEquantizeobject{\the\@IEEEtrantmptoksA}\relax +\@ifnextchar [{\@@@IEEEquantizevspace}{\@@@IEEEquantizevspace[\relax]}} + +\long\def\@@@IEEEquantizevspace[#1]#2{\relax +% acquire and store +% [#1] optional object decl, is \relax if not given by user +% #2 top baselineskip +% allow for object decl specifications that have parameters +\@IEEEtrantmptoksA={#1}\relax +\long\edef\@IEEEquantizeobjectdecl{\the\@IEEEtrantmptoksA}\relax +\edef\@IEEEquantizetopbaselineskip{#2}\ivIEEEquantizevspace} + +% acquire optional argument set and store +% [offset][prevdepth][lineskip limit][lineskip] +\def\ivIEEEquantizevspace{\@ifnextchar [{\@vIEEEquantizevspace}{\@vIEEEquantizevspace[0pt]}} +\def\@vIEEEquantizevspace[#1]{\edef\@IEEEquantizeoffset{#1}\@ifnextchar [{\@viIEEEquantizevspace}{\@viIEEEquantizevspace[\prevdepth]}} +\def\@viIEEEquantizevspace[#1]{\@IEEEquantizeprevdepth=#1\relax\@ifnextchar [{\@viiIEEEquantizevspace}{\@viiIEEEquantizevspace[\lineskiplimit]}} +\def\@viiIEEEquantizevspace[#1]{\edef\@IEEEquantizelineskiplimit{#1}\@ifnextchar [{\@viiiIEEEquantizevspace}{\@viiiIEEEquantizevspace[\lineskip]}} +\def\@viiiIEEEquantizevspace[#1]{\edef\@IEEEquantizelineskip{#1}\@ixIEEEquantizevspace} + +% main routine +\def\@ixIEEEquantizevspace#1#2#3{\relax +\edef\@IEEEquantizeunitheight{#1}\relax +\edef\@IEEEquantizenomvspace{#2}\relax +\edef\@IEEEquantizeminvspace{#3}\relax +% \@IEEEquantizeoutdimenreg +% \@IEEEquantizeobject +% \@IEEEquantizeobjectdecl +% \@IEEEquantizetopbaselineskip +% \@IEEEquantizeoffset +% \@IEEEquantizeprevdepth +% \@IEEEquantizelineskiplimit +% \@IEEEquantizelineskip +% \@IEEEquantizeunitheight +% \@IEEEquantizenomvspace +% \@IEEEquantizeminvspace +% get overall height of object +\setbox\@IEEEquantizeboxA\vbox{\begingroup\@IEEEquantizeobjectdecl\@IEEEquantizeobject\relax\endgroup}\relax +\@IEEEquantizeheightA\ht\@IEEEquantizeboxA\relax +% get height of first line of object +\setbox\@IEEEquantizeboxA\vtop{\begingroup\@IEEEquantizeobjectdecl\@IEEEquantizeobject\relax\endgroup}\relax +\@IEEEquantizeheightB\ht\@IEEEquantizeboxA\relax +\ifdim\@IEEEquantizeprevdepth>-1000pt\relax % prevdepth > -1000pf means full baselineskip\lineskip rules in effect +% lineskip spacing rule takes effect if height of top line > baselineskip - prevdepth - lineskiplimit, +% otherwise the baselineskip rule is in effect and the height of the first line does not matter at all. +\@IEEEquantizeheightC=\@IEEEquantizetopbaselineskip\relax +\advance\@IEEEquantizeheightC-\@IEEEquantizeprevdepth\relax +\advance\@IEEEquantizeheightC-\@IEEEquantizelineskiplimit\relax % this works even though \@IEEEquantizelineskiplimit is a macro because TeX allows --10pt notation +\ifdim\@IEEEquantizeheightB>\@IEEEquantizeheightC\relax +% lineskip spacing rule is in effect i.e., the object is going to be shifted down relative to the +% baselineskip set position by its top line height (already a part of the total height) + prevdepth + lineskip - baselineskip +\advance\@IEEEquantizeheightA\@IEEEquantizeprevdepth\relax +\advance\@IEEEquantizeheightA\@IEEEquantizelineskip\relax +\advance\@IEEEquantizeheightA-\@IEEEquantizetopbaselineskip\relax +\else +% height of first line <= \@IEEEquantizetopbaselineskip - \@IEEEquantizeprevdepth - \@IEEEquantizelineskiplimit +% standard baselineskip rules are in effect, so don't consider height of first line +\advance\@IEEEquantizeheightA-\@IEEEquantizeheightB\relax +\fi +% +\else % prevdepth <= -1000pt, simplier \topskip type rules in effect +\ifdim\@IEEEquantizeheightB>\@IEEEquantizetopbaselineskip +% height of top line (already included in the total height) in excess of +% baselineskip is the amount it will be downshifted +\advance\@IEEEquantizeheightA-\@IEEEquantizetopbaselineskip\relax +\else +% height of first line is irrelevant, remove it +\advance\@IEEEquantizeheightA-\@IEEEquantizeheightB\relax +\fi +\fi % prevdepth <= -1000pt +% +% adjust height for any manual offset +\advance\@IEEEquantizeheightA\@IEEEquantizeoffset\relax +% add in nominal spacer +\advance\@IEEEquantizeheightA\@IEEEquantizenomvspace\relax +% check for nonzero unitheight +\@IEEEquantizeheightB=\@IEEEquantizeunitheight\relax +\ifnum\@IEEEquantizeheightB=0\relax +\@IEEEclspkgerror{IEEEquantizevspace unit height cannot be zero. Assuming 10pt.}% +{Division by zero is not allowed.} +\@IEEEquantizeheightB=10pt\relax +\fi +% get integer number of lines +\@IEEEquantizemultiple=\@IEEEquantizeheightA\relax +\divide\@IEEEquantizemultiple\@IEEEquantizeheightB\relax +% set A to contain the excess height over the \@IEEEquantizemultiple of lines +% A = height - multiple*unitheight +\@IEEEquantizeheightC\@IEEEquantizeheightB\relax +\multiply\@IEEEquantizeheightC\@IEEEquantizemultiple\relax +\advance\@IEEEquantizeheightA-\@IEEEquantizeheightC\relax +% set B to contain the height short of \@IEEEquantizemultiple+1 of lines +% B = unitheight - A +\advance\@IEEEquantizeheightB-\@IEEEquantizeheightA\relax +% choose A or B based on which is closer +\@IEEEquantizeheightC\@IEEEquantizenomvspace\relax +\ifdim\@IEEEquantizeheightA<\@IEEEquantizeheightB\relax +% C = nomvspace - A, go with lower +\advance\@IEEEquantizeheightC-\@IEEEquantizeheightA\relax +\else +% C = nomvspace + B, go with upper +\advance\@IEEEquantizeheightC\@IEEEquantizeheightB\relax +\fi +% if violate lower bound, use next integer bound +\ifdim\@IEEEquantizeheightC<\@IEEEquantizeminvspace\relax +% A + B = unitheight +\advance\@IEEEquantizeheightC\@IEEEquantizeheightA\relax +\advance\@IEEEquantizeheightC\@IEEEquantizeheightB\relax +\fi +% export object and spacer outside of group +\global\let\@IEEEquantizeobjectout\@IEEEquantizeobject\relax +\global\@IEEEquantizeheightC\@IEEEquantizeheightC\relax +\endgroup +\if@IEEEquantizevspaceuseoutdimenreg +\@IEEEquantizeoutdimenreg=\@IEEEquantizeheightC\relax +\else +\@IEEEquantizeobjectout\relax +\vskip\@IEEEquantizeheightC\relax +\fi} + + +% user command to disable all global assignments, possible use within object decl +\def\IEEEquantizedisableglobal{\let\global\relax +\let\gdef\def +\let\xdef\edef} +% user command to allow for the disabling of \thanks and other commands, possible use within object decl +\def\IEEEquantizedisabletitlecmds{\long\def\thanks##1{\relax}\relax +\long\def\IEEEcompsocitemizethanks##1{\relax}\def\newpage{\relax}} + + + + + +% V1.6 +% we allow the user access to the last part of the title area +% useful in emergencies such as when a different spacing is needed +% This text is NOT compensated for in the dynamic sizer. +\let\@IEEEaftertitletext=\relax +\long\def\IEEEaftertitletext#1{\def\@IEEEaftertitletext{#1}} + + +% V1.7 provide a way for users to enter abstract and keywords +% into the onecolumn title are. This text is compensated for +% in the dynamic sizer. +\let\@IEEEtitleabstractindextext=\relax +\long\def\IEEEtitleabstractindextext#1{\def\@IEEEtitleabstractindextext{#1}} + +% V1.7 provide a way for users to get the \@IEEEtitleabstractindextext if +% not in compsoc or transmag journal mode - this way abstract and keywords +% can still be placed in their conventional position if not in those modes. +\def\IEEEdisplaynontitleabstractindextext{% +% display for all conference formats +\ifCLASSOPTIONconference\@IEEEtitleabstractindextext\relax +\else% non-conferences + % V1.8a display for all technotes + \ifCLASSOPTIONtechnote\@IEEEtitleabstractindextext\relax + % V1.8a add diamond line after abstract and index terms for compsoc technotes + \@IEEEcompsoconly{\noindent\hfill\IEEEcompsocdiamondline\hfill\hbox{}\par}\relax + \else % non-conferences and non-technotes + \ifCLASSOPTIONcompsoc% display if not compsoc and not transmag + \else + \ifCLASSOPTIONtransmag + \else% not compsoc journal nor transmag journal + \@IEEEtitleabstractindextext\relax + \fi + \fi + \fi +\fi} + + +% command to allow alteration of baselinestretch, but only if the current +% baselineskip is unity. Used to tweak the compsoc abstract and keywords line spacing. +\def\@IEEEtweakunitybaselinestretch#1{{\def\baselinestretch{1}\selectfont +\global\@tempskipa\baselineskip}\ifnum\@tempskipa=\baselineskip% +\def\baselinestretch{#1}\selectfont\fi\relax} + + +% abstract and keywords are in \small, except +% for 9pt docs in which they are in \footnotesize +% Because 9pt docs use an 8pt footnotesize, \small +% becomes a rather awkward 8.5pt +\def\@IEEEabskeysecsize{\small} +\ifx\CLASSOPTIONpt\@IEEEptsizenine + \def\@IEEEabskeysecsize{\footnotesize} +\fi + +% compsoc journals use \footnotesize, compsoc conferences use normalsize +\@IEEEcompsoconly{\def\@IEEEabskeysecsize{\footnotesize}} +\@IEEEcompsocconfonly{\def\@IEEEabskeysecsize{\small}} + + +% V1.6 have abstract and keywords strip leading spaces, pars and newlines +% so that spacing is more tightly controlled. +\def\abstract{\normalfont + \if@twocolumn + \@IEEEabskeysecsize\bfseries\textit{\abstractname}---\relax + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize + \fi\@IEEEgobbleleadPARNLSP} +% V1.6 The IEEE wants only 1 pica from end of abstract to introduction heading when in +% conference mode (the heading already has this much above it) +\def\endabstract{\relax\ifCLASSOPTIONconference\vspace{0ex}\else\vspace{1.34ex}\fi\par\if@twocolumn\else\endquotation\fi + \normalfont\normalsize} + +\def\IEEEkeywords{\normalfont + \if@twocolumn + \@IEEEabskeysecsize\bfseries\textit{\IEEEkeywordsname}---\relax + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize + \fi\@IEEEgobbleleadPARNLSP} +\def\endIEEEkeywords{\relax\ifCLASSOPTIONtechnote\vspace{1.34ex}\else\vspace{0.67ex}\fi + \par\if@twocolumn\else\endquotation\fi% + \normalfont\normalsize} + +% V1.7 compsoc keywords index terms +\ifCLASSOPTIONcompsoc + \ifCLASSOPTIONconference% compsoc conference +\def\abstract{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\bfseries + \if@twocolumn + \@IEEEabskeysecsize\noindent\textit{\abstractname}---\relax + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize% + \fi\@IEEEgobbleleadPARNLSP} +\def\IEEEkeywords{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\bfseries + \if@twocolumn + \@IEEEabskeysecsize\vskip 0.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip\noindent + \textit{\IEEEkeywordsname}---\relax + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize% + \fi\@IEEEgobbleleadPARNLSP} + \else% compsoc not conference +\def\abstract{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\sffamily + \if@twocolumn + \@IEEEabskeysecsize\noindent\textbf{\abstractname}---\relax + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize% + \fi\@IEEEgobbleleadPARNLSP} +\def\IEEEkeywords{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\sffamily + \if@twocolumn + \@IEEEabskeysecsize\vskip 0.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip\noindent + \textbf{\IEEEkeywordsname}---\relax + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize% + \fi\@IEEEgobbleleadPARNLSP} + \fi +\fi + +% V1.8 transmag keywords index terms +% no abstract name, use indentation +\ifCLASSOPTIONtransmag +\def\abstract{\normalfont\parindent 1em\relax + \if@twocolumn + \@IEEEabskeysecsize\bfseries\indent + \else + \bgroup\par\addvspace{0.5\baselineskip}\centering\vspace{-1.78ex}\@IEEEabskeysecsize + \textbf{\abstractname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize + \fi\@IEEEgobbleleadPARNLSP} + +\def\IEEEkeywords{\normalfont\parindent 1em\relax + \if@twocolumn + \@IEEEabskeysecsize\vspace{1\baselineskip}\bfseries\indent\textit{\IEEEkeywordsname}---\relax + \else + \bgroup\par\vspace{1\baselineskip}\centering\@IEEEabskeysecsize + \textbf{\IEEEkeywordsname}\par\addvspace{0.5\baselineskip}\egroup\quotation\@IEEEabskeysecsize + \fi\@IEEEgobbleleadPARNLSP} +\fi + + + +% gobbles all leading \, \\ and \par, upon finding first token that +% is not a \ , \\ or a \par, it ceases and returns that token +% +% used to strip leading \, \\ and \par from the input +% so that such things in the beginning of an environment will not +% affect the formatting of the text +\long\def\@IEEEgobbleleadPARNLSP#1{\let\@IEEEswallowthistoken=0% +\let\@IEEEgobbleleadPARNLSPtoken#1% +\let\@IEEEgobbleleadPARtoken=\par% +\let\@IEEEgobbleleadNLtoken=\\% +\let\@IEEEgobbleleadSPtoken=\ % +\def\@IEEEgobbleleadSPMACRO{\ }% +\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadPARtoken% +\let\@IEEEswallowthistoken=1% +\fi% +\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadNLtoken% +\let\@IEEEswallowthistoken=1% +\fi% +\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadSPtoken% +\let\@IEEEswallowthistoken=1% +\fi% +% a control space will come in as a macro +% when it is the last one on a line +\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadSPMACRO% +\let\@IEEEswallowthistoken=1% +\fi% +% if we have to swallow this token, do so and taste the next one +% else spit it out and stop gobbling +\ifx\@IEEEswallowthistoken 1\let\@IEEEnextgobbleleadPARNLSP=\@IEEEgobbleleadPARNLSP\else% +\let\@IEEEnextgobbleleadPARNLSP=#1\fi% +\@IEEEnextgobbleleadPARNLSP}% + + + + +% TITLING OF SECTIONS +\def\@IEEEsectpunct{:\ \,} % Punctuation after run-in section heading (headings which are + % part of the paragraphs), need little bit more than a single space + % spacing from section number to title +% compsoc conferences use regular period/space punctuation +\ifCLASSOPTIONcompsoc +\ifCLASSOPTIONconference +\def\@IEEEsectpunct{.\ } +\fi\fi + + +\def\@seccntformat#1{\csname the#1dis\endcsname\hskip 0.5em\relax} + +\ifCLASSOPTIONcompsoc +% compsoc journals need extra spacing +\ifCLASSOPTIONconference\else +\def\@seccntformat#1{\csname the#1dis\endcsname\hskip 1em\relax} +\fi\fi + +%v1.7 put {} after #6 to allow for some types of user font control +%and use \@@par rather than \par +\def\@sect#1#2#3#4#5#6[#7]#8{% + \ifnum #2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{#1}% + % load section label and spacer into \@svsec + \protected@edef\@svsec{\@seccntformat{#1}\relax}% + \fi% + \@tempskipa #5\relax + \ifdim \@tempskipa>\z@% tempskipa determines whether is treated as a high + \begingroup #6{\relax% or low level heading + \noindent % subsections are NOT indented + % print top level headings. \@svsec is label, #8 is heading title + % The IEEE does not block indent the section title text, it flows like normal + {\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\@@par}}% + \endgroup + \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\relax\else + \protect\numberline{\csname the#1\endcsname}\fi#7}% + \else % printout low level headings + % svsechd seems to swallow the trailing space, protect it with \mbox{} + % got rid of sectionmark stuff + \def\@svsechd{#6{\hskip #3\relax\@svsec #8\@IEEEsectpunct\mbox{}}% + \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\relax\else + \protect\numberline{\csname the#1\endcsname}\fi#7}}% + \fi%skip down + \@xsect{#5}} + + +% section* handler +%v1.7 put {} after #4 to allow for some types of user font control +%and use \@@par rather than \par +\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax + \ifdim \@tempskipa>\z@ + %\begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M #5\par}\endgroup + % The IEEE does not block indent the section title text, it flows like normal + \begingroup \noindent #4{\relax{\hskip #1}{\interlinepenalty \@M #5\@@par}}\endgroup + % svsechd swallows the trailing space, protect it with \mbox{} + \else \def\@svsechd{#4{\hskip #1\relax #5\@IEEEsectpunct\mbox{}}}\fi + \@xsect{#3}} + + +%% SECTION heading spacing and font +%% +% arguments are: #1 - sectiontype name +% (for \@sect) #2 - section level +% #3 - section heading indent +% #4 - top separation (absolute value used, neg indicates not to indent main text) +% If negative, make stretch parts negative too! +% #5 - (absolute value used) positive: bottom separation after heading, +% negative: amount to indent main text after heading +% Both #4 and #5 negative means to indent main text and use negative top separation +% #6 - font control +% You've got to have \normalfont\normalsize in the font specs below to prevent +% trouble when you do something like: +% \section{Note}{\ttfamily TT-TEXT} is known to ... +% The IEEE sometimes REALLY stretches the area before a section +% heading by up to about 0.5in. However, it may not be a good +% idea to let LaTeX have quite this much rubber. +\ifCLASSOPTIONconference% +% The IEEE wants section heading spacing to decrease for conference mode +\def\section{\@startsection{section}{1}{\z@}{1.5ex plus 1.5ex minus 0.5ex}% +{0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\centering\scshape}}% +\def\subsection{\@startsection{subsection}{2}{\z@}{1.5ex plus 1.5ex minus 0.5ex}% +{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}% +\else % for journals +\def\section{\@startsection{section}{1}{\z@}{3.0ex plus 1.5ex minus 1.5ex}% V1.6 3.0ex from 3.5ex +{0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\centering\scshape}}% +\def\subsection{\@startsection{subsection}{2}{\z@}{3.5ex plus 1.5ex minus 1.5ex}% +{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}% +\fi + +% for both journals and conferences +% decided to put in a little rubber above the section, might help somebody +\def\subsubsection{\@startsection{subsubsection}{3}{\parindent}{0ex plus 0.1ex minus 0.1ex}% +{0ex}{\normalfont\normalsize\itshape}}% +\def\paragraph{\@startsection{paragraph}{4}{2\parindent}{0ex plus 0.1ex minus 0.1ex}% +{0ex}{\normalfont\normalsize\itshape}}% + + +% compsoc +\ifCLASSOPTIONcompsoc +\ifCLASSOPTIONconference +% compsoc conference +\def\section{\@startsection{section}{1}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}% +{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}{\normalfont\large\bfseries}}% +\def\subsection{\@startsection{subsection}{2}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}% +{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}{\normalfont\sublargesize\bfseries}}% +\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}% +{0ex}{\normalfont\normalsize\bfseries}}% +\def\paragraph{\@startsection{paragraph}{4}{2\parindent}{0ex plus 0.1ex minus 0.1ex}% +{0ex}{\normalfont\normalsize}}% +\else% compsoc journals +% use negative top separation as compsoc journals do not indent paragraphs after section titles +\def\section{\@startsection{section}{1}{\z@}{-3.5ex plus -2ex minus -1.5ex}% +{0.7ex plus 1ex minus 0ex}{\normalfont\sublargesize\sffamily\bfseries\scshape}}% +% Note that subsection and smaller may not be correct for the Computer Society, +% I have to look up an example. +\def\subsection{\@startsection{subsection}{2}{\z@}{-3.5ex plus -1.5ex minus -1.5ex}% +{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\sffamily\bfseries}}% +\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.5ex plus -1ex minus -1ex}% +{0.5ex plus 0.5ex minus 0ex}{\normalfont\normalsize\sffamily\itshape}}% +\def\paragraph{\@startsection{paragraph}{4}{2\parindent}{-0ex plus -0.1ex minus -0.1ex}% +{0ex}{\normalfont\normalsize}}% +\fi\fi + +% transmag +\ifCLASSOPTIONtransmag +\def\subsection{\@startsection{subsection}{2}{0.75\parindent}{3.5ex plus 1.5ex minus 1.5ex}% +{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}% +\def\subsubsection{\@startsection{subsubsection}{3}{1.25\parindent}{0.1ex plus 0.1ex minus 0.1ex}% +{0.1ex}{\normalfont\normalsize\itshape}}% +\fi + + +% V1.8a provide for a raised line Introduction section for use with Computer +% Society papers. We have to remove any spacing glue after the section +% heading and then remove the blank line for the new paragraph after it. +% LaTeX's section handler alters \everypar and we need to propogate those +% changes outside of the \parbox lest there be spacing problems at the top +% of the next section. +\def\IEEEraisesectionheading#1{\noindent\raisebox{1.5\baselineskip}[0pt][0pt]{\parbox[b]{\columnwidth}{#1\unskip\global\everypar=\everypar}}\vspace{-1\baselineskip}\vspace{-\parskip}\par} + + + +%% ENVIRONMENTS +% "box" symbols at end of proofs +\def\IEEEQEDclosed{\mbox{\rule[0pt]{1.3ex}{1.3ex}}} % for a filled box +% V1.6 some journals use an open box instead that will just fit around a closed one +\def\IEEEQEDopen{{\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{0.2pt}\fbox{\rule[0pt]{0pt}{1.3ex}\rule[0pt]{1.3ex}{0pt}}}} +\ifCLASSOPTIONcompsoc +\def\IEEEQED{\IEEEQEDopen} % default to open for compsoc +\else +\def\IEEEQED{\IEEEQEDclosed} % otherwise default to closed +\fi + +%V1.8 flag to indicate if QED symbol is to be shown +\newif\if@IEEEQEDshow \@IEEEQEDshowtrue +\def\IEEEproofindentspace{2\parindent}% V1.8 allow user to change indentation amount if desired +% v1.7 name change to avoid namespace collision with amsthm. Also add support +% for an optional argument. +\def\IEEEproof{\@ifnextchar[{\@IEEEproof}{\@IEEEproof[\IEEEproofname]}} +\def\@IEEEproof[#1]{\@IEEEQEDshowtrue\par\noindent\hspace{\IEEEproofindentspace}{\itshape #1: }} +\def\endIEEEproof{\if@IEEEQEDshow\hspace*{\fill}\nobreakspace\IEEEQED\fi\par} +% qedhere for equation environments, similar to AMS \qedhere +\def\IEEEQEDhereeqn{\global\@IEEEQEDshowfalse\eqno\let\eqno\relax\let\leqno\relax + \let\veqno\relax\hbox{\IEEEQED}} +% IEEE style qedhere for IEEEeqnarray and other environments +\def\IEEEQEDhere{\global\@IEEEQEDshowfalse\IEEEQED} +% command to disable QED at end of IEEEproof +\def\IEEEQEDoff{\global\@IEEEQEDshowfalse} + + +%\itemindent is set to \z@ by list, so define new temporary variable +\newdimen\@IEEEtmpitemindent + +\ifCLASSOPTIONcompsoc +% V1.8a compsoc uses bold theorem titles, a period instead of a colon, vertical spacing, and hanging indentation +% V1.8 allow long theorem names to break across lines. +% Thanks to Miquel Payaro for reporting this. +\def\@begintheorem#1#2{\@IEEEtmpitemindent\itemindent\relax + \topsep 0.2\@IEEEnormalsizeunitybaselineskip plus 0.26\@IEEEnormalsizeunitybaselineskip minus 0.05\@IEEEnormalsizeunitybaselineskip + \rmfamily\trivlist\hangindent\parindent% + \item[]\textit{\bfseries\noindent #1\ #2.} \itemindent\@IEEEtmpitemindent\relax} +\def\@opargbegintheorem#1#2#3{\@IEEEtmpitemindent\itemindent\relax +\topsep 0.2\@IEEEnormalsizeunitybaselineskip plus 0.26\@IEEEnormalsizeunitybaselineskip minus 0.05\@IEEEnormalsizeunitybaselineskip +\rmfamily\trivlist\hangindent\parindent% +% V1.6 The IEEE is back to using () around theorem names which are also in italics +% Thanks to Christian Peel for reporting this. + \item[]\textit{\bfseries\noindent #1\ #2\ (#3).} \itemindent\@IEEEtmpitemindent\relax} +% V1.7 remove bogus \unskip that caused equations in theorems to collide with +% lines below. +\def\@endtheorem{\endtrivlist\vskip 0.25\@IEEEnormalsizeunitybaselineskip plus 0.26\@IEEEnormalsizeunitybaselineskip minus 0.05\@IEEEnormalsizeunitybaselineskip} +\else +% +% noncompsoc +% +% V1.8 allow long theorem names to break across lines. +% Thanks to Miquel Payaro for reporting this. +\def\@begintheorem#1#2{\@IEEEtmpitemindent\itemindent\relax\topsep 0pt\rmfamily\trivlist% + \item[]\textit{\indent #1\ #2:} \itemindent\@IEEEtmpitemindent\relax} +\def\@opargbegintheorem#1#2#3{\@IEEEtmpitemindent\itemindent\relax\topsep 0pt\rmfamily \trivlist% +% V1.6 The IEEE is back to using () around theorem names which are also in italics +% Thanks to Christian Peel for reporting this. + \item[]\textit{\indent #1\ #2\ (#3):} \itemindent\@IEEEtmpitemindent\relax} +% V1.7 remove bogus \unskip that caused equations in theorems to collide with +% lines below. +\def\@endtheorem{\endtrivlist} +\fi + + + +% V1.6 +% display command for the section the theorem is in - so that \thesection +% is not used as this will be in Roman numerals when we want arabic. +% LaTeX2e uses \def\@thmcounter#1{\noexpand\arabic{#1}} for the theorem number +% (second part) display and \def\@thmcountersep{.} as a separator. +% V1.7 intercept calls to the section counter and reroute to \@IEEEthmcounterinsection +% to allow \appendix(ices} to override as needed. +% +% special handler for sections, allows appendix(ices) to override +\gdef\@IEEEthmcounterinsection#1{\arabic{#1}} +% string macro +\edef\@IEEEstringsection{section} + +% redefine the #1#2[#3] form of newtheorem to use a hook to \@IEEEthmcounterinsection +% if section in_counter is used +\def\@xnthm#1#2[#3]{% + \expandafter\@ifdefinable\csname #1\endcsname + {\@definecounter{#1}\@newctr{#1}[#3]% + \edef\@IEEEstringtmp{#3} + \ifx\@IEEEstringtmp\@IEEEstringsection + \expandafter\xdef\csname the#1\endcsname{% + \noexpand\@IEEEthmcounterinsection{#3}\@thmcountersep + \@thmcounter{#1}}% + \else + \expandafter\xdef\csname the#1\endcsname{% + \expandafter\noexpand\csname the#3\endcsname \@thmcountersep + \@thmcounter{#1}}% + \fi + \global\@namedef{#1}{\@thm{#1}{#2}}% + \global\@namedef{end#1}{\@endtheorem}}} + + + +%% SET UP THE DEFAULT PAGESTYLE +\pagestyle{headings} +\pagenumbering{arabic} + +% normally the page counter starts at 1 +\setcounter{page}{1} +% however, for peerreview the cover sheet is page 0 or page -1 +% (for duplex printing) +\ifCLASSOPTIONpeerreview + \if@twoside + \setcounter{page}{-1} + \else + \setcounter{page}{0} + \fi +\fi + +% standard book class behavior - let bottom line float up and down as +% needed when single sided +\ifCLASSOPTIONtwoside\else\raggedbottom\fi +% if two column - turn on twocolumn, allow word spacings to stretch more and +% enforce a rigid position for the last lines +\ifCLASSOPTIONtwocolumn +% the peer review option delays invoking twocolumn + \ifCLASSOPTIONpeerreview\else + \twocolumn + \fi +\sloppy +\flushbottom +\fi + + + + +% \APPENDIX and \APPENDICES definitions + +% This is the \@ifmtarg command from the LaTeX ifmtarg package +% by Peter Wilson (CUA) and Donald Arseneau +% \@ifmtarg is used to determine if an argument to a command +% is present or not. +% For instance: +% \@ifmtarg{#1}{\typeout{empty}}{\typeout{has something}} +% \@ifmtarg is used with our redefined \section command if +% \appendices is invoked. +% The command \section will behave slightly differently depending +% on whether the user specifies a title: +% \section{My appendix title} +% or not: +% \section{} +% This way, we can eliminate the blank lines where the title +% would be, and the unneeded : after Appendix in the table of +% contents +\begingroup +\catcode`\Q=3 +\long\gdef\@ifmtarg#1{\@xifmtarg#1QQ\@secondoftwo\@firstoftwo\@nil} +\long\gdef\@xifmtarg#1#2Q#3#4#5\@nil{#4} +\endgroup +% end of \@ifmtarg defs + + +% V1.7 +% command that allows the one time saving of the original definition +% of section to \@IEEEappendixsavesection for \appendix or \appendices +% we don't save \section here as it may be redefined later by other +% packages (hyperref.sty, etc.) +\def\@IEEEsaveoriginalsectiononce{\let\@IEEEappendixsavesection\section +\let\@IEEEsaveoriginalsectiononce\relax} + +% neat trick to grab and process the argument from \section{argument} +% we process differently if the user invoked \section{} with no +% argument (title) +% note we reroute the call to the old \section* +\def\@IEEEprocessthesectionargument#1{% +\@ifmtarg{#1}{% +\@IEEEappendixsavesection*{\appendixname\nobreakspace\thesectiondis}% +\addcontentsline{toc}{section}{\appendixname\nobreakspace\thesection}}{% +\@IEEEappendixsavesection*{\appendixname\nobreakspace\thesectiondis\\* #1}% +\addcontentsline{toc}{section}{\appendixname\nobreakspace\thesection: #1}}} + +% we use this if the user calls \section{} after +% \appendix-- which has no meaning. So, we ignore the +% command and its argument. Then, warn the user. +\def\@IEEEdestroythesectionargument#1{\typeout{** WARNING: Ignoring useless +\protect\section\space in Appendix (line \the\inputlineno).}} + + +% remember \thesection forms will be displayed in \ref calls +% and in the Table of Contents. +% The \sectiondis form is used in the actual heading itself + +% appendix command for one single appendix +% normally has no heading. However, if you want a +% heading, you can do so via the optional argument: +% \appendix[Optional Heading] +\def\appendix{\relax} +\renewcommand{\appendix}[1][]{\@IEEEsaveoriginalsectiononce\par + % v1.6 keep hyperref's identifiers unique + \gdef\theHsection{Appendix.A}% + % v1.6 adjust hyperref's string name for the section + \xdef\Hy@chapapp{appendix}% + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \setcounter{subsubsection}{0}% + \setcounter{paragraph}{0}% + \gdef\thesection{A}% + \gdef\thesectiondis{}% + \gdef\thesubsection{\Alph{subsection}}% + \gdef\@IEEEthmcounterinsection##1{A} + \refstepcounter{section}% update the \ref counter + \@ifmtarg{#1}{\@IEEEappendixsavesection*{\appendixname}% + \addcontentsline{toc}{section}{\appendixname}}{% + \@IEEEappendixsavesection*{\appendixname\nobreakspace\\* #1}% + \addcontentsline{toc}{section}{\appendixname: #1}}% + % redefine \section command for appendix + % leave \section* as is + \def\section{\@ifstar{\@IEEEappendixsavesection*}{% + \@IEEEdestroythesectionargument}}% throw out the argument + % of the normal form +} + + + +% appendices command for multiple appendices +% user then calls \section with an argument (possibly empty) to +% declare the individual appendices +\def\appendices{\@IEEEsaveoriginalsectiononce\par + % v1.6 keep hyperref's identifiers unique + \gdef\theHsection{Appendix.\Alph{section}}% + % v1.6 adjust hyperref's string name for the section + \xdef\Hy@chapapp{appendix}% + \setcounter{section}{-1}% we want \refstepcounter to use section 0 + \setcounter{subsection}{0}% + \setcounter{subsubsection}{0}% + \setcounter{paragraph}{0}% + \ifCLASSOPTIONromanappendices% + \gdef\thesection{\Roman{section}}% + \gdef\thesectiondis{\Roman{section}}% + \@IEEEcompsocconfonly{\gdef\thesectiondis{\Roman{section}.}}% + \gdef\@IEEEthmcounterinsection##1{A\arabic{##1}} + \else% + \gdef\thesection{\Alph{section}}% + \gdef\thesectiondis{\Alph{section}}% + \@IEEEcompsocconfonly{\gdef\thesectiondis{\Alph{section}.}}% + \gdef\@IEEEthmcounterinsection##1{\Alph{##1}} + \fi% + \refstepcounter{section}% update the \ref counter + \setcounter{section}{0}% NEXT \section will be the FIRST appendix + % redefine \section command for appendices + % leave \section* as is + \def\section{\@ifstar{\@IEEEappendixsavesection*}{% process the *-form + \refstepcounter{section}% or is a new section so, + \@IEEEprocessthesectionargument}}% process the argument + % of the normal form +} + + + +% V1.7 compoc uses nonbold drop cap and small caps word style +\ifCLASSOPTIONcompsoc + \def\IEEEPARstartFONTSTYLE{\mdseries} + \def\IEEEPARstartWORDFONTSTYLE{\scshape} + \def\IEEEPARstartWORDCAPSTYLE{\relax} +\fi +% +% +% \IEEEPARstart +% Definition for the big two line drop cap letter at the beginning of the +% first paragraph of journal papers. The first argument is the first letter +% of the first word, the second argument is the remaining letters of the +% first word which will be rendered in upper case. +% In V1.6 this has been completely rewritten to: +% +% 1. no longer have problems when the user begins an environment +% within the paragraph that uses \IEEEPARstart. +% 2. auto-detect and use the current font family +% 3. revise handling of the space at the end of the first word so that +% interword glue will now work as normal. +% 4. produce correctly aligned edges for the (two) indented lines. +% +% We generalize things via control macros - playing with these is fun too. +% +% V1.7 added more control macros to make it easy for IEEEtrantools.sty users +% to change the font style. +% +% the number of lines that are indented to clear it +% may need to increase if using decenders +\providecommand{\IEEEPARstartDROPLINES}{2} +% minimum number of lines left on a page to allow a \@IEEEPARstart +% Does not take into consideration rubber shrink, so it tends to +% be overly cautious +\providecommand{\IEEEPARstartMINPAGELINES}{2} +% V1.7 the height of the drop cap is adjusted to match the height of this text +% in the current font (when \IEEEPARstart is called). +\providecommand{\IEEEPARstartHEIGHTTEXT}{T} +% the depth the letter is lowered below the baseline +% the height (and size) of the letter is determined by the sum +% of this value and the height of the \IEEEPARstartHEIGHTTEXT in the current +% font. It is a good idea to set this value in terms of the baselineskip +% so that it can respond to changes therein. +\providecommand{\IEEEPARstartDROPDEPTH}{1.1\baselineskip} +% V1.7 the font the drop cap will be rendered in, +% can take zero or one argument. +\providecommand{\IEEEPARstartFONTSTYLE}{\bfseries} +% V1.7 any additional, non-font related commands needed to modify +% the drop cap letter, can take zero or one argument. +\providecommand{\IEEEPARstartCAPSTYLE}{\MakeUppercase} +% V1.7 the font that will be used to render the rest of the word, +% can take zero or one argument. +\providecommand{\IEEEPARstartWORDFONTSTYLE}{\relax} +% V1.7 any additional, non-font related commands needed to modify +% the rest of the word, can take zero or one argument. +\providecommand{\IEEEPARstartWORDCAPSTYLE}{\MakeUppercase} +% This is the horizontal separation distance from the drop letter to the main text. +% Lengths that depend on the font (e.g., ex, em, etc.) will be referenced +% to the font that is active when \IEEEPARstart is called. +\providecommand{\IEEEPARstartSEP}{0.15em} +% V1.7 horizontal offset applied to the left of the drop cap. +\providecommand{\IEEEPARstartHOFFSET}{0em} +% V1.7 Italic correction command applied at the end of the drop cap. +\providecommand{\IEEEPARstartITLCORRECT}{\/} + +% width of the letter output, set globally. Can be used in \IEEEPARstartSEP +% or \IEEEPARstartHOFFSET, but not the height lengths. +\newdimen\IEEEPARstartletwidth +\IEEEPARstartletwidth 0pt\relax + +% definition of \IEEEPARstart +% THIS IS A CONTROLLED SPACING AREA, DO NOT ALLOW SPACES WITHIN THESE LINES +% +% The token \@IEEEPARstartfont will be globally defined after the first use +% of \IEEEPARstart and will be a font command which creates the big letter +% The first argument is the first letter of the first word and the second +% argument is the rest of the first word(s). +\def\IEEEPARstart#1#2{\par{% +% if this page does not have enough space, break it and lets start +% on a new one +\@IEEEtranneedspace{\IEEEPARstartMINPAGELINES\baselineskip}{\relax}% +% V1.7 move this up here in case user uses \textbf for \IEEEPARstartFONTSTYLE +% which uses command \leavevmode which causes an unwanted \indent to be issued +\noindent +% calculate the desired height of the big letter +% it extends from the top of \IEEEPARstartHEIGHTTEXT in the current font +% down to \IEEEPARstartDROPDEPTH below the current baseline +\settoheight{\@IEEEtrantmpdimenA}{\IEEEPARstartHEIGHTTEXT}% +\addtolength{\@IEEEtrantmpdimenA}{\IEEEPARstartDROPDEPTH}% +% extract the name of the current font in bold +% and place it in \@IEEEPARstartFONTNAME +\def\@IEEEPARstartGETFIRSTWORD##1 ##2\relax{##1}% +{\IEEEPARstartFONTSTYLE{\selectfont\edef\@IEEEPARstartFONTNAMESPACE{\fontname\font\space}% +\xdef\@IEEEPARstartFONTNAME{\expandafter\@IEEEPARstartGETFIRSTWORD\@IEEEPARstartFONTNAMESPACE\relax}}}% +% define a font based on this name with a point size equal to the desired +% height of the drop letter +\font\@IEEEPARstartsubfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenA\relax% +% save this value as a counter (integer) value (sp points) +\@IEEEtrantmpcountA=\@IEEEtrantmpdimenA% +% now get the height of the actual letter produced by this font size +\settoheight{\@IEEEtrantmpdimenB}{\@IEEEPARstartsubfont\IEEEPARstartCAPSTYLE{#1}}% +% If something bogus happens like the first argument is empty or the +% current font is strange, do not allow a zero height. +\ifdim\@IEEEtrantmpdimenB=0pt\relax% +\typeout{** WARNING: IEEEPARstart drop letter has zero height! (line \the\inputlineno)}% +\typeout{ Forcing the drop letter font size to 10pt.}% +\@IEEEtrantmpdimenB=10pt% +\fi% +% and store it as a counter +\@IEEEtrantmpcountB=\@IEEEtrantmpdimenB% +% Since a font size doesn't exactly correspond to the height of the capital +% letters in that font, the actual height of the letter, \@IEEEtrantmpcountB, +% will be less than that desired, \@IEEEtrantmpcountA +% we need to raise the font size, \@IEEEtrantmpdimenA +% by \@IEEEtrantmpcountA / \@IEEEtrantmpcountB +% But, TeX doesn't have floating point division, so we have to use integer +% division. Hence the use of the counters. +% We need to reduce the denominator so that the loss of the remainder will +% have minimal affect on the accuracy of the result +\divide\@IEEEtrantmpcountB by 200% +\divide\@IEEEtrantmpcountA by \@IEEEtrantmpcountB% +% Then reequalize things when we use TeX's ability to multiply by +% floating point values +\@IEEEtrantmpdimenB=0.005\@IEEEtrantmpdimenA% +\multiply\@IEEEtrantmpdimenB by \@IEEEtrantmpcountA% +% \@IEEEPARstartfont is globaly set to the calculated font of the big letter +% We need to carry this out of the local calculation area to to create the +% big letter. +\global\font\@IEEEPARstartfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenB% +% Now set \@IEEEtrantmpdimenA to the width of the big letter +% We need to carry this out of the local calculation area to set the +% hanging indent +\settowidth{\global\@IEEEtrantmpdimenA}{\@IEEEPARstartfont +\IEEEPARstartCAPSTYLE{#1\IEEEPARstartITLCORRECT}}}% +% end of the isolated calculation environment +\global\IEEEPARstartletwidth\@IEEEtrantmpdimenA\relax% +% add in the extra clearance we want +\advance\@IEEEtrantmpdimenA by \IEEEPARstartSEP\relax% +% add in the optional offset +\advance\@IEEEtrantmpdimenA by \IEEEPARstartHOFFSET\relax% +% V1.7 don't allow negative offsets to produce negative hanging indents +\@IEEEtrantmpdimenB\@IEEEtrantmpdimenA +\ifnum\@IEEEtrantmpdimenB < 0 \@IEEEtrantmpdimenB 0pt\fi +% \@IEEEtrantmpdimenA has the width of the big letter plus the +% separation space and \@IEEEPARstartfont is the font we need to use +% Now, we make the letter and issue the hanging indent command +% The letter is placed in a box of zero width and height so that other +% text won't be displaced by it. +\hangindent\@IEEEtrantmpdimenB\hangafter=-\IEEEPARstartDROPLINES% +\makebox[0pt][l]{\hspace{-\@IEEEtrantmpdimenA}% +\raisebox{-\IEEEPARstartDROPDEPTH}[0pt][0pt]{\hspace{\IEEEPARstartHOFFSET}% +\@IEEEPARstartfont\IEEEPARstartCAPSTYLE{#1\IEEEPARstartITLCORRECT}% +\hspace{\IEEEPARstartSEP}}}% +{\IEEEPARstartWORDFONTSTYLE{\IEEEPARstartWORDCAPSTYLE{\selectfont#2}}}} + + + + +% determines if the space remaining on a given page is equal to or greater +% than the specified space of argument one +% if not, execute argument two (only if the remaining space is greater than zero) +% and issue a \newpage +% +% example: \@IEEEtranneedspace{2in}{\vfill} +% +% Does not take into consideration rubber shrinkage, so it tends to +% be overly cautious +% Based on an example posted by Donald Arseneau +% Note this macro uses \@IEEEtrantmpdimenB internally for calculations, +% so DO NOT PASS \@IEEEtrantmpdimenB to this routine +% if you need a dimen register, import with \@IEEEtrantmpdimenA instead +\def\@IEEEtranneedspace#1#2{\penalty-100\begingroup%shield temp variable +\@IEEEtrantmpdimenB\pagegoal\advance\@IEEEtrantmpdimenB-\pagetotal% space left +\ifdim #1>\@IEEEtrantmpdimenB\relax% not enough space left +\ifdim\@IEEEtrantmpdimenB>\z@\relax #2\fi% +\newpage% +\fi\endgroup} + + + +% IEEEbiography ENVIRONMENT +% Allows user to enter biography leaving place for picture (adapts to font size) +% As of V1.5, a new optional argument allows you to have a real graphic! +% V1.5 and later also fixes the "colliding biographies" which could happen when a +% biography's text was shorter than the space for the photo. +% MDS 7/2001 +% V1.6 prevent multiple biographies from making multiple TOC entries +\newif\if@IEEEbiographyTOCentrynotmade +\global\@IEEEbiographyTOCentrynotmadetrue + +% biography counter so hyperref can jump directly to the biographies +% and not just the previous section +\newcounter{IEEEbiography} +\setcounter{IEEEbiography}{0} + +% photo area size +\def\@IEEEBIOphotowidth{1.0in} % width of the biography photo area +\def\@IEEEBIOphotodepth{1.25in} % depth (height) of the biography photo area +% area cleared for photo +\def\@IEEEBIOhangwidth{1.14in} % width cleared for the biography photo area +\def\@IEEEBIOhangdepth{1.25in} % depth cleared for the biography photo area + % actual depth will be a multiple of + % \baselineskip, rounded up +\def\@IEEEBIOskipN{4\baselineskip}% nominal value of the vskip above the biography + +\newenvironment{IEEEbiography}[2][]{\normalfont\@IEEEcompsoconly{\sffamily}\footnotesize% +\unitlength 1in\parskip=0pt\par\parindent 1em\interlinepenalty500% +% we need enough space to support the hanging indent +% the nominal value of the spacer +% and one extra line for good measure +\@IEEEtrantmpdimenA=\@IEEEBIOhangdepth% +\advance\@IEEEtrantmpdimenA by \@IEEEBIOskipN% +\advance\@IEEEtrantmpdimenA by 1\baselineskip% +% if this page does not have enough space, break it and lets start +% with a new one +\@IEEEtranneedspace{\@IEEEtrantmpdimenA}{\relax}% +% nominal spacer can strech, not shrink use 1fil so user can out stretch with \vfill +\vskip \@IEEEBIOskipN plus 1fil minus 0\baselineskip% +% the default box for where the photo goes +\def\@IEEEtempbiographybox{{\setlength{\fboxsep}{0pt}\framebox{% +\begin{minipage}[b][\@IEEEBIOphotodepth][c]{\@IEEEBIOphotowidth}\centering PLACE\\ PHOTO\\ HERE \end{minipage}}}}% +% +% detect if the optional argument was supplied, this requires the +% \@ifmtarg command as defined in the appendix section above +% and if so, override the default box with what they want +\@ifmtarg{#1}{\relax}{\def\@IEEEtempbiographybox{\mbox{\begin{minipage}[b][\@IEEEBIOphotodepth][c]{\@IEEEBIOphotowidth}% +\centering% +#1% +\end{minipage}}}}% end if optional argument supplied +% Make an entry into the table of contents only if we have not done so before +\if@IEEEbiographyTOCentrynotmade% +% link labels to the biography counter so hyperref will jump +% to the biography, not the previous section +\setcounter{IEEEbiography}{-1}% +\refstepcounter{IEEEbiography}% +\addcontentsline{toc}{section}{Biographies}% +\global\@IEEEbiographyTOCentrynotmadefalse% +\fi% +% one more biography +\refstepcounter{IEEEbiography}% +% Make an entry for this name into the table of contents +\addcontentsline{toc}{subsection}{#2}% +% V1.6 properly handle if a new paragraph should occur while the +% hanging indent is still active. Do this by redefining \par so +% that it will not start a new paragraph. (But it will appear to the +% user as if it did.) Also, strip any leading pars, newlines, or spaces. +\let\@IEEEBIOORGparCMD=\par% save the original \par command +\edef\par{\hfil\break\indent}% the new \par will not be a "real" \par +\settoheight{\@IEEEtrantmpdimenA}{\@IEEEtempbiographybox}% get height of biography box +\@IEEEtrantmpdimenB=\@IEEEBIOhangdepth% +\@IEEEtrantmpcountA=\@IEEEtrantmpdimenB% countA has the hang depth +\divide\@IEEEtrantmpcountA by \baselineskip% calculates lines needed to produce the hang depth +\advance\@IEEEtrantmpcountA by 1% ensure we overestimate +% set the hanging indent +\hangindent\@IEEEBIOhangwidth% +\hangafter-\@IEEEtrantmpcountA% +% reference the top of the photo area to the top of a capital T +\settoheight{\@IEEEtrantmpdimenB}{\mbox{T}}% +% set the photo box, give it zero width and height so as not to disturb anything +\noindent\makebox[0pt][l]{\hspace{-\@IEEEBIOhangwidth}\raisebox{\@IEEEtrantmpdimenB}[0pt][0pt]{% +\raisebox{-\@IEEEBIOphotodepth}[0pt][0pt]{\@IEEEtempbiographybox}}}% +% now place the author name and begin the bio text +\noindent\textbf{#2\ }\@IEEEgobbleleadPARNLSP}{\relax\let\par=\@IEEEBIOORGparCMD\par% +% 7/2001 V1.5 detect when the biography text is shorter than the photo area +% and pad the unused area - preventing a collision from the next biography entry +% MDS +\ifnum \prevgraf <\@IEEEtrantmpcountA\relax% detect when the biography text is shorter than the photo + \advance\@IEEEtrantmpcountA by -\prevgraf% calculate how many lines we need to pad + \advance\@IEEEtrantmpcountA by -1\relax% we compensate for the fact that we indented an extra line + \@IEEEtrantmpdimenA=\baselineskip% calculate the length of the padding + \multiply\@IEEEtrantmpdimenA by \@IEEEtrantmpcountA% + \noindent\rule{0pt}{\@IEEEtrantmpdimenA}% insert an invisible support strut +\fi% +\par\normalfont} + + + +% V1.6 +% added biography without a photo environment +\newenvironment{IEEEbiographynophoto}[1]{% +% Make an entry into the table of contents only if we have not done so before +\if@IEEEbiographyTOCentrynotmade% +% link labels to the biography counter so hyperref will jump +% to the biography, not the previous section +\setcounter{IEEEbiography}{-1}% +\refstepcounter{IEEEbiography}% +\addcontentsline{toc}{section}{Biographies}% +\global\@IEEEbiographyTOCentrynotmadefalse% +\fi% +% one more biography +\refstepcounter{IEEEbiography}% +% Make an entry for this name into the table of contents +\addcontentsline{toc}{subsection}{#1}% +\normalfont\@IEEEcompsoconly{\sffamily}\footnotesize\interlinepenalty500% +\vskip 4\baselineskip plus 1fil minus 0\baselineskip% +\parskip=0pt\par% +\noindent\textbf{#1\ }\@IEEEgobbleleadPARNLSP}{\relax\par\normalfont} + + +% provide the user with some old font commands +% got this from article.cls +\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} +\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} +\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt} +\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} +\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit} +\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl} +\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} +\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal} +\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal} + + +% SPECIAL PAPER NOTICE COMMANDS +% +% holds the special notice text +\def\@IEEEspecialpapernotice{\relax} + +% for special papers, like invited papers, the user can do: +% \IEEEspecialpapernotice{(Invited Paper)} before \maketitle +\def\IEEEspecialpapernotice#1{\ifCLASSOPTIONconference% +\def\@IEEEspecialpapernotice{{\sublargesize\textit{#1}\vspace*{1em}}}% +\else% +\def\@IEEEspecialpapernotice{{\\*[1.5ex]\sublargesize\textit{#1}}\vspace*{-2ex}}% +\fi} + + + + +% PUBLISHER ID COMMANDS +% to insert a publisher's ID footer +% V1.6 \IEEEpubid has been changed so that the change in page size and style +% occurs in \maketitle. \IEEEpubid must now be issued prior to \maketitle +% use \IEEEpubidadjcol as before - in the second column of the title page +% These changes allow \maketitle to take the reduced page height into +% consideration when dynamically setting the space between the author +% names and the maintext. +% +% the amount the main text is pulled up to make room for the +% publisher's ID footer +% The IEEE uses about 1.3\baselineskip for journals, +% dynamic title spacing will clean up the fraction +\def\@IEEEpubidpullup{1.3\baselineskip} +\ifCLASSOPTIONtechnote +% for technotes it must be an integer of baselineskip as there can be no +% dynamic title spacing for two column mode technotes (the title is in the +% in first column) and we should maintain an integer number of lines in the +% second column +% There are some examples (such as older issues of "Transactions on +% Information Theory") in which the IEEE really pulls the text off the ID for +% technotes - about 0.55in (or 4\baselineskip). We'll use 2\baselineskip +% and call it even. +\def\@IEEEpubidpullup{2\baselineskip} +\fi + +% V1.7 compsoc does not use a pullup +\ifCLASSOPTIONcompsoc +\def\@IEEEpubidpullup{0pt} +\fi + +% holds the ID text +\def\@IEEEpubid{\relax} + +% flag so \maketitle can tell if \IEEEpubid was called +\newif\if@IEEEusingpubid +\global\@IEEEusingpubidfalse +% issue this command in the page to have the ID at the bottom +% V1.6 use before \maketitle +\def\IEEEpubid#1{\def\@IEEEpubid{#1}\global\@IEEEusingpubidtrue} + + +% command which will pull up (shorten) the column it is executed in +% to make room for the publisher ID. Place in the second column of +% the title page when using \IEEEpubid +% Is smart enough not to do anything when in single column text or +% if the user hasn't called \IEEEpubid +% currently needed in for the second column of a page with the +% publisher ID. If not needed in future releases, please provide this +% command and define it as \relax for backward compatibility +% v1.6b do not allow command to operate if the peer review option has been +% selected because \IEEEpubidadjcol will not be on the cover page. +% V1.7 do nothing if compsoc +\def\IEEEpubidadjcol{\ifCLASSOPTIONcompsoc\else\ifCLASSOPTIONpeerreview\else +\if@twocolumn\if@IEEEusingpubid\enlargethispage{-\@IEEEpubidpullup}\fi\fi\fi\fi} + +% Special thanks to Peter Wilson, Daniel Luecking, and the other +% gurus at comp.text.tex, for helping me to understand how best to +% implement the IEEEpubid command in LaTeX. + + + +%% Lockout some commands under various conditions + +% general purpose bit bucket +\newsavebox{\@IEEEtranrubishbin} + +% flags to prevent multiple warning messages +\newif\if@IEEEWARNthanks +\newif\if@IEEEWARNIEEEPARstart +\newif\if@IEEEWARNIEEEbiography +\newif\if@IEEEWARNIEEEbiographynophoto +\newif\if@IEEEWARNIEEEpubid +\newif\if@IEEEWARNIEEEpubidadjcol +\newif\if@IEEEWARNIEEEmembership +\newif\if@IEEEWARNIEEEaftertitletext +\@IEEEWARNthankstrue +\@IEEEWARNIEEEPARstarttrue +\@IEEEWARNIEEEbiographytrue +\@IEEEWARNIEEEbiographynophototrue +\@IEEEWARNIEEEpubidtrue +\@IEEEWARNIEEEpubidadjcoltrue +\@IEEEWARNIEEEmembershiptrue +\@IEEEWARNIEEEaftertitletexttrue + + +%% Lockout some commands when in various modes, but allow them to be restored if needed +%% +% save commands which might be locked out +% so that the user can later restore them if needed +\let\@IEEESAVECMDthanks\thanks +\let\@IEEESAVECMDIEEEPARstart\IEEEPARstart +\let\@IEEESAVECMDIEEEbiography\IEEEbiography +\let\@IEEESAVECMDendIEEEbiography\endIEEEbiography +\let\@IEEESAVECMDIEEEbiographynophoto\IEEEbiographynophoto +\let\@IEEESAVECMDendIEEEbiographynophoto\endIEEEbiographynophoto +\let\@IEEESAVECMDIEEEpubid\IEEEpubid +\let\@IEEESAVECMDIEEEpubidadjcol\IEEEpubidadjcol +\let\@IEEESAVECMDIEEEmembership\IEEEmembership +\let\@IEEESAVECMDIEEEaftertitletext\IEEEaftertitletext + + +% disable \IEEEPARstart when in draft mode +% This may have originally been done because the pre-V1.6 drop letter +% algorithm had problems with a non-unity baselinestretch +% At any rate, it seems too formal to have a drop letter in a draft +% paper. +\ifCLASSOPTIONdraftcls +\def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** ATTENTION: \noexpand\IEEEPARstart + is disabled in draft mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse} +\fi +% and for technotes +\ifCLASSOPTIONtechnote +\def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** WARNING: \noexpand\IEEEPARstart + is locked out for technotes (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse} +\fi + + +% lockout unneeded commands when in conference mode +\ifCLASSOPTIONconference +% when locked out, \thanks, \IEEEbiography, \IEEEbiographynophoto, \IEEEpubid, +% \IEEEmembership and \IEEEaftertitletext will all swallow their given text. +% \IEEEPARstart will output a normal character instead +% warn the user about these commands only once to prevent the console screen +% from filling up with redundant messages +\def\thanks#1{\if@IEEEWARNthanks\typeout{** WARNING: \noexpand\thanks + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNthanksfalse} +\def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** WARNING: \noexpand\IEEEPARstart + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse} + + +% LaTeX treats environments and commands with optional arguments differently. +% the actual ("internal") command is stored as \\commandname +% (accessed via \csname\string\commandname\endcsname ) +% the "external" command \commandname is a macro with code to determine +% whether or not the optional argument is presented and to provide the +% default if it is absent. So, in order to save and restore such a command +% we would have to save and restore \\commandname as well. But, if LaTeX +% ever changes the way it names the internal names, the trick would break. +% Instead let us just define a new environment so that the internal +% name can be left undisturbed. +\newenvironment{@IEEEbogusbiography}[2][]{\if@IEEEWARNIEEEbiography\typeout{** WARNING: \noexpand\IEEEbiography + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEbiographyfalse% +\setbox\@IEEEtranrubishbin\vbox\bgroup}{\egroup\relax} +% and make biography point to our bogus biography +\let\IEEEbiography=\@IEEEbogusbiography +\let\endIEEEbiography=\end@IEEEbogusbiography + +\renewenvironment{IEEEbiographynophoto}[1]{\if@IEEEWARNIEEEbiographynophoto\typeout{** WARNING: \noexpand\IEEEbiographynophoto + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEbiographynophotofalse% +\setbox\@IEEEtranrubishbin\vbox\bgroup}{\egroup\relax} + +\def\IEEEpubid#1{\if@IEEEWARNIEEEpubid\typeout{** WARNING: \noexpand\IEEEpubid + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEpubidfalse} +\def\IEEEpubidadjcol{\if@IEEEWARNIEEEpubidadjcol\typeout{** WARNING: \noexpand\IEEEpubidadjcol + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEpubidadjcolfalse} +\def\IEEEmembership#1{\if@IEEEWARNIEEEmembership\typeout{** WARNING: \noexpand\IEEEmembership + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEmembershipfalse} +\def\IEEEaftertitletext#1{\if@IEEEWARNIEEEaftertitletext\typeout{** WARNING: \noexpand\IEEEaftertitletext + is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEaftertitletextfalse} +\fi + + +% provide a way to restore the commands that are locked out +\def\IEEEoverridecommandlockouts{% +\typeout{** ATTENTION: Overriding command lockouts (line \the\inputlineno).}% +\let\thanks\@IEEESAVECMDthanks% +\let\IEEEPARstart\@IEEESAVECMDIEEEPARstart% +\let\IEEEbiography\@IEEESAVECMDIEEEbiography% +\let\endIEEEbiography\@IEEESAVECMDendIEEEbiography% +\let\IEEEbiographynophoto\@IEEESAVECMDIEEEbiographynophoto% +\let\endIEEEbiographynophoto\@IEEESAVECMDendIEEEbiographynophoto% +\let\IEEEpubid\@IEEESAVECMDIEEEpubid% +\let\IEEEpubidadjcol\@IEEESAVECMDIEEEpubidadjcol% +\let\IEEEmembership\@IEEESAVECMDIEEEmembership% +\let\IEEEaftertitletext\@IEEESAVECMDIEEEaftertitletext} + + + +% need a backslash character for typeout output +{\catcode`\|=0 \catcode`\\=12 +|xdef|@IEEEbackslash{\}} + + +% hook to allow easy disabling of all legacy warnings +\def\@IEEElegacywarn#1#2{\typeout{** ATTENTION: \@IEEEbackslash #1 is deprecated (line \the\inputlineno). +Use \@IEEEbackslash #2 instead.}} + + +% provide some legacy IEEEtran commands +\def\IEEEcompsoctitleabstractindextext{\@IEEElegacywarn{IEEEcompsoctitleabstractindextext}{IEEEtitleabstractindextext}\IEEEtitleabstractindextext} +\def\IEEEdisplaynotcompsoctitleabstractindextext{\@IEEElegacywarn{IEEEdisplaynotcompsoctitleabstractindextext}{IEEEdisplaynontitleabstractindextext}\IEEEdisplaynontitleabstractindextext} +% provide some legacy IEEEtran environments + + +% V1.8a no more support for these legacy commands +%\def\authorblockA{\@IEEElegacywarn{authorblockA}{IEEEauthorblockA}\IEEEauthorblockA} +%\def\authorblockN{\@IEEElegacywarn{authorblockN}{IEEEauthorblockN}\IEEEauthorblockN} +%\def\authorrefmark{\@IEEElegacywarn{authorrefmark}{IEEEauthorrefmark}\IEEEauthorrefmark} +%\def\PARstart{\@IEEElegacywarn{PARstart}{IEEEPARstart}\IEEEPARstart} +%\def\pubid{\@IEEElegacywarn{pubid}{IEEEpubid}\IEEEpubid} +%\def\pubidadjcol{\@IEEElegacywarn{pubidadjcol}{IEEEpubidadjcol}\IEEEpubidadjcol} +%\def\specialpapernotice{\@IEEElegacywarn{specialpapernotice}{IEEEspecialpapernotice}\IEEEspecialpapernotice} +% and environments +%\def\keywords{\@IEEElegacywarn{keywords}{IEEEkeywords}\IEEEkeywords} +%\def\endkeywords{\endIEEEkeywords} +% V1.8 no more support for legacy IED list commands +%\let\labelindent\IEEElabelindent +%\def\calcleftmargin{\@IEEElegacywarn{calcleftmargin}{IEEEcalcleftmargin}\IEEEcalcleftmargin} +%\def\setlabelwidth{\@IEEElegacywarn{setlabelwidth}{IEEEsetlabelwidth}\IEEEsetlabelwidth} +%\def\usemathlabelsep{\@IEEElegacywarn{usemathlabelsep}{IEEEusemathlabelsep}\IEEEusemathlabelsep} +%\def\iedlabeljustifyc{\@IEEElegacywarn{iedlabeljustifyc}{IEEEiedlabeljustifyc}\IEEEiedlabeljustifyc} +%\def\iedlabeljustifyl{\@IEEElegacywarn{iedlabeljustifyl}{IEEEiedlabeljustifyl}\IEEEiedlabeljustifyl} +%\def\iedlabeljustifyr{\@IEEElegacywarn{iedlabeljustifyr}{IEEEiedlabeljustifyr}\IEEEiedlabeljustifyr} +% V1.8 no more support for QED and proof stuff +%\def\QED{\@IEEElegacywarn{QED}{IEEEQED}\IEEEQED} +%\def\QEDclosed{\@IEEElegacywarn{QEDclosed}{IEEEQEDclosed}\IEEEQEDclosed} +%\def\QEDopen{\@IEEElegacywarn{QEDopen}{IEEEQEDopen}\IEEEQEDopen} +%\AtBeginDocument{\def\proof{\@IEEElegacywarn{proof}{IEEEproof}\IEEEproof}\def\endproof{\endIEEEproof}} +% V1.8 no longer support biography or biographynophoto +%\def\biography{\@IEEElegacywarn{biography}{IEEEbiography}\IEEEbiography} +%\def\biographynophoto{\@IEEElegacywarn{biographynophoto}{IEEEbiographynophoto}\IEEEbiographynophoto} +%\def\endbiography{\endIEEEbiography} +%\def\endbiographynophoto{\endIEEEbiographynophoto} +% V1.7 and later no longer supports \overrideIEEEmargins +%\def\overrideIEEEmargins{% +%\typeout{** WARNING: \string\overrideIEEEmargins \space no longer supported (line \the\inputlineno).}% +%\typeout{** Use the \string\CLASSINPUTinnersidemargin, \string\CLASSINPUToutersidemargin \space controls instead.}} + +\endinput + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of IEEEtran.cls %%%%%%%%%%%%%%%%%%%%%%%%%%%% +% That's all folks! + diff --git a/publications/activation-functions/Makefile b/publications/activation-functions/Makefile new file mode 100644 index 0000000..3c9202d --- /dev/null +++ b/publications/activation-functions/Makefile @@ -0,0 +1,23 @@ +DOKUMENT = main + +make: + pdflatex $(DOKUMENT).tex -output-format=pdf # Referenzen erstellen + makeglossaries $(DOKUMENT) + bibtex $(DOKUMENT) + pdflatex $(DOKUMENT).tex -output-format=pdf # Referenzen einbinden + pdflatex $(DOKUMENT).tex -output-format=pdf # Referenzen einbinden + # make clean + +ebook: + latexml --dest=$(DOKUMENT).xml $(DOKUMENT).tex + latexmlpost -dest=$(DOKUMENT).html $(DOKUMENT).xml + ebook-convert $(DOKUMENT).html $(DOKUMENT).epub --language de --no-default-epub-cover + +arxiv: + zip -r upload.zip . -x \*.git\* -x MAKEFILE -x *.zip -x *.pdf + +clean: + rm -rf $(TARGET) *.class *.html *.aux *.out *.thm *.idx *.toc *.ilg *.glg *.glo *.gls *.ist *.xdy *.fdb_latexmk *.bak *.blg *.glsdefs *.acn *.acr *.alg *.nls *.nlo *.bak *.pyg *.lot *.lof *.xmpdata *.xmpi *.bbl + rm -rf _minted-booka4 + rm -rf *.log # Analyze this for errors + # rm -rf *.bbl *.ind # Needed for arxiv \ No newline at end of file diff --git a/publications/activation-functions/abstract.tex b/publications/activation-functions/abstract.tex new file mode 100644 index 0000000..85d6f1e --- /dev/null +++ b/publications/activation-functions/abstract.tex @@ -0,0 +1,7 @@ +\begin{abstract} +This paper reviews the most common activation functions for convolution neural +networks. They are evaluated on TODO dataset and possible reasons for the +differences in their performance are given. + +New state of the art results are achieved for TODO. +\end{abstract} diff --git a/publications/activation-functions/appendix.tex b/publications/activation-functions/appendix.tex new file mode 100644 index 0000000..4b27cd7 --- /dev/null +++ b/publications/activation-functions/appendix.tex @@ -0,0 +1,123 @@ +%!TEX root = main.tex + +\appendix +\onecolumn +\section*{Overview} +\begin{table}[H] + \centering + \hspace*{-1cm}\begin{tabular}{lllll} + \toprule + Name & Function $\varphi(x)$ & Range of Values & $\varphi'(x)$ \\\midrule % & Used by + Sign function$^\dagger$ & $\begin{cases}+1 &\text{if } x \geq 0\\-1 &\text{if } x < 0\end{cases}$ & $\Set{-1,1}$ & $0$ \\%& \cite{971754} \\ + \parbox[t]{2.6cm}{Heaviside\\step function$^\dagger$} & $\begin{cases}+1 &\text{if } x > 0\\0 &\text{if } x < 0\end{cases}$ & $\Set{0, 1}$ & $0$ \\%& \cite{mcculloch1943logical}\\ + Logistic function & $\frac{1}{1+e^{-x}}$ & $[0, 1]$ & $\frac{e^x}{(e^x +1)^2}$ \\%& \cite{duch1999survey} \\ + Tanh & $\frac{e^x - e^{-x}}{e^x + e^{-x}} = \tanh(x)$ & $[-1, 1]$ & $\sech^2(x)$ \\%& \cite{LeNet-5,Thoma:2014}\\ + \gls{ReLU}$^\dagger$ & $\max(0, x)$ & $[0, +\infty)$ & $\begin{cases}1 &\text{if } x > 0\\0 &\text{if } x < 0\end{cases}$ \\%& \cite{AlexNet-2012}\\ + \parbox[t]{2.6cm}{\gls{LReLU}$^\dagger$\footnotemark\\(\gls{PReLU})} & $\varphi(x) = \max(\alpha x, x)$ & $(-\infty, +\infty)$ & $\begin{cases}1 &\text{if } x > 0\\\alpha &\text{if } x < 0\end{cases}$ \\%& \cite{maas2013rectifier,he2015delving} \\ + Softplus & $\log(e^x + 1)$ & $(0, +\infty)$ & $\frac{e^x}{e^x + 1}$ \\%& \cite{dugas2001incorporating,glorot2011deep} \\ + \gls{ELU} & $\begin{cases}x &\text{if } x > 0\\\alpha (e^x - 1) &\text{if } x \leq 0\end{cases}$ & $(-\infty, +\infty)$ & $\begin{cases}1 &\text{if } x > 0\\\alpha e^x &\text{otherwise}\end{cases}$ \\%& \cite{clevert2015fast} \\ + Softmax$^\ddagger$ & $o(\mathbf{x})_j = \frac{e^{x_j}}{\sum_{k=1}^K e^{x_k}}$ & $[0, 1]^K$ & $o(\mathbf{x})_j \cdot \frac{\sum_{k=1}^K e^{x_k} - e^{x_j}}{\sum_{k=1}^K e^{x_k}}$ \\%& \cite{AlexNet-2012,Thoma:2014}\\ + Maxout$^\ddagger$ & $o(\mathbf{x}) = \max_{x \in \mathbf{x}} x$ & $(-\infty, +\infty)$ & $\begin{cases}1 &\text{if } x_i = \max \mathbf{x}\\0 &\text{otherwise}\end{cases}$ \\%& \cite{goodfellow2013maxout} \\ + \bottomrule + \end{tabular} + \caption[Activation functions]{Overview of activation functions. Functions + marked with $\dagger$ are not differentiable at 0 and functions + marked with $\ddagger$ operate on all elements of a layer + simultaneously. The hyperparameters $\alpha \in (0, 1)$ of Leaky + ReLU and ELU are typically $\alpha = 0.01$. Other activation + function like randomized leaky ReLUs exist~\cite{xu2015empirical}, + but are far less commonly used.\\ + Some functions are smoothed versions of others, like the logistic + function for the Heaviside step function, tanh for the sign + function, softplus for ReLU.\\ + Softmax is the standard activation function for the last layer of + a classification network as it produces a probability + distribution. See \Cref{fig:activation-functions-plot} for a plot + of some of them.} + \label{table:activation-functions-overview} +\end{table} +\footnotetext{$\alpha$ is a hyperparameter in leaky ReLU, but a learnable parameter in the parametric ReLU function.} + +\section*{Evaluation Results} +\glsunset{LReLU} +\begin{table}[H] + \centering + \begin{tabular}{@{\extracolsep{4pt}}lcccccc@{}} + \toprule + \multirow{2}{*}{Function} & \multicolumn{4}{c}{Single model} & \multicolumn{2}{c}{Ensemble of 10} \\\cline{2-3}\cline{4-5}\cline{6-7} + & \multicolumn{2}{c}{Training set} &\multicolumn{2}{c}{Test set} & Training set & Test set \\\midrule + Identity & \SI{66.25}{\percent} & $\boldsymbol{\sigma=0.77}$ &\SI{56.74}{\percent} & \textbf{$\sigma=0.51$} & \SI{68.77}{\percent} & \SI{58.78}{\percent}\\ + Logistic & \SI{51.87}{\percent} & $\sigma=3.64$ &\SI{46.54}{\percent} & $\sigma=3.22$ & \SI{61.19}{\percent} & \SI{54.58}{\percent}\\ + Logistic$^-$ & \SI{66.49}{\percent} & $\sigma=1.99$ &\SI{57.84}{\percent} & $\sigma=1.15$ & \SI{69.04}{\percent} & \SI{60.10}{\percent}\\ + Softmax & \SI{75.22}{\percent} & $\sigma=2.41$ &\SI{59.49}{\percent} & $\sigma=1.25$ & \SI{78.87}{\percent} & \SI{63.06}{\percent}\\ + Tanh & \SI{67.27}{\percent} & $\sigma=2.38$ &\SI{55.70}{\percent} & $\sigma=1.44$ & \SI{70.21}{\percent} & \SI{58.10}{\percent}\\ + Softsign & \SI{66.43}{\percent} & $\sigma=1.74$ &\SI{55.75}{\percent} & $\sigma=0.93$ & \SI{69.78}{\percent} & \SI{58.40}{\percent}\\ + \gls{ReLU} & \SI{78.62}{\percent} & $\sigma=2.15$ &\SI{62.18}{\percent} & $\sigma=0.99$ & \SI{81.81}{\percent} & \SI{64.57}{\percent}\\ + \gls{ReLU}$^-$ & \SI{76.01}{\percent} & $\sigma=2.31$ &\SI{62.87}{\percent} & $\sigma=1.08$ & \SI{78.18}{\percent} & \SI{64.81}{\percent}\\ + Softplus & \SI{66.75}{\percent} & $\sigma=2.45$ &\SI{56.68}{\percent} & $\sigma=1.32$ & \SI{71.27}{\percent} & \SI{60.26}{\percent}\\ + S2ReLU & \SI{63.32}{\percent} & $\sigma=1.69$ &\SI{56.99}{\percent} & $\sigma=1.14$ & \SI{65.80}{\percent} & \SI{59.20}{\percent}\\ + \gls{LReLU} & \SI{74.92}{\percent} & $\sigma=2.49$ &\SI{61.86}{\percent} & $\sigma=1.23$ & \SI{77.67}{\percent} & \SI{64.01}{\percent}\\ + \gls{PReLU} & \textbf{\SI{80.01}{\percent}} & $\sigma=2.03$ &\SI{62.16}{\percent} & $\sigma=0.73$ & \textbf{\SI{83.50}{\percent}} & \textbf{\SI{64.79}{\percent}}\\ + \gls{ELU} & \SI{76.64}{\percent} & $\sigma=1.48$ &\textbf{\SI{63.38}{\percent}} & $\sigma=0.55$ & \SI{78.30}{\percent} & \SI{64.70}{\percent}\\ + \bottomrule + \end{tabular} + \caption[Activation function evaluation results on CIFAR-100]{Training and + test accuracy of adjusted baseline models trained with different + activation functions on CIFAR-100. For LReLU, $\alpha = 0.3$ was + chosen.} + \label{table:CIFAR-100-accuracies-activation-functions} +\end{table} + +\glsreset{LReLU} + +\begin{table}[H] + \centering + \setlength\tabcolsep{1.5pt} + \begin{tabular}{@{\extracolsep{4pt}}lcccccccr@{}} + \toprule + \multirow{2}{*}{Function} & \multicolumn{4}{c}{Single model} & \multicolumn{2}{c}{Ensemble of 10} & \multicolumn{2}{c}{Epochs}\\\cline{2-5}\cline{6-7}\cline{8-9} + & \multicolumn{2}{c}{Training set} &\multicolumn{2}{c}{Test set} & Train & Test & Range & \multicolumn{1}{c}{Mean} \\\midrule + Identity & \SI{87.92}{\percent} & $\sigma=0.40$ & \SI{84.69}{\percent} & $\sigma=0.08$ & \SI{88.59}{\percent} & \SI{85.43}{\percent} & \hphantom{0}92 -- 140 & 114.5\\%TODO: Really? + Logistic & \SI{81.46}{\percent} & $\sigma=5.08$ & \SI{79.67}{\percent} & $\sigma=4.85$ & \SI{86.38}{\percent} & \SI{84.60}{\percent} & \hphantom{0}\textbf{58} -- \hphantom{0}\textbf{91} & \textbf{77.3}\\ + Softmax & \SI{88.19}{\percent} & $\sigma=0.31$ & \SI{84.70}{\percent} & $\sigma=0.15$ & \SI{88.69}{\percent} & \SI{85.43}{\percent} & 124 -- 171& 145.8\\ + Tanh & \SI{88.41}{\percent} & $\sigma=0.36$ & \SI{84.46}{\percent} & $\sigma=0.27$ & \SI{89.24}{\percent} & \SI{85.45}{\percent} & \hphantom{0}89 -- 123 & 108.7\\ + Softsign & \SI{88.00}{\percent} & $\sigma=0.47$ & \SI{84.46}{\percent} & $\sigma=0.23$ & \SI{88.77}{\percent} & \SI{85.33}{\percent} & \hphantom{0}77 -- 119 & 104.1\\ + \gls{ReLU} & \SI{88.93}{\percent} & $\sigma=0.46$ & \textbf{\SI{85.35}{\percent}} & $\sigma=0.21$ & \SI{89.35}{\percent} & \SI{85.95}{\percent} & \hphantom{0}96 -- 132 & 102.8\\ + Softplus & \SI{88.42}{\percent} & $\boldsymbol{\sigma=0.29}$ & \SI{85.16}{\percent} & $\sigma=0.15$ & \SI{88.90}{\percent} & \SI{85.73}{\percent} & 108 -- 143 & 121.0\\ + \gls{LReLU} & \SI{88.61}{\percent} & $\sigma=0.41$ & \SI{85.21}{\percent} & $\boldsymbol{\sigma=0.05}$ & \SI{89.07}{\percent} & \SI{85.83}{\percent} & \hphantom{0}87 -- 117 & 104.5\\ + \gls{PReLU} & \textbf{\SI{89.62}{\percent}} & $\sigma=0.41$ & \textbf{\SI{85.35}{\percent}} & $\sigma=0.17$& \textbf{\SI{90.10}{\percent}} & \SI{86.01}{\percent} & \hphantom{0}85 -- 111 & 100.5\\ + \gls{ELU} & \SI{89.49}{\percent} & $\sigma=0.42$ & \textbf{\SI{85.35}{\percent}} & $\sigma=0.10$ & \SI{89.94}{\percent} & \textbf{\SI{86.03}{\percent}} & \hphantom{0}73 -- 113 & 92.4\\ + \bottomrule + \end{tabular} + \caption[Activation function evaluation results on HASYv2]{Test accuracy of + adjusted baseline models trained with different activation + functions on HASYv2. For LReLU, $\alpha = 0.3$ was chosen.} + \label{table:HASYv2-accuracies-activation-functions} +\end{table} + +\begin{table}[H] + \centering + \setlength\tabcolsep{1.5pt} + \begin{tabular}{@{\extracolsep{4pt}}lcccccccr@{}} + \toprule + \multirow{2}{*}{Function} & \multicolumn{4}{c}{Single model} & \multicolumn{2}{c}{Ensemble of 10} & \multicolumn{2}{c}{Epochs}\\\cline{2-5}\cline{6-7}\cline{8-9} + & \multicolumn{2}{c}{Training set} &\multicolumn{2}{c}{Test set} & Train & Test & Range & \multicolumn{1}{c}{Mean} \\\midrule + Identity & \SI{87.49}{\percent} & $\sigma=2.50$ & \SI{69.86}{\percent} & $\sigma=1.41$ & \SI{89.78}{\percent} & \SI{71.90}{\percent} & \hphantom{0}51 -- \hphantom{0}65 & 53.4\\ + Logistic & \SI{45.32}{\percent} & $\sigma=14.88$& \SI{40.85}{\percent} & $\sigma=12.56$ & \SI{51.06}{\percent} & \SI{45.49}{\percent} & \hphantom{0}38 -- \hphantom{0}93 & 74.6\\ + Softmax & \SI{87.90}{\percent} & $\sigma=3.58$ & \SI{67.91}{\percent} & $\sigma=2.32$ & \SI{91.51}{\percent} & \SI{70.96}{\percent} & 108 -- 150 & 127.5\\ + Tanh & \SI{85.38}{\percent} & $\sigma=4.04$ & \SI{67.65}{\percent} & $\sigma=2.01$ & \SI{90.47}{\percent} & \SI{71.29}{\percent} & 48 -- \hphantom{0}92 & 65.2\\ + Softsign & \SI{88.57}{\percent} & $\sigma=4.00$ & \SI{69.32}{\percent} & $\sigma=1.68$ & \SI{93.04}{\percent} & \SI{72.40}{\percent} & 55 -- 117 & 83.2\\ + \gls{ReLU} & \SI{94.35}{\percent} & $\sigma=3.38$ & \SI{71.01}{\percent} & $\sigma=1.63$ & \SI{98.20}{\percent} & \SI{74.85}{\percent} & 52 -- \hphantom{0}98 & 75.5\\ + Softplus & \SI{83.03}{\percent} & $\sigma=2.07$ & \SI{68.28}{\percent} & $\sigma=1.74$ & \SI{93.04}{\percent} & \SI{75.99}{\percent} & 56 -- \hphantom{0}89 & 68.9\\ + \gls{LReLU} & \SI{93.83}{\percent} & $\sigma=3.89$ & \SI{74.66}{\percent} & $\sigma=2.11$ & \SI{97.56}{\percent} & \SI{78.08}{\percent} & 52 -- 120 & 80.1\\ + \gls{PReLU} & \SI{95.53}{\percent} & $\sigma=1.92$ & \SI{71.69}{\percent} & $\sigma=1.37$ & \SI{98.17}{\percent} & \SI{74.69}{\percent} & 59 -- 101 & 78.8\\ + \gls{ELU} & \SI{95.42}{\percent} & $\sigma=3.57$ & \SI{75.09}{\percent} & $\sigma=2.39$ & \SI{98.54}{\percent} & \SI{78.66}{\percent} & 66 -- \hphantom{0}72 & 67.2\\ + \bottomrule + \end{tabular} + \caption[Activation function evaluation results on STL-10]{Test accuracy of + adjusted baseline models trained with different activation + functions on STL-10. For LReLU, $\alpha = 0.3$ was chosen.} + \label{table:STL-10-accuracies-activation-functions} +\end{table} + +\twocolumn \ No newline at end of file diff --git a/publications/activation-functions/bibliography.bib b/publications/activation-functions/bibliography.bib new file mode 100644 index 0000000..d1b5355 --- /dev/null +++ b/publications/activation-functions/bibliography.bib @@ -0,0 +1,2090 @@ +% This file was created with JabRef 2.10. +% Encoding: UTF-8 + +@IEEEtranBSTCTL{IEEEexample:BSTcontrol, +CTLuse_forced_etal = "yes", +CTLmax_names_forced_etal = "3", +CTLnames_show_etal = "2" } + + +@Article{abadi2016tensorflow, + Title = {Tensorflow: {Large-scale} machine learning on heterogeneous distributed systems}, + Author = {Abadi, Mart{\'\i}n and Agarwal, Ashish and Barham, Paul and Brevdo, Eugene and Chen, Zhifeng and Citro, Craig and Corrado, Greg S and Davis, Andy and Dean, Jeffrey and Devin, Matthieu and others}, + Journal = {arXiv preprint arXiv:1603.04467}, + Year = {2016}, + + Month = mar, + + Url = {https://arxiv.org/abs/1603.04467} +} + +@Misc{AlexanderMordvintsev2015, + Title = {Inceptionism: {Going} Deeper into Neural Networks}, + + Author = {Alexander Mordvintsev, Christopher Olah, Mike Tyka}, + Month = jun, + Year = {2015}, + + Url = {https://research.googleblog.com/2015/06/inceptionism-going-deeper-into-neural.html} +} + +@InCollection{andrychowicz2016learning, + Title = {Learning to learn by gradient descent by gradient descent}, + Author = {Andrychowicz, Marcin and Denil, Misha and G\'{o}mez, Sergio and Hoffman, Matthew W and Pfau, David and Schaul, Tom and de Freitas, Nando}, + Booktitle = {Advances in Neural Information Processing Systems 29 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2016}, + Editor = {D. D. Lee and M. Sugiyama and U. V. Luxburg and I. Guyon and R. Garnett}, + Month = mar, + Pages = {3981--3989}, + + Url = {http://papers.nips.cc/paper/6461-learning-to-learn-by-gradient-descent-by-gradient-descent.pdf} +} + +@InProceedings{ankerst1999optics, + Title = {{OPTICS}: {Ordering} points to identify the clustering structure}, + Author = {Ankerst, Mihael and Breunig, Markus M and Kriegel, Hans-Peter and Sander, J{\"o}rg}, + Booktitle = {ACM Sigmod record}, + Year = {1999}, + Number = {2}, + Organization = {ACM}, + Pages = {49--60}, + Volume = {28} +} + +@Article{baker2016designing, + Title = {Designing Neural Network Architectures using Reinforcement Learning}, + Author = {Baker, Bowen and Gupta, Otkrist and Naik, Nikhil and Raskar, Ramesh}, + Journal = {arXiv preprint arXiv:1611.02167}, + Year = {2016}, + + Month = nov, + + Url = {https://arxiv.org/abs/1611.02167} +} + +@Article{Bao2017, + Title = {{CVAE-GAN}: {Fine}-Grained Image Generation through Asymmetric Training}, + Author = {Jianmin Bao AND Dong Chen AND Fang Wen AND Houqiang Li AND Gang Hua}, + Journal = {arXiv preprint arXiv:1703.10155}, + Year = {2017}, + + Month = mar, + + Url = {https://arxiv.org/abs/1703.10155} +} + +@InProceedings{behmo2010towards, + Title = {Towards optimal naive {Bayes} nearest neighbor}, + Author = {Behmo, R{\'e}gis and Marcombes, Paul and Dalalyan, Arnak and Prinet, V{\'e}ronique}, + Booktitle = {European Conference on Computer Vision (ECCV)}, + Year = {2010}, + Organization = {Springer}, + Pages = {171--184} +} + +@Article{bengio1994learning, + Title = {Learning long-term dependencies with gradient descent is difficult}, + Author = {Bengio, Yoshua and Simard, Patrice and Frasconi, Paolo}, + Journal = {IEEE transactions on neural networks}, + Year = {1994}, + Number = {2}, + Pages = {157--166}, + Volume = {5}, + + Publisher = {IEEE} +} + +@Article{bergstra2012random, + Title = {Random search for hyper-parameter optimization}, + Author = {Bergstra, James and Bengio, Yoshua}, + Journal = {Journal of Machine Learning Research}, + Year = {2012}, + + Month = feb, + Number = {Feb}, + Pages = {281--305}, + Volume = {13}, + + Url = {http://jmlr.csail.mit.edu/papers/volume13/bergstra12a/bergstra12a.pdf} +} + +@TechReport{bergstra2009quadratic, + Title = {Quadratic polynomials learn better image features}, + Author = {Bergstra, James and Desjardins, Guillaume and Lamblin, Pascal and Bengio, Yoshua}, + Institution = {D{\'e}partement d’Informatique et de Recherche Op{\'e}rationnelle, Universit{\'e} de Montr{\'e}al}, + Year = {2009}, + Number = {1337} +} + +@InBook{Bodenhausen1993, + Title = {Automatically Structured Neural Networks For Handwritten Character And Word Recognition}, + Author = {Bodenhausen, Ulrich +and Manke, Stefan}, + Editor = {Gielen, Stan +and Kappen, Bert}, + Pages = {956--961}, + Publisher = {Springer London}, + Year = {1993}, + + Address = {London}, + Month = sep, + + Booktitle = {International Conference on Artificial Neural Networks (ICANN)}, + Doi = {10.1007/978-1-4471-2063-6_283}, + ISBN = {978-1-4471-2063-6}, + Url = {http://dx.doi.org/10.1007/978-1-4471-2063-6_283} +} + +@InProceedings{boureau2010theoretical, + Title = {A theoretical analysis of feature pooling in visual recognition}, + Author = {Boureau, Y-Lan and Ponce, Jean and LeCun, Yann}, + Booktitle = {International Conference on Machine Learning (ICML)}, + Year = {2010}, + Number = {27}, + Pages = {111--118}, + + Url = {http://yann.lecun.com/exdb/publis/pdf/boureau-icml-10.pdf} +} + +@Article{charalambous1992conjugate, + Title = {Conjugate gradient algorithm for efficient training of artificial neural networks}, + Author = {Charalambous, Christakis}, + Journal = {IEEE Proceedings G-Circuits, Devices and Systems}, + Year = {1992}, + Number = {3}, + Pages = {301--310}, + Volume = {139}, + + File = {:home/moose/GitHub/informatik-2011/Master/Master-Arbeit/paper/conjugate-gradient.pdf:PDF}, + Publisher = {IET}, + Url = {http://ieeexplore.ieee.org/document/143326/} +} + +@Article{chetlur2014cudnn, + Title = {{cuDNN}: {Efficient} primitives for deep learning}, + Author = {Chetlur, Sharan and Woolley, Cliff and Vandermersch, Philippe and Cohen, Jonathan and Tran, John and Catanzaro, Bryan and Shelhamer, Evan}, + Journal = {arXiv preprint arXiv:1410.0759}, + Year = {2014}, + + Month = oct, + + Url = {https://arxiv.org/abs/1410.0759} +} + +@Misc{chollet2015keras, + Title = {Keras}, + + Author = {Chollet, Fran\c{c}ois}, + HowPublished = {\url{https://github.com/fchollet/keras}}, + Year = {2015}, + + Publisher = {GitHub} +} + +@InProceedings{ciregan2012multi, + Title = {Multi-column deep neural networks for image classification}, + Author = {Ciregan, Dan and Meier, Ueli and Schmidhuber, J{\"u}rgen}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2012}, + Month = feb, + Organization = {IEEE}, + Pages = {3642--3649}, + + Url = {https://arxiv.org/abs/1202.2745v1} +} + +@Article{clevert2015fast, + Title = {Fast and accurate deep network learning by exponential linear units ({ELUs})}, + Author = {Clevert, Djork-Arn{\'e} and Unterthiner, Thomas and Hochreiter, Sepp}, + Journal = {arXiv preprint arXiv:1511.07289}, + Year = {2015}, + + Month = nov, + + Url = {https://arxiv.org/abs/1511.07289} +} + +@Misc{STL-10, + Title = {{STL-10} dataset}, + + Author = {Coates, Adam and Lee, Honglak and Ng, Andrew Y}, + Year = {2011}, + + Url = {http://cs.stanford.edu/~acoates/stl10} +} + +@Article{coates2010analysis, + Title = {An analysis of single-layer networks in unsupervised feature learning}, + Author = {Coates, Adam and Lee, Honglak and Ng, Andrew Y}, + Journal = {Ann Arbor}, + Year = {2010}, + Number = {48109}, + Pages = {2}, + Volume = {1001}, + + Url = {http://cs.stanford.edu/~acoates/papers/coatesleeng_aistats_2011.pdf} +} + +@InProceedings{dai2016instance, + Title = {Instance-aware semantic segmentation via multi-task network cascades}, + Author = {Dai, Jifeng and He, Kaiming and Sun, Jian}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2016}, + Organization = {IEEE}, + Pages = {3150--3158}, + + Url = {https://arxiv.org/abs/1512.04412} +} + +@Article{demvsar2006statistical, + Title = {Statistical comparisons of classifiers over multiple data sets}, + Author = {Dem{\v{s}}ar, Janez}, + Journal = {Journal of Machine learning research}, + Year = {2006}, + Number = {Jan}, + Pages = {1--30}, + Volume = {7}, + + Url = {http://jmlr.csail.mit.edu/papers/volume7/demsar06a/demsar06a.pdf} +} + +@Article{dieleman2016exploiting, + Title = {Exploiting cyclic symmetry in convolutional neural networks}, + Author = {Dieleman, Sander and De Fauw, Jeffrey and Kavukcuoglu, Koray}, + Journal = {arXiv preprint arXiv:1602.02660}, + Year = {2016}, + + Month = feb, + + Url = {https://arxiv.org/abs/1602.02660} +} + +@Article{dieleman2015rotation, + Title = {Rotation-invariant convolutional neural networks for galaxy morphology prediction}, + Author = {Dieleman, Sander and Willett, Kyle W and Dambre, Joni}, + Journal = {Monthly notices of the royal astronomical society}, + Year = {2015}, + Number = {2}, + Pages = {1441--1459}, + Volume = {450}, + + Publisher = {Oxford University Press} +} + +@Article{dietterich1998approximate, + Title = {Approximate statistical tests for comparing supervised classification learning algorithms}, + Author = {Dietterich, Thomas G}, + Journal = {Neural computation}, + Year = {1998}, + + Month = mar, + Number = {7}, + Pages = {1895--1923}, + Volume = {10}, + + Doi = {10.1162/089976698300017197}, + Publisher = {MIT Press}, + Url = {http://www.mitpressjournals.org/doi/abs/10.1162/089976698300017197} +} + +@InCollection{NIPS2014_5548, + Title = {Discriminative Unsupervised Feature Learning with Convolutional Neural Networks}, + Author = {Dosovitskiy, Alexey and Springenberg, Jost Tobias and Riedmiller, Martin and Brox, Thomas}, + Booktitle = {Advances in Neural Information Processing Systems 27 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2014}, + Editor = {Z. Ghahramani and M. Welling and C. Cortes and N. D. Lawrence and K. Q. Weinberger}, + Pages = {766--774}, + + Url = {http://papers.nips.cc/paper/5548-discriminative-unsupervised-feature-learning-with-convolutional-neural-networks.pdf} +} + +@TechReport{dozat2015incorporating, + Title = {Incorporating {Nesterov} momentum into {Adam}}, + Author = {Dozat, Timothy}, + Institution = {Stanford University}, + Year = {2015}, + + Url = {http://cs229.stanford.edu/proj2015/054_report.pdf} +} + +@Article{duch1999survey, + Title = {Survey of neural transfer functions}, + Author = {Duch, W{\l}odzis{\l}aw and Jankowski, Norbert}, + Journal = {Neural Computing Surveys}, + Year = {1999}, + Number = {1}, + Pages = {163--212}, + Volume = {2}, + + Url = {ftp://ftp.icsi.berkeley.edu/pub/ai/jagota/vol2_6.pdf} +} + +@Article{duchi2011adaptive, + Title = {Adaptive subgradient methods for online learning and stochastic optimization}, + Author = {Duchi, John and Hazan, Elad and Singer, Yoram}, + Journal = {Journal of Machine Learning Research}, + Year = {2011}, + Number = {Jul}, + Pages = {2121--2159}, + Volume = {12}, + + Url = {http://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf} +} + +@InCollection{dugas2001incorporating, + Title = {Incorporating Second-Order Functional Knowledge for Better Option Pricing}, + Author = {Charles Dugas and Bengio, Yoshua and Fran\c{c}ois B\'{e}lisle and Claude Nadeau and Ren\'{e} Garcia}, + Booktitle = {Advances in Neural Information Processing Systems 13 (NIPS)}, + Publisher = {MIT Press}, + Year = {2001}, + Editor = {T. K. Leen and T. G. Dietterich and V. Tresp}, + Pages = {472--478}, + + Url = {http://papers.nips.cc/paper/1920-incorporating-second-order-functional-knowledge-for-better-option-pricing.pdf} +} + +@Book{eiben2003introduction, + Title = {Introduction to evolutionary computing}, + Author = {Eiben, Agoston E and Smith, James E}, + Publisher = {Springer}, + Year = {2003}, + Volume = {53}, + + Url = {https://dx.doi.org/10.1007/978-3-662-44874-8} +} + +@InProceedings{asirra-a-captcha-that-exploits-interest-aligned-manual-image-categorization, + Title = {Asirra: {A} {CAPTCHA} that Exploits Interest-Aligned Manual Image Categorization}, + Author = {Elson, Jeremy and Douceur, John (JD) and Howell, Jon and Saul, Jared}, + Booktitle = {ACM Conference on Computer and Communications Security (CCS)}, + Year = {2007}, + Month = oct, + Number = {14}, + Publisher = {Association for Computing Machinery, Inc.}, + + Abstract = {We present Asirra, a CAPTCHA that asks users to identify cats out of a set of 12 photographs of both cats and dogs. Asirra is easy for users; user studies indicate it can be solved by humans 99.6% of the time in under 30 seconds. Barring a major advance in machine vision, we expect computers will have no better than a 1/54,000 chance of solving it. Asirra’s image database is provided by a novel, mutually beneficial partnership with Petfinder.com. In exchange for the use of their three million images, we display an "adopt me" link beneath each one, promoting Petfinder’s primary mission of finding homes for homeless animals. We describe the design of Asirra, discuss threats to its security, and report early deployment experiences. We also describe two novel algorithms for amplifying the skill gap between humans and computers that can be used on many existing CAPTCHAs.}, + Url = {https://www.microsoft.com/en-us/research/publication/asirra-a-captcha-that-exploits-interest-aligned-manual-image-categorization/} +} + +@InProceedings{ester1996density-dbscan, + Title = {A density-based algorithm for discovering clusters in large spatial databases with noise.}, + Author = {Ester, Martin and Kriegel, Hans-Peter and Sander, J{\"o}rg and Xu, Xiaowei and others}, + Booktitle = {Kdd}, + Year = {1996}, + Number = {34}, + Pages = {226--231}, + Volume = {96} +} + +@Article{quickprop, + Title = {An empirical study of learning speed in back-propagation networks}, + Author = {Fahlman, Scott E}, + Year = {1988}, + + Url = {http://repository.cmu.edu/cgi/viewcontent.cgi?article=2799&context=compsci} +} + +@Article{fahlman1989cascade, + Title = {The cascade-correlation learning architecture}, + Author = {Fahlman, Scott E and Lebiere, Christian}, + Year = {1989}, + + Url = {http://repository.cmu.edu/compsci/1938/} +} + +@Article{fei2006one, + Title = {One-shot learning of object categories}, + Author = {Fei-Fei, Li and Fergus, Rob and Perona, Pietro}, + Journal = {IEEE transactions on pattern analysis and machine intelligence}, + Year = {2006}, + + Month = apr, + Number = {4}, + Pages = {594--611}, + Volume = {28}, + + Publisher = {IEEE}, + Url = {http://vision.stanford.edu/documents/Fei-FeiFergusPerona2006.pdf} +} + +@Misc{Caltech-101, + Title = {Caltech 101}, + + Author = {Fei-Fei, R. Fergus and P. Perona}, + Year = {2003}, + + Url = {http://www.vision.caltech.edu/Image_Datasets/Caltech101/Caltech101.html} +} + +@Article{felzenszwalb2010object, + Title = {Object detection with discriminatively trained part-based models}, + Author = {Felzenszwalb, Pedro F and Girshick, Ross B and McAllester, David and Ramanan, Deva}, + Journal = {IEEE transactions on pattern analysis and machine intelligence}, + Year = {2010}, + Number = {9}, + Pages = {1627--1645}, + Volume = {32}, + + Publisher = {IEEE} +} + +@Article{gal2015bayesian, + Title = {Bayesian convolutional neural networks with {Bernoulli} approximate variational inference}, + Author = {Gal, Yarin and Ghahramani, Zoubin}, + Journal = {arXiv preprint arXiv:1506.02158}, + Year = {2016}, + + Month = jan, + + Url = {https://arxiv.org/abs/1506.02158v6} +} + +@Book{garey2002computers, + Title = {Computers and intractability}, + Author = {Garey, Michael R and Johnson, David S}, + Publisher = {wh freeman New York}, + Year = {2002}, + Volume = {29} +} + +@Article{garey1976some, + Title = {Some simplified {NP}-complete graph problems}, + Author = {Garey, Michael R and Johnson, David S. and Stockmeyer, Larry}, + Journal = {Theoretical computer science}, + Year = {1976}, + Number = {3}, + Pages = {237--267}, + Volume = {1}, + + Publisher = {Elsevier} +} + +@InProceedings{girshick2014rich, + Title = {Rich feature hierarchies for accurate object detection and semantic segmentation}, + Author = {Girshick, Ross and Donahue, Jeff and Darrell, Trevor and Malik, Jitendra}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2014}, + Organization = {IEEE}, + Pages = {580--587}, + + Url = {https://arxiv.org/abs/1311.2524} +} + +@InProceedings{glorot2010understanding, + Title = {Understanding the difficulty of training deep feedforward neural networks.}, + Author = {Glorot, Xavier and Bengio, Yoshua}, + Booktitle = {Aistats}, + Year = {2010}, + Pages = {249--256}, + Volume = {9}, + + Url = {http://jmlr.org/proceedings/papers/v9/glorot10a/glorot10a.pdf} +} + +@InProceedings{glorot2011deep, + Title = {Deep Sparse Rectifier Neural Networks.}, + Author = {Glorot, Xavier and Bordes, Antoine and Bengio, Yoshua}, + Booktitle = {Aistats}, + Year = {2011}, + Number = {106}, + Pages = {275}, + Volume = {15}, + + Url = {http://www.jmlr.org/proceedings/papers/v15/glorot11a/glorot11a.pdf} +} + +@InProceedings{golle2008machine, + Title = {Machine learning attacks against the {Asirra} {CAPTCHA}}, + Author = {Golle, Philippe}, + Booktitle = {ACM conference on Computer and communications security (CCS)}, + Year = {2008}, + Number = {15}, + Organization = {ACM}, + Pages = {535--542} +} + +@Article{goodfellow2013maxout, + Title = {Maxout networks.}, + Author = {Goodfellow, Ian J and Warde-Farley, David and Mirza, Mehdi and Courville, Aaron C and Bengio, Yoshua}, + Journal = {ICML}, + Year = {2013}, + Number = {3}, + Pages = {1319--1327}, + Volume = {28}, + + Url = {http://www.jmlr.org/proceedings/papers/v28/goodfellow13.pdf} +} + +@Article{graham2014fractional, + Title = {Fractional max-pooling}, + Author = {Graham, Benjamin}, + Journal = {arXiv preprint arXiv:1412.6071}, + Year = {2015}, + + Month = may, + + Url = {https://arxiv.org/abs/1412.6071} +} + +@Article{GregGriffin2007, + Title = {Caltech-256 Object Category Dataset}, + Author = {Greg Griffin, Alex Holub, Pietro Perona}, + Year = {2007}, + + Month = apr, + + Publisher = {California Institute of Technology}, + Url = {http://authors.library.caltech.edu/7694/} +} + +@Misc{Griffin2006, + Title = {Caltech 256}, + + Author = {Griffin, G. Holub, AD. Perona}, + Year = {2006}, + + Url = {http://www.vision.caltech.edu/Image_Datasets/Caltech256/} +} + +@Book{han2011data, + Title = {Data mining: concepts and techniques}, + Author = {Han, Jiawei and Pei, Jian and Kamber, Micheline}, + Publisher = {Elsevier}, + Year = {2011} +} + +@Article{han2016dsd, + Title = {{DSD}: {Regularizing} deep neural networks with dense-sparse-dense training flow}, + Author = {Han, Song and Pool, Jeff and Narang, Sharan and Mao, Huizi and Tang, Shijian and Elsen, Erich and Catanzaro, Bryan and Tran, John and Dally, William J}, + Journal = {arXiv preprint arXiv:1607.04381}, + Year = {2016}, + + Month = jul, + + Url = {https://arxiv.org/abs/1607.04381} +} + +@InCollection{han2015learning, + Title = {Learning both Weights and Connections for Efficient Neural Network}, + Author = {Han, Song and Pool, Jeff and Tran, John and Dally, William}, + Booktitle = {Advances in Neural Information Processing Systems 28 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2015}, + Editor = {C. Cortes and N. D. Lawrence and D. D. Lee and M. Sugiyama and R. Garnett}, + Month = jun, + Pages = {1135--1143}, + + Url = {http://papers.nips.cc/paper/5784-learning-both-weights-and-connections-for-efficient-neural-network.pdf} +} + +@InProceedings{hanson1989meiosis, + Title = {Meiosis Networks.}, + Author = {Hanson, Stephen Jos{\'e}}, + Booktitle = {NIPS}, + Year = {1989}, + Pages = {533--541}, + + Url = {http://papers.nips.cc/paper/227-meiosis-networks.pdf} +} + +@Article{hardt2016identity, + Title = {Identity Matters in Deep Learning}, + Author = {Hardt, Moritz and Ma, Tengyu}, + Journal = {arXiv preprint arXiv:1611.04231}, + Year = {2016}, + + Month = nov, + + Url = {https://arxiv.org/abs/1611.04231} +} + +@Misc{Harris2015, + Title = {New Features in {CUDA} 7.5}, + + Author = {Mark Harris}, + Month = jul, + Year = {2015}, + + Url = {https://devblogs.nvidia.com/parallelforall/new-features-cuda-7-5/} +} + +@InProceedings{hassibi1993optimal, + Title = {Optimal brain surgeon and general network pruning}, + Author = {Hassibi, Babak and Stork, David G and Wolff, Gregory J}, + Booktitle = {International Conference on Neural Networks}, + Year = {1993}, + Organization = {IEEE}, + Pages = {293--299}, + + Url = {http://ee.caltech.edu/Babak/pubs/conferences/00298572.pdf} +} + +@Article{deep-residual-networks-2015, + Title = {Deep residual learning for image recognition}, + Author = {He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian}, + Journal = {arXiv preprint arXiv:1512.03385}, + Year = {2015}, + + Month = dec, + + Url = {https://arxiv.org/abs/1512.03385v1} +} + +@InProceedings{he2015delving, + Title = {Delving deep into rectifiers: {Surpassing} human-level performance on imagenet classification}, + Author = {He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian}, + Booktitle = {International Conference on Computer Vision (ICCV)}, + Year = {2015}, + Month = feb, + Pages = {1026--1034}, + + Url = {https://arxiv.org/abs/1502.01852} +} + +@InProceedings{he2014spatial, + Title = {Spatial pyramid pooling in deep convolutional networks for visual recognition}, + Author = {He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian}, + Booktitle = {European Conference on Computer Vision (ECCV)}, + Year = {2014}, + Organization = {Springer}, + Pages = {346--361}, + + Url = {https://arxiv.org/abs/1406.4729} +} + +@Article{hinton2015distilling, + Title = {Distilling the knowledge in a neural network}, + Author = {Hinton, Geoffrey and Vinyals, Oriol and Dean, Jeff}, + Journal = {arXiv preprint arXiv:1503.02531}, + Year = {2015}, + + Month = mar, + + Url = {https://arxiv.org/abs/1503.02531} +} + +@Article{hinton2012-dropout, + Title = {Improving neural networks by preventing co-adaptation of feature detectors}, + Author = {Hinton, Geoffrey E and Srivastava, Nitish and Krizhevsky, Alex and Sutskever, Ilya and Salakhutdinov, Ruslan R}, + Journal = {arXiv preprint arXiv:1207.0580}, + Year = {2012}, + + Month = jul, + + Url = {https://arxiv.org/abs/1207.0580} +} + +@Article{howard2013some, + Title = {Some improvements on deep convolutional neural network based image classification}, + Author = {Howard, Andrew G}, + Journal = {arXiv preprint arXiv:1312.5402}, + Year = {2013}, + + Month = dec, + + Url = {https://arxiv.org/abs/1312.5402} +} + +@Article{huang2016densely, + Title = {Densely connected convolutional networks}, + Author = {Huang, Gao and Liu, Zhuang and Weinberger, Kilian Q}, + Journal = {arXiv preprint arXiv:1608.06993}, + Year = {2016}, + + Month = aug, + + Url = {https://arxiv.org/abs/1608.06993v1} +} + +@Article{huang2016deep, + Title = {Deep networks with stochastic depth}, + Author = {Huang, Gao and Sun, Yu and Liu, Zhuang and Sedra, Daniel and Weinberger, Kilian}, + Journal = {arXiv preprint arXiv:1603.09382}, + Year = {2016}, + + Month = mar, + + Url = {https://arxiv.org/abs/1603.09382} +} + +@Article{huh2016makes, + Title = {What makes {ImageNet} good for transfer learning?}, + Author = {Huh, Minyoung and Agrawal, Pulkit and Efros, Alexei A}, + Journal = {arXiv preprint arXiv:1608.08614}, + Year = {2016}, + + Month = aug, + + Url = {https://arxiv.org/abs/1608.08614} +} + +@Article{BatchNormalization-2015, + Title = {Batch normalization: {Accelerating} deep network training by reducing internal covariate shift}, + Author = {Ioffe, Sergey and Szegedy, Christian}, + Journal = {arXiv preprint arXiv:1502.03167}, + Year = {2015}, + + Month = feb, + + Url = {https://arxiv.org/abs/1502.03167} +} + +@InProceedings{jin2016deep, + Title = {Deep learning with s-shaped rectified linear activation units}, + Author = {Jin, Xiaojie and Xu, Chunyan and Feng, Jiashi and Wei, Yunchao and Xiong, Junjun and Yan, Shuicheng}, + Booktitle = {Thirtieth AAAI Conference on Artificial Intelligence}, + Year = {2016}, + Month = dec, + + Url = {https://arxiv.org/abs/1512.07030} +} + +@Misc{Karpathy2011, + Title = {Lessons learned from manually classifying {CIFAR-10}}, + + Author = {Andrej Karpathy}, + Month = apr, + Year = {2011}, + + Url = {http://karpathy.github.io/2011/04/27/manually-classifying-cifar10/} +} + +@Book{kaufman2009finding-diana, + Title = {Finding groups in data: an introduction to cluster analysis}, + Author = {Kaufman, Leonard and Rousseeuw, Peter J}, + Publisher = {John Wiley \& Sons}, + Year = {2009}, + Volume = {344} +} + +@InCollection{kavukcuoglu2010learning, + Title = {Learning Convolutional Feature Hierarchies for Visual Recognition}, + Author = {Kavukcuoglu, Koray and Pierre Sermanet and Y-lan Boureau and Gregor, Karol and Michael Mathieu and Yann L. Cun}, + Booktitle = {Advances in Neural Information Processing Systems 23 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2010}, + Editor = {J. D. Lafferty and C. K. I. Williams and J. Shawe-Taylor and R. S. Zemel and A. Culotta}, + Pages = {1090--1098}, + + Url = {http://papers.nips.cc/paper/4133-learning-convolutional-feature-hierarchies-for-visual-recognition.pdf} +} + +@Article{keskar2016large, + Title = {On large-batch training for deep learning: {Generalization} gap and sharp minima}, + Author = {Keskar, Nitish Shirish and Mudigere, Dheevatsa and Nocedal, Jorge and Smelyanskiy, Mikhail and Tang, Ping Tak Peter}, + Journal = {arXiv preprint arXiv:1609.04836}, + Year = {2016}, + + Month = sep, + + Url = {https://arxiv.org/abs/1609.04836} +} + +@Article{kim2015deep, + Title = {Deep Clustered Convolutional Kernels}, + Author = {Kim, Minyoung and Rigazio, Luca}, + Journal = {arXiv preprint arXiv:1503.01824}, + Year = {2015}, + + Month = mar, + + Url = {https://arxiv.org/abs/1503.01824} +} + +@Article{kim2015compression, + Title = {Compression of deep convolutional neural networks for fast and low power mobile applications}, + Author = {Kim, Yong-Deok and Park, Eunhyeok and Yoo, Sungjoo and Choi, Taelim and Yang, Lu and Shin, Dongjun}, + Journal = {arXiv preprint arXiv:1511.06530}, + Year = {2015}, + + Month = nov, + + Url = {https://arxiv.org/abs/1511.06530} +} + +@Article{kingma2014adam, + Title = {Adam: A method for stochastic optimization}, + Author = {Kingma, Diederik and Ba, Jimmy}, + Journal = {arXiv preprint arXiv:1412.6980}, + Year = {2014}, + + Month = dec, + + Url = {https://arxiv.org/abs/1412.6980} +} + +@PhdThesis{kocmanek2015hyperneat, + Title = {{HyperNEAT} and Novelty Search for Image Recognition}, + Author = {Kocm{\'a}nek, T}, + School = {Master’s thesis, Czech Technical University in Prague}, + Year = {2015}, + + Url = {http://kocmi.tk/photos/DiplomaThesis.pdf} +} + +@Misc{CIFAR-10, + Title = {The {CIFAR-10} dataset}, + + Author = {Alex Krizhevsky}, + + Url = {https://www.cs.toronto.edu/~kriz/cifar.html} +} + +@Article{krizhevsky2009learning, + Title = {Learning multiple layers of features from tiny images}, + Author = {Krizhevsky, Alex and Hinton, Geoffrey}, + Year = {2009}, + + Month = apr, + + File = {:home/moose/GitHub/msthesis/paper/10.1.1.222.9220.pdf:PDF}, + Publisher = {Citeseer}, + Url = {https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf} +} + +@InCollection{AlexNet-2012, + Title = {ImageNet Classification with Deep Convolutional Neural Networks}, + Author = {Alex Krizhevsky and Sutskever, Ilya and Hinton, Geoffrey E}, + Booktitle = {Advances in Neural Information Processing Systems 25 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2012}, + Editor = {F. Pereira and C. J. C. Burges and L. Bottou and K. Q. Weinberger}, + Pages = {1097--1105}, + + Url = {http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf} +} + +@Article{971754, + Title = {Comparison of worst case errors in linear and neural network approximation}, + Author = {V. Kurkova and M. Sanguineti}, + Journal = {IEEE Transactions on Information Theory}, + Year = {2002}, + + Month = jan, + Number = {1}, + Pages = {264-275}, + Volume = {48}, + + Doi = {10.1109/18.971754}, + ISSN = {0018-9448}, + Keywords = {approximation theory;error analysis;feedforward neural nets;function approximation;perceptrons;set theory;fixed basis functions;linear approximation;multivariable functions;multivariable optimization;neural network approximation;one-hidden-layer feedforward neural networks;perceptron networks;sets;variable basis functions;worst case errors;Adaptive control;Chromium;Computer aided software engineering;Computer science;Electrical equipment industry;Industrial control;Intelligent networks;Joining materials;Linear approximation;Neural networks}, + Url = {http://ieeexplore.ieee.org/abstract/document/971754/} +} + +@InBook{vanLaarhoven1987, + Title = {Simulated annealing}, + Author = {van Laarhoven, Peter J. M. +and Aarts, Emile H. L.}, + Pages = {7--15}, + Publisher = {Springer Netherlands}, + Year = {1987}, + + Address = {Dordrecht}, + + Booktitle = {Simulated Annealing: {Theory} and Applications}, + Doi = {10.1007/978-94-015-7744-1_2}, + ISBN = {978-94-015-7744-1}, + Url = {http://dx.doi.org/10.1007/978-94-015-7744-1_2} +} + +@InProceedings{lavin2016fast, + Title = {Fast algorithms for convolutional neural networks}, + Author = {Lavin, Andrew and Gray, Scott}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2016}, + Month = sep, + Organization = {IEEE}, + Pages = {4013--4021}, + + Url = {https://arxiv.org/abs/1509.09308} +} + +@InProceedings{le2013building, + Title = {Building high-level features using large scale unsupervised learning}, + Author = {Le, Quoc V}, + Booktitle = {International conference on acoustics, speech and signal processing}, + Year = {2013}, + Organization = {IEEE}, + Pages = {8595--8598}, + + Url = {http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6639343} +} + +@InBook{EfficientBackprop, + Title = {Efficient BackProp}, + Author = {LeCun, Yann A. +and Bottou, L{\'e}on +and Orr, Genevieve B. +and M{\"u}ller, Klaus-Robert}, + Editor = {Montavon, Gr{\'e}goire +and Orr, Genevi{\`e}ve B. +and M{\"u}ller, Klaus-Robert}, + Pages = {9--50}, + Publisher = {Springer Berlin Heidelberg}, + Year = {1998}, + + Address = {Berlin, Heidelberg}, + Series = {Lecture Notes in Computer Science}, + Volume = {1524}, + + Booktitle = {Neural Networks: {Tricks} of the Trade: Second Edition}, + ISBN = {978-3-642-35289-8}, + Url = {http://dx.doi.org/10.1007/3-540-49430-8} +} + +@Article{lecun2015deep, + Title = {Deep learning}, + Author = {LeCun, Yann and Bengio, Yoshua and Hinton, Geoffrey}, + Journal = {Nature}, + Year = {2015}, + + Month = may, + Number = {7553}, + Pages = {436--444}, + Volume = {521}, + + Publisher = {Nature Publishing Group}, + Url = {http://www.nature.com/nature/journal/v521/n7553/abs/nature14539.html} +} + +@Article{LeNet-5, + Title = {Gradient-based learning applied to document recognition}, + Author = {LeCun, Yann and Bottou, L{\'e}on and Bengio, Yoshua and Haffner, Patrick}, + Journal = {Proceedings of the IEEE}, + Year = {1998}, + + Month = nov, + Number = {11}, + Pages = {2278-2324}, + Volume = {86}, + + Doi = {10.1109/5.726791}, + ISSN = {0018-9219}, + Keywords = {backpropagation;convolution;multilayer perceptrons;optical character recognition;2D shape variability;GTN;back-propagation;cheque reading;complex decision surface synthesis;convolutional neural network character recognizers;document recognition;document recognition systems;field extraction;gradient based learning technique;gradient-based learning;graph transformer networks;handwritten character recognition;handwritten digit recognition task;high-dimensional patterns;language modeling;multilayer neural networks;multimodule systems;performance measure minimization;segmentation recognition;Character recognition;Feature extraction;Hidden Markov models;Machine learning;Multi-layer neural network;Neural networks;Optical character recognition software;Optical computing;Pattern recognition;Principal component analysis}, + Url = {http://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf} +} + +@InProceedings{lecun1989optimal, + Title = {Optimal brain damage.}, + Author = {LeCun, Yann and Denker, John S and Solla, Sara A and Howard, Richard E and Jackel, Lawrence D}, + Booktitle = {NIPs}, + Year = {1989}, + Pages = {598--605}, + Volume = {2}, + + Url = {http://yann.lecun.com/exdb/publis/pdf/lecun-90b.pdf} +} + +@InProceedings{lee2016generalizing, + Title = {Generalizing pooling functions in convolutional neural networks: {Mixed}, gated, and tree}, + Author = {Lee, Chen-Yu and Gallagher, Patrick W and Tu, Zhuowen}, + Booktitle = {International Conference on Artificial Intelligence and Statistics}, + Year = {2016}, + + Url = {https://arxiv.org/abs/1509.08985v2} +} + +@Article{li2016learning, + Title = {Learning to optimize}, + Author = {Li, Ke and Malik, Jitendra}, + Journal = {arXiv preprint arXiv:1606.01885}, + Year = {2016}, + + Month = jun, + + Url = {https://arxiv.org/abs/1606.01885} +} + +@Article{li2016hyperband, + Title = {Hyperband: {A} Novel Bandit-Based Approach to Hyperparameter Optimization}, + Author = {Li, Lisha and Jamieson, Kevin and DeSalvo, Giulia and Rostamizadeh, Afshin and Talwalkar, Ameet}, + Journal = {arXiv preprint arXiv:1603.06560}, + Year = {2016}, + + Month = mar, + + Url = {https://arxiv.org/abs/1603.06560} +} + +@Article{LingxiXie2017, + Title = {Genetic {CNN}}, + Author = {Lingxi Xie, Alan Yuille}, + Journal = {arXiv preprint arXiv:1703.01513}, + Year = {2017}, + + Month = mar, + + Url = {https://arxiv.org/abs/1703.01513} +} + +@InProceedings{liu2016ssd, + Title = {{SSD}: {Single} shot multibox detector}, + Author = {Liu, Wei and Anguelov, Dragomir and Erhan, Dumitru and Szegedy, Christian and Reed, Scott and Fu, Cheng-Yang and Berg, Alexander C}, + Booktitle = {European Conference on Computer Vision (ECCV)}, + Year = {2016}, + Organization = {Springer}, + Pages = {21--37}, + + Url = {https://arxiv.org/abs/1512.02325} +} + +@InProceedings{long2015fully, + Title = {Fully convolutional networks for semantic segmentation}, + Author = {Long, Jonathan and Shelhamer, Evan and Darrell, Trevor}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2015}, + Month = mar, + Organization = {IEEE}, + Pages = {3431--3440}, + + Url = {https://arxiv.org/abs/1411.4038v2} +} + +@Article{DBLP:journals/corr/LoshchilovH16a, + Title = {{SGDR:} Stochastic Gradient Descent with Restarts}, + Author = {Ilya Loshchilov and + Frank Hutter}, + Journal = {arXiv preprint arXiv:1608.03983}, + Year = {2016}, + + Month = aug, + Volume = {abs/1608.03983}, + + Bibsource = {dblp computer science bibliography, http://dblp.org}, + Biburl = {http://dblp.uni-trier.de/rec/bib/journals/corr/LoshchilovH16a}, + Timestamp = {Fri, 02 Sep 2016 17:46:24 +0200}, + Url = {https://arxiv.org/abs/1608.03983} +} + +@Article{loshchilov10sgdr, + Title = {{SGDR:} Stochastic Gradient Descent with Warm Restarts}, + Author = {Loshchilov, Ilya and Hutter, Frank}, + Journal = {Learning}, + Year = {2016}, + + Month = aug, + + Url = {https://arxiv.org/abs/1608.03983} +} + +@InProceedings{maas2013rectifier, + Title = {Rectifier nonlinearities improve neural network acoustic models}, + Author = {Maas, Andrew L and Hannun, Awni Y and Ng, Andrew Y}, + Booktitle = {Proc. ICML}, + Year = {2013}, + Number = {1}, + Volume = {30}, + + Url = {https://web.stanford.edu/~awni/papers/relu_hybrid_icml2013_final.pdf} +} + +@Article{maaten2008visualizing, + Title = {Visualizing data using {t-SNE}}, + Author = {Maaten, Laurens van der and Hinton, Geoffrey}, + Journal = {Journal of Machine Learning Research}, + Year = {2008}, + Number = {Nov}, + Pages = {2579--2605}, + Volume = {9} +} + +@InProceedings{maclaurin2015gradient, + Title = {Gradient-based hyperparameter optimization through reversible learning}, + Author = {Maclaurin, Dougal and Duvenaud, David and Adams, Ryan}, + Booktitle = {International Conference on Machine Learning (ICML)}, + Year = {2015}, + Pages = {2113--2122} +} + +@Article{mahendran2016visualizing, + Title = {Visualizing deep convolutional neural networks using natural pre-images}, + Author = {Mahendran, Aravindh and Vedaldi, Andrea}, + Journal = {International Journal of Computer Vision}, + Year = {2016}, + + Month = apr, + Pages = {1--23}, + + Publisher = {Springer}, + Url = {https://arxiv.org/abs/1512.02017} +} + +@Misc{Majumdar2017-densenet-weights, + Title = {DenseNet}, + + Author = {Somshubra Majumdar}, + HowPublished = {GitHub}, + Month = feb, + Year = {2017}, + + Url = {https://github.com/titu1994/DenseNet} +} + +@InProceedings{marszalek2007accurate, + Title = {Accurate object localization with shape masks}, + Author = {Marszalek, Marcin and Schmid, Cordelia}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2007}, + Organization = {IEEE}, + Pages = {1--8}, + + Url = {http://ieeexplore.ieee.org/document/4270110/} +} + +@Misc{IG02-dataset, + Title = {{INRIA} Annotations for {Graz-02} ({IG02})}, + + Author = {Marcin Marszałek}, + Month = oct, + Year = {2008}, + + Url = {http://lear.inrialpes.fr/people/marszalek/data/ig02/} +} + +@Article{mcculloch1943logical, + Title = {A logical calculus of the ideas immanent in nervous activity}, + Author = {McCulloch, Warren S and Pitts, Walter}, + Journal = {The bulletin of mathematical biophysics}, + Year = {1943}, + Number = {4}, + Pages = {115--133}, + Volume = {5}, + + Publisher = {Springer} +} + +@InProceedings{7301739, + Title = {Data-augmentation for reducing dataset bias in person re-identification}, + Author = {N. McLaughlin and J. M. Del Rincon and P. Miller}, + Booktitle = {International Conference on Advanced Video and Signal Based Surveillance (AVSS)}, + Year = {2015}, + Month = aug, + Number = {12}, + Pages = {1-6}, + + Doi = {10.1109/AVSS.2015.7301739}, + Keywords = {image processing;convolutional network based reidentification system;cross-dataset generalisation;data augmentation;dataset bias reduction;image background;person reidentification;Accuracy;Cameras;Image color analysis;Lighting;Standards;Testing;Training}, + Url = {http://ieeexplore.ieee.org/abstract/document/7301739/} +} + +@Article{mishkin2015all, + Title = {All you need is a good init}, + Author = {Mishkin, Dmytro and Matas, Jiri}, + Journal = {arXiv preprint arXiv:1511.06422}, + Year = {2015}, + + Month = nov, + + Url = {https://arxiv.org/abs/1511.06422} +} + +@Article{mishkin2016systematic, + Title = {Systematic evaluation of {CNN} advances on the {ImageNet}}, + Author = {Mishkin, Dmytro and Sergievskiy, Nikolay and Matas, Jiri}, + Journal = {arXiv preprint arXiv:1606.02228}, + Year = {2016}, + + Month = jun, + + Url = {https://arxiv.org/abs/1606.02228} +} + +@InCollection{natarajan2013learning, + Title = {Learning with Noisy Labels}, + Author = {Natarajan, Nagarajan and Dhillon, Inderjit S and Ravikumar, Pradeep K and Tewari, Ambuj}, + Booktitle = {Advances in Neural Information Processing Systems 26 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2013}, + Editor = {C. J. C. Burges and L. Bottou and M. Welling and Z. Ghahramani and K. Q. Weinberger}, + Pages = {1196--1204}, + + Url = {http://papers.nips.cc/paper/5073-learning-with-noisy-labels.pdf} +} + +@InProceedings{nesterov1983method, + Title = {A method of solving a convex programming problem with convergence rate O (1/k2)}, + Author = {Nesterov, Yurii}, + Booktitle = {Soviet Mathematics Doklady}, + Year = {1983}, + Number = {2}, + Pages = {372--376}, + Volume = {27} +} + +@InProceedings{netzer2011reading, + Title = {Reading digits in natural images with unsupervised feature learning}, + Author = {Netzer, Yuval and Wang, Tao and Coates, Adam and Bissacco, Alessandro and Wu, Bo and Ng, Andrew Y}, + Booktitle = {NIPS workshop on deep learning and unsupervised feature learning}, + Year = {2011}, + Number = {2}, + Pages = {5}, + Volume = {2011}, + + Url = {http://ufldl.stanford.edu/housenumbers/nips2011_housenumbers.pdf} +} + +@Misc{YuvalNetzer2011, + Title = {The Street View House Numbers ({SVHN}) Dataset}, + + Author = {Yuval Netzer AND Tao Wang AND Adam Coates AND Alessandro Bissacco AND Bo Wu AND Andrew Y. Ng}, + Year = {2011}, + + Url = {http://ufldl.stanford.edu/housenumbers/} +} + +@Misc{Ng2016, + Title = {Nuts and bolts of building AI applications using Deep Learning}, + + Author = {Andrew Ng}, + HowPublished = {NIPS Talk}, + Month = dec, + Year = {2016} +} + +@Article{ng2002clarans, + Title = {{CLARANS}: {A} method for clustering objects for spatial data mining}, + Author = {Ng, Raymond T. and Han, Jiawei}, + Journal = {IEEE transactions on knowledge and data engineering}, + Year = {2002}, + Number = {5}, + Pages = {1003--1016}, + Volume = {14}, + + Publisher = {IEEE} +} + +@Article{nguyen2016multifaceted, + Title = {Multifaceted Feature Visualization: {Uncovering} the Different Types of Features Learned By Each Neuron in Deep Neural Networks}, + Author = {Nguyen, Anh and Yosinski, Jason and Clune, Jeff}, + Journal = {arXiv preprint arXiv:1602.03616}, + Year = {2016}, + + Month = may, + + Url = {https://arxiv.org/abs/1602.03616} +} + +@InProceedings{nguyen2015deep, + Title = {Deep neural networks are easily fooled: {High} confidence predictions for unrecognizable images}, + Author = {Nguyen, Anh and Yosinski, Jason and Clune, Jeff}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2015}, + Month = dec, + Organization = {IEEE}, + Pages = {427--436}, + + Url = {https://arxiv.org/abs/1412.1897v4} +} + +@Article{nowlan1992simplifying, + Title = {Simplifying neural networks by soft weight-sharing}, + Author = {Nowlan, Steven J and Hinton, Geoffrey E}, + Journal = {Neural computation}, + Year = {1992}, + Number = {4}, + Pages = {473--493}, + Volume = {4}, + + Publisher = {MIT Press}, + Url = {https://www.cs.toronto.edu/~hinton/absps/sunspots.pdf} +} + +@Article{ortigosa2016towards, + Title = {Towards Competitive Classifiers for Unbalanced Classification Problems: {A} Study on the Performance Scores}, + Author = {Ortigosa-Hern{\'a}ndez, Jonathan and Inza, I{\~n}aki and Lozano, Jose A}, + Journal = {arXiv preprint arXiv:1608.08984}, + Year = {2016}, + + Month = aug, + + Url = {https://arxiv.org/abs/1608.08984} +} + +@Article{papernot2015distillation, + Title = {Distillation as a defense to adversarial perturbations against deep neural networks}, + Author = {Papernot, Nicolas and McDaniel, Patrick and Wu, Xi and Jha, Somesh and Swami, Ananthram}, + Journal = {arXiv preprint arXiv:1511.04508}, + Year = {2015}, + + Month = nov, + + Url = {https://arxiv.org/abs/1511.04508} +} + +@InBook{Prechelt1998, + Title = {Early Stopping - But When?}, + Author = {Prechelt, Lutz}, + Editor = {Orr, Genevieve B. +and M{\"u}ller, Klaus-Robert}, + Pages = {55--69}, + Publisher = {Springer Berlin Heidelberg}, + Year = {1998}, + + Address = {Berlin, Heidelberg}, + + Booktitle = {Neural Networks: {Tricks} of the Trade}, + Doi = {10.1007/3-540-49430-8_3}, + ISBN = {978-3-540-49430-0}, + Url = {http://dx.doi.org/10.1007/3-540-49430-8_3} +} + +@Article{ribeiro2016should, + Title = {"Why Should I Trust You?": {Explaining} the Predictions of Any Classifier}, + Author = {Ribeiro, Marco Tulio and Singh, Sameer and Guestrin, Carlos}, + Journal = {arXiv preprint arXiv:1602.04938}, + Year = {2016}, + + Month = feb, + + Url = {https://arxiv.org/abs/1602.04938} +} + +@InProceedings{risi2010evolving, + Title = {Evolving the placement and density of neurons in the hyperneat substrate}, + Author = {Risi, Sebastian and Lehman, Joel and Stanley, Kenneth O}, + Booktitle = {Conference on Genetic and evolutionary computation}, + Year = {2010}, + Number = {12}, + Organization = {ACM}, + Pages = {563--570} +} + +@InProceedings{ronneberger2015u, + Title = {U-net: {Convolutional} networks for biomedical image segmentation}, + Author = {Ronneberger, Olaf and Fischer, Philipp and Brox, Thomas}, + Booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention}, + Year = {2015}, + Organization = {Springer}, + Pages = {234--241}, + + Url = {https://arxiv.org/abs/1505.04597} +} + +@Article{ruder2016overview, + Title = {An overview of gradient descent optimization algorithms}, + Author = {Ruder, Sebastian}, + Journal = {arXiv preprint arXiv:1609.04747}, + Year = {2016}, + + Month = sep, + + Url = {https://arxiv.org/abs/1609.04747} +} + +@Article{russakovsky2014imagenet, + Title = {Imagenet large scale visual recognition challenge}, + Author = {Russakovsky, Olga and Deng, Jia and Su, Hao and Krause, Jonathan and Satheesh, Sanjeev and Ma, Sean and Huang, Zhiheng and Karpathy, Andrej and Khosla, Aditya and Bernstein, Michael and Berg, Alexander C. and Fei-Fei, Li}, + Journal = {arXiv preprint arXiv:1409.0575}, + Year = {2014}, + + Month = sep, + Number = {3}, + Pages = {211--252}, + Volume = {115}, + + Publisher = {Springer}, + Url = {https://arxiv.org/abs/1409.0575} +} + +@Article{saxe2013exact, + Title = {Exact solutions to the nonlinear dynamics of learning in deep linear neural networks}, + Author = {Saxe, Andrew M and McClelland, James L and Ganguli, Surya}, + Journal = {arXiv preprint arXiv:1312.6120}, + Year = {2013}, + + Month = dec, + + Url = {https://arxiv.org/abs/1312.6120} +} + +@Article{saxena2016convolutional, + Title = {Convolutional Neural Fabrics}, + Author = {Saxena, Shreyas and Verbeek, Jakob}, + Journal = {arXiv preprint arXiv:1606.02492}, + Year = {2016}, + + Url = {https://arxiv.org/abs/1606.02492} +} + +@InProceedings{schroff2015facenet, + Title = {Facenet: {A} unified embedding for face recognition and clustering}, + Author = {Schroff, Florian and Kalenichenko, Dmitry and Philbin, James}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2015}, + Month = mar, + Organization = {IEEE}, + Pages = {815--823}, + + Url = {https://arxiv.org/abs/1503.03832} +} + +@InProceedings{senior2013empirical, + Title = {An empirical study of learning rates in deep neural networks for speech recognition}, + Author = {Senior, Andrew and Heigold, Georg and Yang, Ke and others}, + Booktitle = {International Conference on Acoustics, Speech and Signal Processing}, + Year = {2013}, + Organization = {IEEE}, + Pages = {6724--6728}, + + Url = {http://ieeexplore.ieee.org/document/6638963/?arnumber=6638963} +} + +@InProceedings{sermanet2012convolutional, + Title = {Convolutional neural networks applied to house numbers digit classification}, + Author = {Sermanet, Pierre and Chintala, Soumith and LeCun, Yann}, + Booktitle = {International Conference on Pattern Recognition (ICPR)}, + Year = {2012}, + Month = apr, + Number = {21}, + Organization = {IEEE}, + Pages = {3288--3291}, + + Url = {https://arxiv.org/abs/1204.3968} +} + +@Article{sermanet2013overfeat, + Title = {Overfeat: {Integrated} recognition, localization and detection using convolutional networks}, + Author = {Sermanet, Pierre and Eigen, David and Zhang, Xiang and Mathieu, Micha{\"e}l and Fergus, Rob and LeCun, Yann}, + Journal = {arXiv preprint arXiv:1312.6229}, + Year = {2013}, + + Month = feb, + + Url = {https://arxiv.org/abs/1312.6229v4} +} + +@InProceedings{6033589, + Title = {Traffic sign recognition with multi-scale Convolutional Networks}, + Author = {P. Sermanet and Y. LeCun}, + Booktitle = {International Joint Conference on Neural Networks (IJCNN)}, + Year = {2011}, + Month = jul, + Pages = {2809-2813}, + + Doi = {10.1109/IJCNN.2011.6033589}, + ISSN = {2161-4393}, + Keywords = {computer vision;image classification;image colour analysis;traffic engineering computing;GTSRB competition;HOG;SIFT;greyscale images;hand-crafted features;hierarchy learning;multiscale convolutional network;multistage architecture;traffic sign classification;traffic sign recognition;vision approach;Accuracy;Color;Computer architecture;Feature extraction;Image color analysis;Neural networks;Training}, + Url = {http://ieeexplore.ieee.org/document/6033589/} +} + +@Article{shin2016deep, + Title = {Deep convolutional neural networks for computer-aided detection: {CNN} architectures, dataset characteristics and transfer learning}, + Author = {Shin, Hoo-Chang and Roth, Holger R and Gao, Mingchen and Lu, Le and Xu, Ziyue and Nogues, Isabella and Yao, Jianhua and Mollura, Daniel and Summers, Ronald M}, + Journal = {IEEE transactions on medical imaging}, + Year = {2016}, + + Month = feb, + Number = {5}, + Pages = {1285--1298}, + Volume = {35}, + + Publisher = {IEEE}, + Url = {http://ieeexplore.ieee.org/document/7404017/?arnumber=7404017} +} + +@Article{simonyan2013deep, + Title = {Deep inside convolutional networks: {Visualising} image classification models and saliency maps}, + Author = {Simonyan, Karen and Vedaldi, Andrea and Zisserman, Andrew}, + Journal = {arXiv preprint arXiv:1312.6034}, + Year = {2013}, + + Month = dec, + + Url = {https://arxiv.org/abs/1312.6034} +} + +@Article{VGG-16, + Title = {Very deep convolutional networks for large-scale image recognition}, + Author = {Simonyan, Karen and Zisserman, Andrew}, + Journal = {arXiv preprint arXiv:1409.1556}, + Year = {2014}, + + Month = sep, + + Url = {https://arxiv.org/abs/1409.1556} +} + +@Article{srivastava2014dropout, + Title = {Dropout: a simple way to prevent neural networks from overfitting.}, + Author = {Srivastava, Nitish and Hinton, Geoffrey E and Krizhevsky, Alex and Sutskever, Ilya and Salakhutdinov, Ruslan}, + Journal = {Journal of Machine Learning Research}, + Year = {2014}, + Number = {1}, + Pages = {1929--1958}, + Volume = {15}, + + Url = {https://www.cs.toronto.edu/~hinton/absps/JMLRdropout.pdf} +} + +@Article{srivastava2014understanding, + Title = {Understanding locally competitive networks}, + Author = {Srivastava, Rupesh Kumar and Masci, Jonathan and Gomez, Faustino and Schmidhuber, J{\"u}rgen}, + Journal = {arXiv preprint arXiv:1410.1165}, + Year = {2014}, + + Month = oct, + + Url = {https://arxiv.org/abs/1410.1165} +} + +@Misc{JohannesStallkamp, + Title = {The German Traffic Sign Recognition Benchmark}, + + Author = {Johannes Stallkamp AND Marc Schlipsing AND Jan Salmen AND Christian Igel}, + + Url = {http://benchmark.ini.rub.de/?section=gtsrb&subsection=news} +} + +@Article{Stallkamp2012GTSRB, + Title = {Man vs. computer: {Benchmarking} machine learning algorithms for traffic sign recognition}, + Author = {J. Stallkamp and M. Schlipsing and J. Salmen and C. Igel}, + Journal = {Neural Networks}, + Year = {2012}, + Number = {0}, + Pages = { - }, + + Doi = {10.1016/j.neunet.2012.02.016}, + ISSN = {0893-6080}, + Keywords = {Traffic sign recognition}, + Url = {http://www.sciencedirect.com/science/article/pii/S0893608012000457} +} + +@InProceedings{stallkamp2011german, + Title = {The German traffic sign recognition benchmark: a multi-class classification competition}, + Author = {Stallkamp, Johannes and Schlipsing, Marc and Salmen, Jan and Igel, Christian}, + Booktitle = {International Joint Conference on Neural Networks (IJCNN)}, + Year = {2011}, + Organization = {IEEE}, + Pages = {1453--1460}, + + Url = {http://ieeexplore.ieee.org/document/6033395/} +} + +@Article{stanley2009hypercube, + Title = {A hypercube-based encoding for evolving large-scale neural networks}, + Author = {Stanley, Kenneth O and D'Ambrosio, David B and Gauci, Jason}, + Journal = {Artificial life}, + Year = {2009}, + Number = {2}, + Pages = {185--212}, + Volume = {15}, + + Publisher = {MIT Press}, + Url = {http://ieeexplore.ieee.org/document/6792316/} +} + +@Article{stanley2002evolving, + Title = {Evolving neural networks through augmenting topologies}, + Author = {Stanley, Kenneth O and Miikkulainen, Risto}, + Journal = {Evolutionary computation}, + Year = {2002}, + Number = {2}, + Pages = {99--127}, + Volume = {10}, + + File = {:home/moose/GitHub/informatik-2011/Master/Master-Arbeit/paper/NEAT.pdf:PDF}, + Publisher = {MIT Press}, + Url = {http://www.mitpressjournals.org/doi/abs/10.1162/106365602320169811} +} + +@Article{inception-v4, + Title = {Inception-v4, inception-resnet and the impact of residual connections on learning}, + Author = {Szegedy, Christian and Ioffe, Sergey and Vanhoucke, Vincent}, + Journal = {arXiv preprint arXiv:1602.07261}, + Year = {2016}, + + Month = feb, + + Url = {https://arxiv.org/abs/1602.07261} +} + +@InProceedings{GoogleNet-Inception, + Title = {Going deeper with convolutions}, + Author = {Szegedy, Christian and Liu, Wei and Jia, Yangqing and Sermanet, Pierre and Reed, Scott and Anguelov, Dragomir and Erhan, Dumitru and Vanhoucke, Vincent and Rabinovich, Andrew}, + Booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)}, + Year = {2015}, + Month = sep, + Organization = {IEEE}, + Pages = {1--9}, + + Url = {https://arxiv.org/abs/1409.4842} +} + +@Article{Inception-v3, + Title = {Rethinking the inception architecture for computer vision}, + Author = {Szegedy, Christian and Vanhoucke, Vincent and Ioffe, Sergey and Shlens, Jonathon and Wojna, Zbigniew}, + Journal = {arXiv preprint arXiv:1512.00567}, + Year = {2015}, + + Month = dec, + + Url = {https://arxiv.org/abs/1512.00567v3} +} + +@Article{szegedy2013intriguing, + Title = {Intriguing properties of neural networks}, + Author = {Szegedy, Christian and Zaremba, Wojciech and Sutskever, Ilya and Bruna, Joan and Erhan, Dumitru and Goodfellow, Ian and Fergus, Rob}, + Journal = {arXiv preprint arXiv:1312.6199}, + Year = {2013}, + + Month = dec, + + Url = {https://arxiv.org/abs/1312.6199v4} +} + +@Article{thoma2017hasyv2, + Title = {The {HASYv2} dataset}, + Author = {Thoma, Martin}, + Journal = {arXiv preprint arXiv:1701.08380}, + Year = {2017}, + + Month = jan, + + Url = {https://arxiv.org/abs/1701.08380} +} + +@Misc{thoma-msthesis-blog, + Title = {Master Thesis (Blog post)}, + + Author = {Martin Thoma}, + Month = apr, + Year = {2017}, + + Url = {https://martin-thoma.com/msthesis} +} + +@Article{Thoma:2016, + Title = {A Survey of Semantic Segmentation}, + Author = {Martin Thoma}, + Journal = {arXiv preprint arXiv:1602.06541}, + Year = {2016}, + + Month = feb, + + Url = {https://arxiv.org/abs/1602.06541} +} + +@Misc{Thom2014, + Title = {The {Twiddle} Algorithm}, + + Author = {Martin Thoma}, + Month = sep, + Year = {2014}, + + Url = {https://martin-thoma.com/twiddle/} +} + +@Misc{Thoma:2014, + Title = {On-line Recognition of Handwritten Mathematical Symbols}, + + Author = {Martin Thoma}, + Month = nov, + Year = {2014}, + + Address = {Karlsruhe, Germany}, + Keywords = {handwriting recognition; on-line; machine learning; + artificial neural networks; mathematics; classification; + supervised learning; MLP; multilayer perceptrons; hwrt; + write-math}, + School = {Karlsruhe Institute of Technology}, + Type = {{B.S. Thesis}}, + Url = {http://martin-thoma.com/write-math} +} + +@Article{tieleman2012lecture, + Title = {Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude}, + Author = {Tieleman, Tijmen and Hinton, Geoffrey}, + Journal = {COURSERA: Neural Networks for Machine Learning}, + Year = {2012}, + Number = {2}, + Volume = {4}, + + Url = {http://www.cs.toronto.edu/~tijmen/csc321/slides/lecture_slides_lec6.pdf} +} + +@Article{verbancsics2013generative, + Title = {Generative neuroevolution for deep learning}, + Author = {Verbancsics, Phillip and Harguess, Josh}, + Journal = {arXiv preprint arXiv:1312.5355}, + Year = {2013}, + + Month = dec, + + Url = {https://arxiv.org/abs/1312.5355} +} + +@Article{vorontsov2017orthogonality, + Title = {On orthogonality and learning recurrent networks with long term dependencies}, + Author = {Vorontsov, Eugene and Trabelsi, Chiheb and Kadoury, Samuel and Pal, Chris}, + Journal = {arXiv preprint arXiv:1702.00071}, + Year = {2017}, + + Month = jan, + + Url = {https://arxiv.org/abs/1702.00071} +} + +@Article{waibel1989phoneme, + Title = {Phoneme recognition using time-delay neural networks}, + Author = {Waibel, Alex and Hanazawa, Toshiyuki and Hinton, Geoffrey and Shikano, Kiyohiro and Lang, Kevin J}, + Journal = {IEEE transactions on acoustics, speech, and signal processing}, + Year = {1989}, + + Month = aug, + Number = {3}, + Pages = {328--339}, + Volume = {37}, + + Publisher = {IEEE}, + Url = {http://ieeexplore.ieee.org/document/21701/} +} + +@InProceedings{wan2013regularization, + Title = {Regularization of neural networks using dropconnect}, + Author = {Wan, Li and Zeiler, Matthew and Zhang, Sixin and Cun, Yann L and Fergus, Rob}, + Booktitle = {International Conference on Machine Learning (ICML)}, + Year = {2013}, + Number = {30}, + Pages = {1058--1066}, + + Url = {http://www.matthewzeiler.com/pubs/icml2013/icml2013.pdf} +} + +@Article{wang2016torontocity, + Title = {{TorontoCity}: Seeing the World with a Million Eyes}, + Author = {Wang, Shenlong and Bai, Min and Mattyus, Gellert and Chu, Hang and Luo, Wenjie and Yang, Bin and Liang, Justin and Cheverie, Joel and Fidler, Sanja and Urtasun, Raquel}, + Journal = {arXiv preprint arXiv:1612.00423}, + Year = {2016} +} + +@InBook{Wang2013, + Title = {A Comparative Study of Encoding, Pooling and Normalization Methods for Action Recognition}, + Author = {Wang, Xingxing +and Wang, LiMin +and Qiao, Yu}, + Editor = {Lee, Kyoung Mu +and Matsushita, Yasuyuki +and Rehg, James M. +and Hu, Zhanyi}, + Pages = {572--585}, + Publisher = {Springer Berlin Heidelberg}, + Year = {2013}, + + Address = {Berlin, Heidelberg}, + Month = nov, + Number = {11}, + + Booktitle = {Asian Conference on Computer Vision (ACCV)}, + Doi = {10.1007/978-3-642-37431-9_44}, + ISBN = {978-3-642-37431-9}, + Url = {http://dx.doi.org/10.1007/978-3-642-37431-9_44} +} + +@Article{williams1992simple, + Title = {Simple statistical gradient-following algorithms for connectionist reinforcement learning}, + Author = {Williams, Ronald J}, + Journal = {Machine learning}, + Year = {1992}, + Number = {3-4}, + Pages = {229--256}, + Volume = {8}, + + Publisher = {Springer} +} + +@Article{wu2015deep, + Title = {Deep image: {Scaling} up image recognition}, + Author = {Wu, Ren and Yan, Shengen and Shan, Yi and Dang, Qingqing and Sun, Gang}, + Journal = {arXiv preprint arXiv:1501.02876}, + Year = {2015}, + + Month = jul, + Number = {8}, + Volume = {7}, + + Publisher = {Arxiv}, + Url = {https://arxiv.org/abs/1501.02876v4} +} + +@InProceedings{xiao2012adversarial, + Title = {Adversarial Label Flips Attack on Support Vector Machines.}, + Author = {Xiao, Han and Xiao, Huang and Eckert, Claudia}, + Booktitle = {ECAI}, + Year = {2012}, + Pages = {870--875}, + + Url = {https://www.sec.in.tum.de/assets/Uploads/ecai2.pdf} +} + +@InProceedings{xiao2014error, + Title = {Error-driven incremental learning in deep convolutional neural network for large-scale image classification}, + Author = {Xiao, Tianjun and Zhang, Jiaxing and Yang, Kuiyuan and Peng, Yuxin and Zhang, Zheng}, + Booktitle = {International Conference on Multimedia}, + Year = {2014}, + Number = {22}, + Organization = {ACM}, + Pages = {177--186} +} + +@Article{xie2016aggregated, + Title = {Aggregated Residual Transformations for Deep Neural Networks}, + Author = {Xie, Saining and Girshick, Ross and Doll{\'a}r, Piotr and Tu, Zhuowen and He, Kaiming}, + Journal = {arXiv preprint arXiv:1611.05431}, + Year = {2016}, + + Month = nov, + + Url = {https://arxiv.org/abs/1611.05431v1} +} + +@Article{XinLi2016, + Title = {Adversarial Examples Detection in Deep Networks with Convolutional Filter Statistics}, + Author = {Xin Li, Fuxin Li}, + Journal = {arXiv preprint arXiv:1612.07767}, + Year = {2016}, + + Month = dec, + + Url = {https://arxiv.org/abs/1612.07767} +} + +@Article{xu2015empirical, + Title = {Empirical evaluation of rectified activations in convolutional network}, + Author = {Xu, Bing and Wang, Naiyan and Chen, Tianqi and Li, Mu}, + Journal = {arXiv preprint arXiv:1505.00853}, + Year = {2015}, + + Month = may, + + Url = {https://arxiv.org/abs/1505.00853} +} + +@Article{xu2011towards, + Title = {Towards optimal one pass large scale learning with averaged stochastic gradient descent}, + Author = {Xu, Wei}, + Journal = {arXiv preprint arXiv:1107.2490}, + Year = {2011}, + + Month = jul, + + File = {:home/moose/GitHub/informatik-2011/Master/Master-Arbeit/paper/towards-optimal-one-pass-lsl-with-a-sgd.pdf:PDF}, + Url = {https://arxiv.org/abs/1107.2490} +} + +@Misc{YannLeCun1998, + Title = {The {MNIST} database of handwritten digits}, + + Author = {Yann LeCun, Corinna Cortes, Christopher J.C. Burges}, + Year = {1998}, + + Url = {http://yann.lecun.com/exdb/mnist/} +} + +@Article{yu2014visualizing, + Title = {Visualizing and Comparing Convolutional Neural Networks}, + Author = {Yu, Wei and Yang, Kuiyuan and Bai, Yalong and Yao, Hongxun and Rui, Yong}, + Journal = {arXiv preprint arXiv:1412.6631}, + Year = {2014}, + + Month = dec, + + Url = {https://arxiv.org/abs/1412.6631} +} + +@Article{zagoruyko2016wide, + Title = {Wide residual networks}, + Author = {Zagoruyko, Sergey and Komodakis, Nikos}, + Journal = {arXiv preprint arXiv:1605.07146}, + Year = {2016}, + + Month = may, + + Url = {https://arxiv.org/abs/1605.07146} +} + +@Article{zeiler2012adadelta, + Title = {ADADELTA: an adaptive learning rate method}, + Author = {Zeiler, Matthew D}, + Journal = {arXiv preprint arXiv:1212.5701}, + Year = {2012}, + + Month = dec, + + Url = {https://arxiv.org/abs/1212.5701v1} +} + +@InProceedings{zeiler2014visualizing, + Title = {Visualizing and understanding convolutional networks}, + Author = {Zeiler, Matthew D and Fergus, Rob}, + Booktitle = {European Conference on Computer Vision (ECCV)}, + Year = {2014}, + Month = nov, + Organization = {Springer}, + Pages = {818--833}, + + Url = {https://arxiv.org/abs/1311.2901} +} + +@Article{zeiler2013stochastic, + Title = {Stochastic pooling for regularization of deep convolutional neural networks}, + Author = {Zeiler, Matthew D and Fergus, Rob}, + Journal = {arXiv preprint arXiv:1301.3557}, + Year = {2013}, + + Month = jan, + + Url = {https://arxiv.org/abs/1301.3557v1} +} + +@InCollection{zhai2016doubly, + Title = {Doubly Convolutional Neural Networks}, + Author = {Zhai, Shuangfei and Cheng, Yu and Zhang, Zhongfei (Mark) and Lu, Weining}, + Booktitle = {Advances in Neural Information Processing Systems 29 (NIPS)}, + Publisher = {Curran Associates, Inc.}, + Year = {2016}, + Editor = {D. D. Lee and M. Sugiyama and U. V. Luxburg and I. Guyon and R. Garnett}, + Month = oct, + Pages = {1082--1090}, + + Url = {http://papers.nips.cc/paper/6340-doubly-convolutional-neural-networks.pdf} +} + +@Article{zhang2016understanding, + Title = {Understanding deep learning requires rethinking generalization}, + Author = {Zhang, Chiyuan and Bengio, Samy and Hardt, Moritz and Recht, Benjamin and Vinyals, Oriol}, + Journal = {arXiv preprint arXiv:1611.03530}, + Year = {2016}, + + Month = nov, + + Url = {https://arxiv.org/abs/1611.03530} +} + +@InProceedings{zhang2014part, + Title = {Part-based {R-CNNs} for fine-grained category detection}, + Author = {Zhang, Ning and Donahue, Jeff and Girshick, Ross and Darrell, Trevor}, + Booktitle = {European Conference on Computer Vision (ECCV)}, + Year = {2014}, + Month = jul, + Organization = {Springer}, + Pages = {834--849}, + + Url = {https://arxiv.org/abs/1407.3867} +} + +@Article{zhao2015stacked, + Title = {Stacked what-where auto-encoders}, + Author = {Zhao, Junbo and Mathieu, Michael and Goroshin, Ross and Lecun, Yann}, + Journal = {arXiv preprint arXiv:1506.02351}, + Year = {2015}, + + Month = jun, + + Url = {https://arxiv.org/abs/1506.02351v1} +} + +@InProceedings{7280459, + Title = {Improving deep neural networks using softplus units}, + Author = {Hao Zheng and Zhanlei Yang and Wenju Liu and Jizhong Liang and Yanpeng Li}, + Booktitle = {International Joint Conference on Neural Networks (IJCNN)}, + Year = {2015}, + Month = jul, + Pages = {1-4}, + + Abstract = {Recently, DNNs have achieved great improvement for acoustic modeling in speech recognition tasks. However, it is difficult to train the models well when the depth grows. One main reason is that when training DNNs with traditional sigmoid units, the derivatives damp sharply while back-propagating between layers, which restrict the depth of model especially with insufficient training data. To deal with this problem, some unbounded activation functions have been proposed to preserve sufficient gradients, including ReLU and softplus. Compared with ReLU, the smoothing and nonzero properties of the in gradient makes softplus-based DNNs perform better in both stabilization and performance. However, softplus-based DNNs have been rarely exploited for the phoneme recognition task. In this paper, we explore the use of softplus units for DNNs in acoustic modeling for context-independent phoneme recognition tasks. The revised RBM pre-training and dropout strategy are also applied to improve the performance of softplus units. Experiments show that, the DNNs with softplus units get significantly performance improvement and uses less epochs to get convergence compared to the DNNs trained with standard sigmoid units and ReLUs.}, + Doi = {10.1109/IJCNN.2015.7280459}, + ISSN = {2161-4393}, + Keywords = {backpropagation;neural nets;speech recognition;DNN data training;ReLU;acoustic modeling;backpropagation;context-independent phoneme recognition tasks;deep neural networks;dropout strategy;revised RBM pre-training;sigmoid units;softplus units;speech recognition tasks;unbounded activation functions;Speech;TIMIT;deep neural networks;dropout;softplus} +} + +@Misc{Zhou2016, + Title = {Places2 Download}, + + Author = {Bolei Zhou}, + Year = {2016}, + + Url = {http://places2.csail.mit.edu/download.html} +} + +@Article{zhou2015learning, + Title = {Learning Deep Features for Discriminative Localization}, + Author = {Zhou, Bolei and Khosla, Aditya and Lapedriza, Agata and Oliva, Aude and Torralba, Antonio}, + Journal = {arXiv preprint arXiv:1512.04150}, + Year = {2015}, + + Month = dec, + + Url = {https://arxiv.org/abs/1512.04150} +} + +@Article{zhou2016places, + Title = {Places: {An} Image Database for Deep Scene Understanding}, + Author = {Zhou, Bolei and Khosla, Aditya and Lapedriza, Agata and Torralba, Antonio and Oliva, Aude}, + Journal = {arXiv preprint arXiv:1610.02055}, + Year = {2016}, + + Month = oct, + + Url = {https://arxiv.org/abs/1610.02055} +} + +@Article{zoph2016neural, + Title = {Neural architecture search with reinforcement learning}, + Author = {Zoph, Barret and Le, Quoc V}, + Journal = {arXiv preprint arXiv:1611.01578}, + Year = {2016}, + + Month = nov, + + Url = {https://arxiv.org/abs/1611.01578} +} + +@Misc{Asirra2017, + Title = {Kaggle Cats and Dogs Dataset}, + Month = oct, + Year = {2017}, + + Url = {https://www.microsoft.com/en-us/download/details.aspx?id=54765} +} + +@Misc{Lasagne-Dropout, + Title = {Noise layers}, + Month = jan, + Year = {2017}, + + Url = {http://lasagne.readthedocs.io/en/latest/modules/layers/noise.html#lasagne.layers.DropoutLayer} +} + +@Misc{tf-dropout, + Title = {tf.nn.dropout}, + Month = dec, + Year = {2016}, + + Url = {https://www.tensorflow.org/api_docs/python/nn/activation_functions_#dropout} +} + +@Misc{TF-MNIST-2016, + Title = {{MNIST} For {ML} Beginners}, + Month = dec, + Year = {2016}, + + Url = {https://www.tensorflow.org/tutorials/mnist/beginners/} +} + +@Misc{ImageNet-download, + Title = {ImageNet Large Scale Visual Recognition Challenge 2012 ({ILSVRC2012})}, + Year = {2012}, + + Url = {http://www.image-net.org/challenges/LSVRC/2012/nonpub-downloads} +} + +@Misc{newbob, + Title = {The training performed by qnstrn}, + Month = aug, + Year = {2000}, + + Url = {http://www1.icsi.berkeley.edu/Speech/faq/nn-train.html} +} + diff --git a/publications/activation-functions/cleveref.sty b/publications/activation-functions/cleveref.sty new file mode 100644 index 0000000..0522c48 --- /dev/null +++ b/publications/activation-functions/cleveref.sty @@ -0,0 +1,8427 @@ +%% +%% This is file `cleveref.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cleveref.dtx (with options: `package') +%% +%% LaTeX package for intelligent cross-referencing. +%% +%% Copyright (C) 2006--2013 Toby Cubitt +%% See the files README and COPYING. +%% +\def\packagedate{2013/12/28} +\def\packageversion{0.19} +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.2 +%% of this license or (at your option) any later version. +%% The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{cleveref} + [\packagedate\space v\packageversion\space Intelligent cross-referencing] +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\def\cref@currentlabel{}% +\let\cref@old@refstepcounter\refstepcounter% +\def\refstepcounter{% + \@ifnextchar[{\refstepcounter@optarg}{\refstepcounter@noarg}%] +}% +\def\refstepcounter@noarg#1{% + \cref@old@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}}% +\def\refstepcounter@optarg[#1]#2{% + \cref@old@refstepcounter{#2}% + \cref@constructprefix{#2}{\cref@result}% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#2}][\cref@result]% + \csname p@#2\endcsname\csname the#2\endcsname}}% +\AtBeginDocument{% + \let\cref@old@label\label% + \def\label{\@ifnextchar[\label@optarg\label@noarg}%] + \let\cref@label\label% + \def\label@noarg#1{% + \@bsphack% + \cref@old@label{#1}% + \protected@write\@auxout{}% + {\string\newlabel{#1@cref}{{\cref@currentlabel}{\thepage}}}% + \@esphack}% + \def\label@optarg[#1]#2{% + \@bsphack% + \cref@old@label{#2}% + \protected@edef\cref@currentlabel{% + \expandafter\cref@override@label@type% + \cref@currentlabel\@nil{#1}}% + \protected@write\@auxout{}% + {\string\newlabel{#2@cref}{{\cref@currentlabel}{\thepage}}}% + \@esphack}% +}% end of AtBeginDocument +\let\cref@old@makefntext\@makefntext% +\long\def\@makefntext{% + \cref@constructprefix{footnote}{\cref@result}% + \protected@edef\cref@currentlabel{% + [footnote][\arabic{footnote}][\cref@result]% + \p@footnote\@thefnmark}% + \cref@old@makefntext}% +\let\cref@old@othm\@othm% +\def\@othm#1[#2]#3{% + \edef\@tempa{\expandafter\noexpand% + \csname cref@#1@name@preamble\endcsname}% + \edef\@tempb{\expandafter\noexpand% + \csname Cref@#1@name@preamble\endcsname}% + \def\@tempc{#3}% + \ifx\@tempc\@empty\relax% + \expandafter\gdef\@tempa{}% + \expandafter\gdef\@tempb{}% + \else% + \if@cref@capitalise% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeUppercase #3}% + \else% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeLowercase #3}% + \fi% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempb\expandafter{\MakeUppercase #3}% + \fi% + \cref@stack@add{#1}{\cref@label@types}% + \cref@old@othm{#1}[#2]{#3}}% +\let\cref@old@xnthm\@xnthm% +\def\@xnthm#1#2[#3]{% + \edef\@tempa{\expandafter\noexpand% + \csname cref@#1@name@preamble\endcsname}% + \edef\@tempb{\expandafter\noexpand% + \csname Cref@#1@name@preamble\endcsname}% + \def\@tempc{#2}% + \ifx\@tempc\@empty\relax% + \expandafter\gdef\@tempa{}% + \expandafter\gdef\@tempb{}% + \else% + \if@cref@capitalise% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeUppercase #2}% + \else% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeLowercase #2}% + \fi% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempb\expandafter{\MakeUppercase #2}% + \fi% + \cref@stack@add{#1}{\cref@label@types}% + \cref@old@xnthm{#1}{#2}[#3]}% +\let\cref@old@ynthm\@ynthm% +\def\@ynthm#1#2{% + \edef\@tempa{\expandafter\noexpand% + \csname cref@#1@name@preamble\endcsname}% + \edef\@tempb{\expandafter\noexpand% + \csname Cref@#1@name@preamble\endcsname}% + \def\@tempc{#2}% + \ifx\@tempc\@empty\relax% + \expandafter\gdef\@tempa{}% + \expandafter\gdef\@tempb{}% + \else% + \if@cref@capitalise% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeUppercase #2}% + \else% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeLowercase #2}% + \fi% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempb\expandafter{\MakeUppercase #2}% + \fi% + \cref@stack@add{#1}{\cref@label@types}% + \cref@old@ynthm{#1}{#2}}% +\@ifundefined{appendix}{}{% + \g@addto@macro\appendix{% + \@ifundefined{chapter}{% + \gdef\refstepcounter@noarg#1{% + \cref@old@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \ifx\cref@result\@empty% + \def\cref@result{2147483647}% + \else% + \edef\cref@result{2147483647,\cref@result}% + \fi% + \def\@tempa{#1}% + \def\@tempb{section}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [appendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsubsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subsubappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \fi% + \fi% + \fi}% + }{% + \def\refstepcounter@noarg#1{% + \cref@old@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \ifx\cref@result\@empty% + \def\cref@result{2147483647}% + \else% + \edef\cref@result{2147483647,\cref@result}% + \fi% + \def\@tempa{#1}% + \def\@tempb{chapter}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [appendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{section}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subsubappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsubsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subsubsubappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \fi% + \fi% + \fi% + \fi}% + }% + }% +}% end of \@ifundefined{appendix} +\def\@gobble@optarg{\@ifnextchar[\@@gobble@optarg\@gobble@orig}%] +\def\@gobble@orig#1{}% +\def\@@gobble@optarg[#1]#2{}% +\def\cref@append@toks#1#2{\toks0={#2}% + \edef\act{\noexpand#1={\the#1\the\toks0}}% + \act}% +\def\cref@getref#1#2{% + \expandafter\let\expandafter#2\csname r@#1@cref\endcsname% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter#2% + \expandafter\expandafter\expandafter{% + \expandafter\@firstoftwo#2}}% +\def\cref@getpageref#1#2{% + \expandafter\let\expandafter#2\csname r@#1@cref\endcsname% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter#2% + \expandafter\expandafter\expandafter{% + \expandafter\@secondoftwo#2}}% +\def\cref@getlabel#1#2{% + \cref@getref{#1}{\@tempa}% + \expandafter\@cref@getlabel\@tempa\@nil#2}% +\def\@cref@getlabel{\@ifnextchar[%] + \@@cref@getlabel{\@@cref@getlabel[][][]}}% +\def\@@cref@getlabel[#1][#2][#3]#4\@nil#5{\def#5{#4}}% +\def\cref@gettype#1#2{% + \cref@getref{#1}{\@tempa}% + \expandafter\@cref@gettype\@tempa\@nil#2}% +\def\@cref@gettype{\@ifnextchar[%] + \@@cref@gettype{\@@cref@gettype[][][]}}% +\def\@@cref@gettype[#1][#2][#3]#4\@nil#5{\def#5{#1}}% +\def\cref@getcounter#1#2{% + \cref@getref{#1}{\@tempa}% + \expandafter\@cref@getcounter\@tempa\@nil#2}% +\def\@cref@getcounter{\@ifnextchar[%] + \@@cref@getcounter{\@@cref@getcounter[][][]}}% +\def\@@cref@getcounter[#1][#2][#3]#4\@nil#5{\def#5{#2}}% +\def\cref@getprefix#1#2{% + \cref@getref{#1}{\@tempa}% + \expandafter\@cref@getprefix\@tempa\@nil#2}% +\def\@cref@getprefix{\@ifnextchar[%] + \@@cref@getprefix{\@@cref@getprefix[][][]}}% +\def\@@cref@getprefix[#1][#2][#3]#4\@nil#5{\def#5{#3}}% +\def\cref@override@label@type[#1][#2][#3]#4\@nil#5{[#5][#2][#3]#4}% +\def\cref@constructprefix#1#2{% + \cref@stack@init{\@tempstack}% + \edef\@tempa{\noexpand{#1\noexpand}}% + \expandafter\def\expandafter\@tempa\expandafter{\@tempa{#2}}% + \expandafter\@cref@constructprefix\@tempa% + \cref@stack@to@list{\@tempstack}{\@tempa}% + \expandafter\def\expandafter#2\expandafter{\@tempa}}% +\def\@cref@constructprefix#1#2{% + \cref@resetby{#1}{#2}% + \ifx#2\relax% + \else% + \edef\@tempa{\the\csname c@#2\endcsname}% + \expandafter\cref@stack@push\expandafter{\@tempa}{\@tempstack}% + \edef\@tempa{{#2}}% + \expandafter\expandafter\expandafter\@cref@constructprefix% + \expandafter\@tempa\expandafter{\expandafter#2\expandafter}% + \fi}% +\def\cref@stack@init#1{\def#1{\@nil}}% +\def\cref@stack@top#1{\expandafter\@cref@stack@top#1}% +\def\@cref@stack@top#1,#2\@nil{#1}% +\def\cref@stack@pop#1{\expandafter\@cref@stack@pop#1#1}% +\def\@cref@stack@pop#1,#2\@nil#3{\def#3{#2\@nil}}% +\def\cref@stack@push#1#2{% + \expandafter\@cref@stack@push\expandafter{#2}{#1}{#2}}% +\def\@cref@stack@push#1#2#3{\def#3{#2,#1}}% +\def\cref@stack@pull#1#2{\expandafter\@cref@stack@pull#2{#1}{#2}}% +\def\@cref@stack@pull#1\@nil#2#3{\def#3{#1#2,\@nil}}% +\def\cref@stack@to@list#1#2{% + \cref@isstackfull{#1}% + \if@cref@stackfull% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter#2% + \expandafter\expandafter\expandafter{% + \expandafter\@cref@stack@to@list#1}% + \else% + \def#2{}% + \fi}% +\def\@cref@stack@to@list#1,\@nil{#1}% +\def\cref@stack@topandbottom#1#2#3{% + \def#2{}% + \def#3{}% + \cref@isstackfull{#1}% + \if@cref@stackfull% + \edef#2{\cref@stack@top{#1}}% + \cref@stack@pop{#1}% + \cref@isstackfull{#1}% + \@whilesw\if@cref@stackfull\fi{% + \edef#3{\cref@stack@top{#1}}% + \cref@stack@pop{#1}% + \cref@isstackfull{#1}}% + \fi}% +\def\cref@stack@add#1#2{% + \begingroup% + \def\@arg1{#1}% + \let\@tempstack#2% + \newif\if@notthere% + \@nottheretrue% + \cref@isstackfull{\@tempstack}% + \@whilesw\if@cref@stackfull\fi{% + \edef\@tempb{\cref@stack@top{\@tempstack}}% + \def\@tempa{#1}% + \ifx\@tempa\@tempb% + \@cref@stackfullfalse% + \@nottherefalse% + \else% + \cref@stack@pop{\@tempstack}% + \cref@isstackfull{\@tempstack}% + \fi}% + \expandafter\endgroup% + \if@notthere\cref@stack@push{#1}{#2}\fi}% +\newif\if@cref@stackempty% +\newif\if@cref@stackfull% +\def\cref@isstackempty#1{% + \def\@tempa{\@nil}% + \ifx#1\@tempa\@cref@stackemptytrue% + \else\@cref@stackemptyfalse\fi}% +\def\cref@isstackfull#1{% + \def\@tempa{\@nil}% + \ifx#1\@tempa\@cref@stackfullfalse% + \else\@cref@stackfulltrue\fi}% +\def\cref@stack@sort#1#2{% + \begingroup% + \cref@stack@init{\@sortstack}% + \edef\@element{\cref@stack@top{#1}}% + \expandafter\cref@stack@push\expandafter{\@element}{\@sortstack}% + \cref@stack@pop{#1}% + \cref@isstackfull{#1}% + \if@cref@stackfull% + \edef\@tempa{\cref@stack@top{#1}}% + \@whilesw\ifx\@tempa\@empty\fi{% + \cref@stack@pull{}{\@sortstack}% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \let\@tempa\relax% + \else% + \edef\@tempa{\cref@stack@top{#1}}% + \fi}% + \fi% + \cref@isstackfull{#1}% + \@whilesw\if@cref@stackfull\fi{% + \edef\@element{\cref@stack@top{#1}}% + \cref@stack@pop{#1}% + \def\@empties{}% + \cref@isstackfull{#1}% + \if@cref@stackfull% + \edef\@tempa{\cref@stack@top{#1}}% + \@whilesw\ifx\@tempa\@empty\fi{% + \edef\@empties{\@empties,}% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \let\@tempa\relax% + \else% + \edef\@tempa{\cref@stack@top{#1}}% + \fi}% + \fi% + \edef\@tempa{{\expandafter\noexpand\@element}% + {\expandafter\noexpand\@empties}% + {\noexpand\@sortstack}{\noexpand#2}}% + \expandafter\cref@stack@insert\@tempa% + \cref@isstackfull{#1}}% + \expandafter\endgroup\expandafter% + \def\expandafter#1\expandafter{\@sortstack}}% +\def\cref@stack@insert#1#2#3#4{% + \let\@cmp#4% + \@cref@stack@insert{}{#1}{#2}{#3}% + \cref@stack@pop{#3}}% +\def\@cref@stack@insert#1#2#3#4{% + \let\cref@iterate\relax% + \cref@isstackempty{#4}% + \if@cref@stackempty% + \cref@stack@push{#1,#2#3}{#4}% + \else% + \edef\cref@elem{\cref@stack@top{#4}}% + \expandafter\@cmp\expandafter{\cref@elem}{#2}{\cref@result}% + \ifnum\cref@result=2\relax% + \cref@stack@push{#1,#2#3}{#4}% + \else% + \cref@stack@pop{#4}% + \edef\cref@elem{{\noexpand#1,\cref@elem}{\noexpand#2}% + {\noexpand#3}{\noexpand#4}}% + \expandafter\def\expandafter\cref@iterate\expandafter% + {\expandafter\@cref@stack@insert\cref@elem}% + \fi% + \fi% + \cref@iterate}% +\def\cref@counter@first#1#2\@nil{#1}% +\def\cref@counter@rest#1#2\@nil{#2}% +\def\cref@countercmp#1#2#3{% + \begingroup% + \def\@tempa{#1}% + \ifx\@tempa\@empty% + \def\cref@result{1}% + \else% + \def\@tempa{#2}% + \ifx\@tempa\@empty% + \def\cref@result{2}% + \else% + \expandafter\ifx\csname r@#1@cref\endcsname\relax% + \def\cref@result{2}% + \else% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \def\cref@result{1}% + \else% + \cref@getcounter{#1}{\@countera}% + \cref@getprefix{#1}{\@prefixa}% + \cref@getcounter{#2}{\@counterb}% + \cref@getprefix{#2}{\@prefixb}% + \cref@stack@init{\@countstacka}% + \expandafter\cref@stack@push\expandafter% + {\@countera}{\@countstacka}% + \ifx\@prefixa\@empty\else% + \expandafter\cref@stack@push\expandafter% + {\@prefixa}{\@countstacka}% + \fi% + \cref@stack@init{\@countstackb}% + \expandafter\cref@stack@push\expandafter% + {\@counterb}{\@countstackb}% + \ifx\@prefixb\@empty\else% + \expandafter\cref@stack@push\expandafter% + {\@prefixb}{\@countstackb}% + \fi% + \@cref@countercmp% + \fi% + \fi% + \fi% + \fi% + \expandafter\endgroup\expandafter% + \chardef\expandafter#3\expandafter=\cref@result\relax}% +\def\@cref@countercmp{% + \let\@iterate\relax% + \cref@isstackempty{\@countstacka}% + \if@cref@stackempty% + \cref@isstackempty{\@countstackb}% + \if@cref@stackempty% + \def\cref@result{0}% + \else% + \def\cref@result{1}% + \fi% + \else% + \cref@isstackempty{\@countstackb}% + \if@cref@stackempty% + \def\cref@result{2}% + \else% + \edef\@tempa{\cref@stack@top{\@countstacka}}% + \cref@stack@pop{\@countstacka}% + \edef\@tempb{\cref@stack@top{\@countstackb}}% + \cref@stack@pop{\@countstackb}% + \ifnum\@tempa<\@tempb\relax% + \def\cref@result{1}% + \else% + \ifnum\@tempa>\@tempb\relax% + \def\cref@result{2}% + \else% + \def\@iterate{\@cref@countercmp}% + \fi% + \fi% + \fi% + \fi% + \@iterate}% +\def\cref@pagecmp#1#2#3{% + \begingroup% + \def\@tempa{#1}% + \ifx\@tempa\@empty% + \def\cref@result{1}% + \else% + \def\@tempa{#2}% + \ifx\@tempa\@empty% + \def\cref@result{2}% + \else% + \expandafter\ifx\csname r@#1@cref\endcsname\relax% + \def\cref@result{2}% + \else% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \def\cref@result{1}% + \else% + \cref@getpageref{#1}{\@tempa}% + \cref@getpageref{#2}{\@tempb}% + \ifnum\@tempa<\@tempb\relax% + \def\cref@result{1}\relax% + \else% + \ifnum\@tempa>\@tempb\relax% + \def\cref@result{2}\relax% + \else% + \def\cref@result{0}\relax% + \fi% + \fi% + \fi% + \fi% + \fi% + \fi% + \expandafter\endgroup\expandafter% + \chardef\expandafter#3\expandafter=\cref@result\relax}% +\newif\if@cref@inresetlist% +\def\cref@isinresetlist#1#2{% + \begingroup% + \def\@counter{#1}% + \def\@elt##1{##1,}% + \expandafter\ifx\csname cl@#2\endcsname\relax% + \def\cref@resetstack{,\@nil}% + \else% + \edef\cref@resetstack{\csname cl@#2\endcsname\noexpand\@nil}% + \fi% + \let\@nextcounter\relax% + \cref@isstackfull{\cref@resetstack}% + \@whilesw\if@cref@stackfull\fi{% + \edef\@nextcounter{\cref@stack@top{\cref@resetstack}}% + \ifx\@nextcounter\@counter% + \@cref@stackfullfalse% + \else% + \let\@nextcounter\relax% + \cref@stack@pop{\cref@resetstack}% + \cref@isstackfull{\cref@resetstack}% + \fi}% + \ifx\@nextcounter\relax% + \def\@next{\@cref@inresetlistfalse}% + \else% + \def\@next{\@cref@inresetlisttrue}% + \fi% + \expandafter% + \endgroup% + \@next}% +\def\cref@resetby#1#2{% + \let#2\relax% + \def\@tempa{#1}% + \def\@tempb{subfigure}% + \ifx\@tempa\@tempb% + \cref@isinresetlist{#1}{figure}% + \if@cref@inresetlist% + \def#2{figure}% + \fi% + \fi% + \def\@tempa{#1}% + \def\@tempb{subtable}% + \ifx\@tempa\@tempb% + \cref@isinresetlist{#1}{table}% + \if@cref@inresetlist% + \def#2{table}% + \fi% + \fi% + \@ifundefined{cl@parentequation}{}{% + \def\@tempa{#1}% + \def\@tempb{equation}% + \ifx\@tempa\@tempb% + \cref@isinresetlist{#1}{parentequation}% + \if@cref@inresetlist% + \expandafter\ifnum\c@parentequation=0\else% + \def#2{parentequation}% + \fi% + \fi% + \fi}% + \def\@tempa{#1}% + \def\@tempb{enumii}% + \ifx\@tempa\@tempb% + \def#2{enum}% + \fi% + \def\@tempb{enumiii}% + \ifx\@tempa\@tempb% + \def#2{enum}% + \fi% + \def\@tempb{enumiv}% + \ifx\@tempa\@tempb% + \def#2{enum}% + \fi% + \def\@tempb{enumv}% + \ifx\@tempa\@tempb% + \def#2{enum}% + \fi% + \def\@tempb{enum}% + \ifx#2\@tempb% + \cref@isinresetlist{#1}{enumiv}% + \if@cref@inresetlist% + \def#2{enumiv}% + \else% + \cref@isinresetlist{#1}{enumiii}% + \if@cref@inresetlist% + \def#2{enumiii}% + \else% + \cref@isinresetlist{#1}{enumii}% + \if@cref@inresetlist% + \def#2{enumii}% + \else% + \cref@isinresetlist{#1}{enumi}% + \if@cref@inresetlist% + \def#2{enumi}% + \else% + \cref@isinresetlist{#1}{part}% + \if@cref@inresetlist% + \def#2{part}% + \else% + \let#2\relax% + \fi% + \fi% + \fi% + \fi% + \fi% + \fi% + \ifx#2\relax% + \cref@isinresetlist{#1}{table}% + \if@cref@inresetlist% + \def#2{table}% + \else% + \cref@isinresetlist{#1}{subsubsection}% + \if@cref@inresetlist% + \def#2{subsubsection}% + \else% + \cref@isinresetlist{#1}{subsection}% + \if@cref@inresetlist% + \def#2{subsection}% + \else% + \cref@isinresetlist{#1}{section}% + \if@cref@inresetlist% + \def#2{section}% + \else% + \cref@isinresetlist{#1}{chapter}% + \if@cref@inresetlist% + \def#2{chapter}% + \else% + \cref@isinresetlist{#1}{part}% + \if@cref@inresetlist% + \def#2{part}% + \else% + \let#2\relax% + \fi% + \fi% + \fi% + \fi% + \fi% + \fi% + \fi}% +\newif\if@cref@refconsecutive% +\def\cref@isrefconsecutive#1#2{% + \begingroup% + \countdef\refa@counter=0% + \countdef\refb@counter=1% + \cref@getcounter{#1}{\cref@result}% + \refa@counter=\cref@result% + \cref@getcounter{#2}{\cref@result}% + \refb@counter=\cref@result% + \cref@getprefix{#1}{\refa@prefix}% + \cref@getprefix{#2}{\refb@prefix}% + \def\@after{\@cref@refconsecutivefalse}% + \ifx\refa@prefix\refb@prefix% + \ifnum\refa@counter=\refb@counter\relax% + \def\@after{\@cref@refconsecutivetrue}% + \else% + \advance\refa@counter 1\relax% + \ifnum\refa@counter=\refb@counter\relax% + \def\@after{\@cref@refconsecutivetrue}% + \fi% + \fi% + \fi% + \expandafter\endgroup\@after}% +\def\cref@ispagerefconsecutive#1#2{% + \begingroup% + \countdef\refa@counter=0% + \countdef\refb@counter=1% + \cref@getpageref{#1}{\cref@result}% + \refa@counter=\cref@result% + \cref@getpageref{#2}{\cref@result}% + \refb@counter=\cref@result% + \def\@after{\@cref@refconsecutivefalse}% + \ifnum\refa@counter=\refb@counter\relax% + \def\@after{\@cref@refconsecutivetrue}% + \else% + \advance\refa@counter 1\relax% + \ifnum\refa@counter=\refb@counter\relax% + \def\@after{\@cref@refconsecutivetrue}% + \fi% + \fi% + \expandafter\endgroup\@after}% +\def\cref@processgroup#1#2{% + \edef\@nextref{\cref@stack@top{#1}}% + \expandafter\ifx\csname r@\@nextref @cref\endcsname\relax% + \def\@grouptype{\@undefined}% + \def\@groupformat{\@undefined}% + \else% + \expandafter\cref@gettype\expandafter{\@nextref}{\@grouptype}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@groupformat% + \expandafter\expandafter\expandafter{% + \csname cref@\@grouptype @format\endcsname% + {\@dummya}{\@dummyb}{\@dummyc}}% + \fi% + \let\@nexttype\@grouptype% + \let\@nextformat\@groupformat% + \@whilesw\ifx\@nextformat\@groupformat\fi{% + \expandafter\cref@stack@pull\expandafter{\@nextref}{#2}% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \let\@nexttype\relax% + \let\@nextformat\relax% + \else% + \edef\@nextref{\cref@stack@top{#1}}% + \ifx\@nextref\@empty% + \let\@nexttype\@grouptype% + \let\@nextforamt\@groupformat% + \else% + \expandafter\ifx\csname r@\@nextref @cref\endcsname\relax% + \def\@nexttype{\@undefined}% + \def\@nextformat{\@undefined}% + \else% + \expandafter\cref@gettype\expandafter% + {\@nextref}{\@nexttype}% + \def\@tempa{\@undefined}% + \ifx\@nexttype\@tempa% + \def\@nextformat{\@undefined}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@nextformat% + \expandafter\expandafter\expandafter{% + \csname cref@\@nexttype @format\endcsname% + {\@dummya}{\@dummyb}{\@dummyc}}% + \fi% + \fi% + \fi% + \fi}% +}% +\def\cref@processgroupall#1#2{% + \cref@stack@init{\@tempstack}% + \edef\@nextref{\cref@stack@top{#1}}% + \expandafter\ifx\csname r@\@nextref @cref\endcsname\relax% + \def\@grouptype{\@undefined}% + \def\@groupformat{\@undefined}% + \else% + \expandafter\cref@gettype\expandafter{\@nextref}{\@grouptype}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@groupformat% + \expandafter\expandafter\expandafter{% + \csname cref@\@grouptype @format\endcsname% + {\@dummya}{\@dummyb}{\@dummyc}}% + \fi% + \let\@lasttype\@grouptype% + \let\@lastformat\@groupformat% + \cref@isstackfull{#1}% + \@whilesw\if@cref@stackfull\fi{% + \edef\@nextref{\cref@stack@top{#1}}% + \ifx\@nextref\@empty% + \ifx\@lastformat\@groupformat% + \let\@nexttype\@grouptype% + \let\@nextformat\@groupformat% + \else% + \let\@nexttype\relax% + \let\@nextformat\relax% + \fi% + \else% + \expandafter\ifx\csname r@\@nextref @cref\endcsname\relax% + \def\@nexttype{\@undefined}% + \def\@nextformat{\@undefined}% + \else% + \expandafter\cref@gettype\expandafter% + {\@nextref}{\@nexttype}% + \def\@tempa{\@undefined}% + \ifx\@nexttype\@tempa% + \def\@nextformat{\@undefined}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@nextformat% + \expandafter\expandafter\expandafter{% + \csname cref@\@nexttype @format\endcsname% + {\@dummya}{\@dummyb}{\@dummyc}}% + \fi% + \fi% + \fi% + \ifx\@nextformat\@groupformat% + \expandafter\cref@stack@pull\expandafter{\@nextref}{#2}% + \else% + \expandafter\cref@stack@pull\expandafter{\@nextref}{\@tempstack}% + \fi% + \cref@stack@pop{#1}% + \let\@lasttype\@nexttype% + \let\@lastformat\@nextformat% + \cref@isstackfull{#1}}% + \let#1\@tempstack}% +\def\cref@processconsecutive#1#2#3#4#5{% + #4=0% + \edef\@nextref{\cref@stack@top{#1}}% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \edef#2{\@nextref}% + \let#3\relax% + #4=1\relax% + \else% + \edef#2{\@nextref}% + \let#3\relax% + \edef\@nextref{\cref@stack@top{#1}}% + #4=1\relax% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \@cref@refconsecutivefalse% + \else% + \ifx\@nextref\@empty% + \@cref@refconsecutivefalse% + \@whilesw\ifx\@nextref\@empty\fi{% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \let\@nextref\relax% + \else% + \edef\@nextref{\cref@stack@top{#1}}% + \fi}% + \else% + \expandafter\ifx\csname r@\@nextref @cref\endcsname\relax% + \@cref@refconsecutivefalse% + \else% + \edef\@tempa{{#2}{\@nextref}}% + \expandafter#5\@tempa% + \fi% + \fi% + \fi% + \@whilesw\if@cref@refconsecutive\fi{% + \advance#4 1% + \let#3\@nextref% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \@cref@refconsecutivefalse% + \else% + \edef\@nextref{\cref@stack@top{#1}}% + \ifx\@nextref\@empty% + \@cref@refconsecutivefalse% + \@whilesw\ifx\@nextref\@empty\fi{% + \cref@stack@pop{#1}% + \cref@isstackempty{#1}% + \if@cref@stackempty% + \let\@nextref\relax% + \else% + \edef\@nextref{\cref@stack@top{#1}}% + \fi}% + \else% + \expandafter\ifx\csname r@\@nextref @cref\endcsname\relax% + \@cref@refconsecutivefalse% + \else% + \edef\@tempa{{#3}{\@nextref}}% + \expandafter#5\@tempa% + \fi% + \fi% + \fi}% + \fi}% +\newcommand\crefstripprefix[2]{% + \begingroup% + \edef\@toksa{#1}% + \edef\@toksb{#2}% + \let\cref@acc\@empty% + \@crefstripprefix% + \cref@result% + \endgroup} +\def\@crefstripprefix{% + \let\@iterate\relax% + \def\accum@flag{0}% + \let\@tempc\@tempb% + \cref@poptok{\@toksa}{\@tempa}% + \cref@poptok{\@toksb}{\@tempb}% + \ifx\@tempa\@tempb\relax% + \def\@iterate{\@crefstripprefix}% + \ifx\cref@acc\@empty\relax% + \let\cref@acc\@tempb% + \else% + \ifcat\@tempb\@tempc\relax% + \ifcat\@tempb a\relax% + \def\accum@flag{1}% + \else% + \expandafter\chardef\expandafter\@tempa% + \expandafter=\expandafter`\@tempb\relax% + \ifnum\@tempa>`/\relax% + \expandafter\ifnum\@tempb<`:\relax% + \def\accum@flag{1}% + \fi% + \fi% + \fi% + \fi% + \def\@tempa{1}% + \ifx\accum@flag\@tempa% + \edef\cref@acc{\cref@acc\@tempb}% + \else% + \let\cref@acc\@empty% + \fi% + \fi% + \else% + \ifcat\@tempb\@tempc\relax\else% + \let\cref@acc\@empty% + \fi% + \edef\cref@result{\cref@acc\@tempb\@toksb}% + \fi% + \@iterate} +\def\cref@poptok#1#2{% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter#2% + \expandafter\expandafter\expandafter{% + \expandafter\@cref@firsttok#1\@nil}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter#1% + \expandafter\expandafter\expandafter{% + \expandafter\@cref@poptok#1\@nil}} +\def\@cref@firsttok#1#2\@nil{#1} +\def\@cref@poptok#1#2\@nil{#2} +\DeclareRobustCommand{\cref}[1]{\@cref{cref}{#1}}% +\DeclareRobustCommand{\Cref}[1]{\@cref{Cref}{#1}}% +\DeclareRobustCommand{\crefrange}[2]{\@setcrefrange{#1}{#2}{cref}{}}% +\DeclareRobustCommand{\Crefrange}[2]{\@setcrefrange{#1}{#2}{Cref}{}}% +\@ifpackageloaded{hyperref}{\newif\if@crefstarred}{% + \@ifpackageloaded{varioref}{\newif\if@crefstarred}{}}% +\let\if@crefstarred\iffalse% +\def\@cref#1#2{% + \leavevmode% + \begingroup% + \countdef\count@consecutive=0% + \countdef\count@group=1% + \count@group=1% + \def\cref@variant{#1}% + \newif\if@secondref% + \cref@stack@init{\@refstack}% + \edef\@tempa{#2}% + \expandafter\cref@stack@push\expandafter{\@tempa}{\@refstack}% + \cref@isstackfull{\@refstack}% + \@whilesw\if@cref@stackfull\fi{% + \cref@stack@init{\@refsubstack}% + \if@cref@sort% + \cref@processgroupall{\@refstack}{\@refsubstack}% + \cref@stack@sort{\@refsubstack}{\cref@countercmp}% + \else% + \cref@processgroup{\@refstack}{\@refsubstack}% + \fi% + \ifnum\count@group=1\relax% + \advance\count@group 1% + \else% + \cref@isstackfull{\@refstack}% + \if@cref@stackfull% + \@setcref@middlegroupconjunction% + \else% + \ifnum\count@group=2\relax% + \@setcref@pairgroupconjunction% + \else% + \@setcref@lastgroupconjunction% + \fi% + \fi% + \advance\count@group 1% + \def\cref@variant{cref}% + \fi% + \if@cref@compress% + \cref@processconsecutive% + {\@refsubstack}{\@beginref}{\@endref}{\count@consecutive}% + {\cref@isrefconsecutive}% + \else% + \edef\@beginref{\cref@stack@top{\@refsubstack}}% + \cref@stack@pop{\@refsubstack}% + \@whilesw\ifx\@beginref\@empty\fi{% + \cref@stack@pop{\@refsubstack}% + \cref@isstackempty{\@refsubstack}% + \if@cref@stackempty% + \let\@beginref\relax% + \else% + \edef\@beginref{\cref@stack@top{\@refsubstack}}% + \fi}% + \let\@endref\relax% + \count@consecutive=1\relax% + \fi% + \ifnum\count@consecutive=1\relax% + \cref@isstackfull{\@refsubstack}% + \if@cref@stackfull% + \expandafter\@setcref% + \expandafter{\@beginref}{\cref@variant}{@first}% + \else% + \expandafter\@setcref% + \expandafter{\@beginref}{\cref@variant}{}% + \fi% + \else% + \ifnum\count@consecutive=2\relax% + \expandafter\@setcref% + \expandafter{\@beginref}{\cref@variant}{@first}% + \expandafter\cref@stack@push\expandafter% + {\@endref,}{\@refsubstack}% + \else% + \edef\@tempa{{\@beginref}{\@endref}}% + \if@cref@stackempty% + \expandafter\@setcrefrange\@tempa{\cref@variant}{}% + \else% + \expandafter\@setcrefrange\@tempa{\cref@variant}{@first}% + \fi% + \fi% + \fi% + \@secondreftrue% + \cref@isstackfull{\@refsubstack}% + \@whilesw\if@cref@stackfull\fi{% + \if@cref@compress% + \cref@processconsecutive% + {\@refsubstack}{\@beginref}{\@endref}{\count@consecutive}% + {\cref@isrefconsecutive}% + \else% + \edef\@beginref{\cref@stack@top{\@refsubstack}}% + \cref@stack@pop{\@refsubstack}% + \@whilesw\ifx\@beginref\@empty\fi{% + \cref@stack@pop{\@refsubstack}% + \cref@isstackempty{\@refsubstack}% + \if@cref@stackempty% + \let\@beginref\relax% + \else% + \edef\@beginref{\cref@stack@top{\@refsubstack}}% + \fi}% + \let\@endref\relax% + \count@consecutive=1\relax% + \fi% + \cref@isstackempty{\@refsubstack}% + \if@cref@stackempty% + \if@secondref% + \def\@pos{@second}% + \else% + \def\@pos{@last}% + \fi% + \else% + \def\@pos{@middle}% + \fi% + \ifnum\count@consecutive=1\relax% + \edef\@tempa{{\@beginref}{cref}{\@pos}}% + \expandafter\@setcref\@tempa% + \else% + \ifnum\count@consecutive=2\relax% + \expandafter\@setcref\expandafter% + {\@beginref}{cref}{@middle}% + \expandafter\cref@stack@push\expandafter% + {\@endref}{\@refsubstack}% + \else% + \edef\@tempa{{\@beginref}{\@endref}{cref}{\@pos}}% + \expandafter\@setcrefrange\@tempa% + \fi% + \fi% + \@secondreffalse% + \cref@isstackfull{\@refsubstack}% + }% end loop over reference substack + \cref@isstackfull{\@refstack}% + \if@cref@stackfull% + \def\@tempa{#1}\def\@tempb{labelcref}% + \ifx\@tempa\@tempb\relax% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries\space ??}% + \@latex@warning{References in label reference on page \thepage + \space have different types}% + \@cref@stackfullfalse% + \fi% + \fi% + }% end loop over main reference stack + \endgroup}% +\def\@setcref#1#2#3{% + \expandafter\ifx\csname r@#1@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#1' on page \thepage \space undefined}% + \else% + \cref@gettype{#1}{\@temptype}% puts label type in \@temptype + \cref@getlabel{#1}{\@templabel}% puts label in \@templabel + \expandafter\ifx\csname #2@\@temptype @format#3\endcsname\relax% + \edef\@tempa{#2}\def\@tempb{labelcref}% + \ifx\@tempa\@tempb\relax% + \expandafter\@@setcref\expandafter% + {\csname #2@default@format#3\endcsname}{#1}% + \else% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}~\@templabel% + \@latex@warning{#2 \space reference format for label type + `\@temptype' undefined}% + \fi% + \else% + \expandafter\@@setcref\expandafter% + {\csname #2@\@temptype @format#3\endcsname}{#1}% + \fi% + \fi}% +\def\@@setcref#1#2{\cref@getlabel{#2}{\@templabel}#1{\@templabel}{}{}}% +\def\@setcrefrange#1#2#3#4{% + \begingroup% + \expandafter\ifx\csname r@#1@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \@latex@warning{Reference `#1' on page \thepage \space% + undefined}% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \nfss@text{\reset@font\bfseries ??}--% + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#2' on page \thepage \space% + undefined}% + \else% + \cref@getlabel{#2}{\@labelb}% + \nfss@text{\reset@font\bfseries ??}--\@labelb% + \fi% + \else% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \cref@getlabel{#1}{\@labela}% + \@labela--\nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#2' on page \thepage % + \space undefined}% + \else% + \cref@gettype{#1}{\@typea}% + \cref@gettype{#2}{\@typeb}% + \cref@getlabel{#1}{\@labela}% + \cref@getlabel{#2}{\@labelb}% + \edef\@formata{\expandafter\noexpand% + \csname #3range@\@typea @format#4\endcsname}% + \edef\@formatb{\expandafter\noexpand% + \csname #3range@\@typeb @format#4\endcsname}% + \expandafter\ifx\@formata\relax% + \edef\@tempa{#3}\def\@tempb{labelcref}% + \ifx\@tempa\@tempb\relax% + \expandafter\@@setcrefrange\expandafter% + {\csname #3range@default@format#4\endcsname}{#1}{#2}% + \else% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}~\@labela--\@labelb% + \@latex@warning{#3\space reference range format for label + type `\@typea' undefined}% + \fi% + \else% + \ifx\@formata\@formatb% + \expandafter\@@setcrefrange\expandafter{\@formata}{#1}{#2}% + \else% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}~\@labela--\@labelb% + \@latex@warning{References `#1' and `#2' in reference range + on page \thepage \space have different types + `\@typea' and `\@typeb'}% + \fi% + \fi% + \fi% + \fi% + \endgroup}% +\def\@@setcrefrange#1#2#3{% + \cref@getlabel{#2}{\@labela}% + \cref@getlabel{#3}{\@labelb}% + #1{\@labela}{\@labelb}{}{}{}{}}% +\def\@setcref@pairgroupconjunction{\crefpairgroupconjunction}% +\def\@setcref@middlegroupconjunction{\crefmiddlegroupconjunction}% +\def\@setcref@lastgroupconjunction{\creflastgroupconjunction}% +\DeclareRobustCommand{\labelcref}[1]{\@cref{labelcref}{#1}}% +\DeclareRobustCommand{\namecref}[1]{% + \@setnamecref{cref}{#1}{}{}}% +\DeclareRobustCommand{\nameCref}[1]{% + \@setnamecref{Cref}{#1}{}{}}% +\DeclareRobustCommand{\lcnamecref}[1]{% + \@setnamecref{Cref}{#1}{}{\MakeLowercase}}% +\DeclareRobustCommand{\namecrefs}[1]{% + \@setnamecref{cref}{#1}{@plural}{}}% +\DeclareRobustCommand{\nameCrefs}[1]{% + \@setnamecref{Cref}{#1}{@plural}{}}% +\DeclareRobustCommand{\lcnamecrefs}[1]{% + \@setnamecref{Cref}{#1}{@plural}{\MakeLowercase}}% +\def\@setnamecref#1#2#3#4{% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#1' on page \thepage \space undefined}% + \else% + \cref@gettype{#2}{\@tempa}% + \@ifundefined{#1@\@tempa @name#3}{% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference name forlabel type `\@tempa' undefined}% + }{% + \edef\@tempa{% + \expandafter\noexpand\csname #1@\@tempa @name#3\endcsname}% + \expandafter\@@setnamecref\expandafter{\@tempa}{#4}% + }% + \fi}% +\def\@@setnamecref#1#2{% + \expandafter\def\expandafter\@tempa\expandafter{#1}% + \expandafter#2\@tempa}% +\DeclareRobustCommand{\cpageref}[1]{% + \@cpageref{cref}{#1}{\@setcpageref}{\@setcpagerefrange}}% +\DeclareRobustCommand{\Cpageref}[1]{% + \@cpageref{Cref}{#1}{\@setcpageref}{\@setcpagerefrange}}% +\DeclareRobustCommand{\cpagerefrange}[2]{% + \@setcpagerefrange{#1}{#2}{cref}{}}% +\DeclareRobustCommand{\Cpagerefrange}[2]{% + \@setcpagerefrange{#1}{#2}{Cref}{}}% +\DeclareRobustCommand{\labelcpageref}[1]{% + \@cpageref{labelcref}{#1}{\@setcpageref}{\@setcpagerefrange}}% +\def\@cpageref#1#2#3#4{% + \leavevmode% + \begingroup% + \countdef\count@consecutive=0% + \countdef\count@group=1% + \countdef\@counta=2% + \countdef\@countb=3% + \count@group=0% + \cref@stack@init{\@refstack}% + \edef\@tempa{#2}% + \expandafter\cref@stack@push\expandafter{\@tempa}{\@refstack}% + \if@cref@sort% + \cref@stack@sort{\@refstack}{\cref@pagecmp}% + \fi% + \cref@isstackfull{\@refstack}% + \@whilesw\if@cref@stackfull\fi{% + \if@cref@compress% + \cref@processconsecutive% + {\@refstack}{\@beginref}{\@endref}{\count@consecutive}% + {\cref@ispagerefconsecutive}% + \else% + \edef\@beginref{\cref@stack@top{\@refstack}}% + \cref@stack@pop{\@refstack}% + \@whilesw\ifx\@beginref\@empty\fi{% + \cref@stack@pop{\@refstack}% + \cref@isstackempty{\@refstack}% + \if@cref@stackempty% + \let\@beginref\relax% + \else% + \edef\@beginref{\cref@stack@top{\@refstack}}% + \fi}% + \let\@endref\relax% + \count@consecutive=1\relax% + \fi% + \ifx\@endref\relax\else% + \expandafter\ifx\csname r@\@beginref @cref\endcsname\relax\else% + \expandafter\ifx\csname r@\@endref @cref\endcsname\relax\else% + \cref@getpageref{\@beginref}{\@tempa}% + \cref@getpageref{\@endref}{\@tempb}% + \ifx\@tempa\@tempb\relax% + \count@consecutive=1% + \let\@endref\relax% + \else% + \@counta=\@tempa\relax% + \@countb=\@tempb\relax% + \advance\@counta 1\relax% + \ifnum\@counta=\@countb\relax% + \count@consecutive=2% + \fi% + \fi% + \fi% + \fi% + \fi% + \cref@isstackempty{\@refstack}% + \if@cref@stackempty% + \ifcase\count@group\relax% + \ifnum\count@consecutive=2\relax% + \def\@pos{@first}% + \else% + \def\@pos{}% + \fi% + \or% + \ifnum\count@consecutive=2\relax% + \def\@pos{@middle}% + \else% + \def\@pos{@second}% + \fi% + \else% + \def\@pos{@last}% + \fi% + \else% + \ifnum\count@group=0\relax% + \def\@pos{@first}% + \else% + \def\@pos{@middle}% + \fi% + \fi% + \ifnum\count@consecutive=1\relax% + \def\@tempa{#3}% + \edef\@tempb{{\@beginref}{#1}{\@pos}}% + \expandafter\@tempa\@tempb% + \else% + \ifnum\count@consecutive=2\relax% + \def\@tempa{#3}% + \edef\@tempb{{\@beginref}{#1}{\@pos}}% + \expandafter\@tempa\@tempb% + \expandafter\cref@stack@push\expandafter% + {\@endref,}{\@refstack}% + \else% + \def\@tempa{#4}% + \edef\@tempb{{\@beginref}{\@endref}{#1}{\@pos}}% + \expandafter\@tempa\@tempb% + \fi% + \fi% + \advance\count@group 1% + \cref@isstackfull{\@refstack}% + }% end loop over reference stack + \endgroup}% +\def\@setcpageref#1#2#3{% + \expandafter\ifx\csname r@#1@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#1' on page \thepage \space undefined}% + \else% + \cref@getpageref{#1}{\@temppage}% + \expandafter\ifx\csname #2@page@format#3\endcsname\relax% + \edef\@tempa{#2}\def\@tempb{labelcref}% + \ifx\@tempa\@tempb\relax% + \expandafter\@@setcpageref\expandafter% + {\csname #2@default@format#3\endcsname}{#1}% + \else% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}~\@temppage% + \@latex@warning{#2 \space reference format for + page references undefined}% + \fi% + \else% + \expandafter\@@setcpageref\expandafter% + {\csname #2@page@format#3\endcsname}{#1}% + \fi% + \fi}% +\def\@@setcpageref#1#2{% + \cref@getpageref{#2}{\@temppage}#1{\@temppage}{}{}}% +\def\@setcpagerefrange#1#2#3#4{% + \begingroup% + \expandafter\ifx\csname r@#1@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \@latex@warning{Reference `#1' on page \thepage \space% + undefined}% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \nfss@text{\reset@font\bfseries ??}--% + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#2' on page \thepage \space% + undefined}% + \else% + \cref@getpageref{#2}{\@pageb}% + \nfss@text{\reset@font\bfseries ??}--\@pageb% + \fi% + \else% + \expandafter\ifx\csname r@#2@cref\endcsname\relax% + \protect\G@refundefinedtrue% + \cref@getpageref{#1}{\@pagea}% + \@pagea--\nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#2' on page \thepage % + \space undefined}% + \else% + \cref@getpageref{#1}{\@pagea}% + \cref@getpageref{#2}{\@pageb}% + \edef\@format{\expandafter\noexpand% + \csname #3range@page@format#4\endcsname}% + \expandafter\ifx\@format\relax% + \edef\@tempa{#3}\def\@tempb{labelcref}% + \ifx\@tempa\@tempb\relax% + \expandafter\@@setcpagerefrange\expandafter% + {\csname #3range@default@format#4\endcsname}{#1}{#2}% + \else% + \protect\G@refundefinedtrue% + \nfss@text{\reset@font\bfseries ??}~\@pagea--\@pageb% + \@latex@warning{#3\space reference range format for page + references undefined}% + \fi% + \else% + \expandafter\@@setcpagerefrange\expandafter{\@format}{#1}{#2}% + \fi% + \fi% + \fi% + \endgroup}% +\def\@@setcpagerefrange#1#2#3{% + \cref@getpageref{#2}{\@pagea}% + \cref@getpageref{#3}{\@pageb}% + #1{\@pagea}{\@pageb}{}{}{}{}}% +\cref@stack@init{\cref@label@types}% +\newcommand\crefdefaultlabelformat[1]{% + \def\cref@default@label##1##2##3{#1}}% +\newcommand\crefname[3]{% + \@crefname{cref}{#1}{#2}{#3}{}}% +\newcommand\Crefname[3]{% + \@crefname{Cref}{#1}{#2}{#3}{}}% +\newcommand\creflabelformat[2]{% + \expandafter\def\csname cref@#1@label\endcsname##1##2##3{#2}% + \cref@stack@add{#1}{\cref@label@types}}% +\newcommand\crefrangelabelformat[2]{% + \expandafter\def\csname cref@#1@rangelabel\endcsname% + ##1##2##3##4##5##6{#2}% + \cref@stack@add{#1}{\cref@label@types}}% +\newcommand\crefalias[2]{% + \expandafter\def\csname cref@#1@alias\endcsname{#2}}% +\newcommand\crefname@preamble[3]{% + \@crefname{cref}{#1}{#2}{#3}{@preamble}}% +\newcommand\Crefname@preamble[3]{% + \@crefname{Cref}{#1}{#2}{#3}{@preamble}}% +\def\cref@othervariant#1#2#3{\cref@@othervariant#1\@nil#2#3}% +\def\cref@@othervariant#1#2\@nil#3#4{% + \if#1c% + \def#3{C#2}% + \def#4{\MakeUppercase}% + \else% + \def#3{c#2}% + \if@cref@capitalise% + \def#4{}% + \else% + \def#4{\MakeLowercase}% + \fi% + \fi}% +\def\@crefname#1#2#3#4#5{% + \expandafter\def\csname #1@#2@name#5\endcsname{#3}% + \expandafter\def\csname #1@#2@name@plural#5\endcsname{#4}% + \cref@othervariant{#1}{\@tempc}{\@tempd}% + \@ifundefined{\@tempc @#2@name#5}{% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempa% + \expandafter\expandafter\expandafter{% + \csname#1@#2@name\endcsname}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempb% + \expandafter\expandafter\expandafter{% + \csname#1@#2@name@plural\endcsname}% + \expandafter\ifx\@tempa\@empty\else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempa% + \expandafter\expandafter\expandafter{% + \expandafter\@tempd\@tempa}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempb% + \expandafter\expandafter\expandafter{% + \expandafter\@tempd\@tempb}% + \fi% + \toksdef\@toksa=0% + \@toksa={% + \expandafter\def\csname\@tempc @#2@name#5\endcsname}% + \expandafter\the\expandafter\@toksa\expandafter{\@tempa}% + \@toksa={% + \expandafter\def\csname\@tempc @#2@name@plural#5\endcsname}% + \expandafter\the\expandafter\@toksa\expandafter{\@tempb}% + }{}% + \cref@stack@add{#2}{\cref@label@types}}% +\def\@crefconstructcomponents#1{% + \@ifundefined{cref@#1@label}{% + \let\@templabel\cref@default@label% + }{% + \expandafter\let\expandafter\@templabel% + \csname cref@#1@label\endcsname% + }% + \@ifundefined{cref@#1@rangelabel}{% + \expandafter\def\expandafter\@tempa\expandafter{% + \@templabel{####1}{####3}{####4}}% + \expandafter\def\expandafter\@tempb\expandafter{% + \@templabel{####2}{####5}{####6}}% + \toksdef\@toksa=0% + \@toksa={\def\@temprangelabel##1##2##3##4##5##6}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter\crefrangepreconjunction% + \expandafter\@tempa\expandafter\crefrangeconjunction\@tempb% + \crefrangepostconjunction}% + }{% + \expandafter\let\expandafter\@temprangelabel% + \csname cref@#1@rangelabel\endcsname% + }% + \if@cref@nameinlink% + \expandafter\def\expandafter\@templabel@first\expandafter{% + \@templabel{########1}{}{########3}}% + \expandafter\def\expandafter\@temprangelabel@first\expandafter{% + \@temprangelabel{########1}{########2}% + {}{########4}{########5}{########6}}% + \fi% + \expandafter\def\expandafter\@templabel\expandafter{% + \@templabel{########1}{########2}{########3}}% + \expandafter\def\expandafter\@temprangelabel\expandafter{% + \@temprangelabel{########1}{########2}{########3}% + {########4}{########5}{########6}}% + \if@cref@nameinlink\else% + \let\@templabel@first\@templabel% + \let\@temprangelabel@first\@temprangelabel% + \fi% + \if@cref@nameinlink% + \def\@tempa##1##2{##2##1}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempname% + \expandafter\expandafter\expandafter{% + \expandafter\@tempa\expandafter% + {\csname cref@#1@name\endcsname}{########2}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempName% + \expandafter\expandafter\expandafter{% + \expandafter\@tempa\expandafter% + {\csname Cref@#1@name\endcsname}{########2}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempnameplural% + \expandafter\expandafter\expandafter{% + \expandafter\@tempa\expandafter% + {\csname cref@#1@name@plural\endcsname}{########2}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempNameplural% + \expandafter\expandafter\expandafter{% + \expandafter\@tempa\expandafter% + {\csname Cref@#1@name@plural\endcsname}{########2}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempnameplural@range% + \expandafter\expandafter\expandafter{% + \expandafter\@tempa\expandafter% + {\csname cref@#1@name@plural\endcsname}{########3}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempNameplural@range% + \expandafter\expandafter\expandafter{% + \expandafter\@tempa\expandafter% + {\csname Cref@#1@name@plural\endcsname}{########3}}% + \else% + \expandafter\def\expandafter\@tempname\expandafter{% + \csname cref@#1@name\endcsname}% + \expandafter\def\expandafter\@tempName\expandafter{% + \csname Cref@#1@name\endcsname}% + \expandafter\def\expandafter\@tempnameplural\expandafter{% + \csname cref@#1@name@plural\endcsname}% + \expandafter\def\expandafter\@tempNameplural\expandafter{% + \csname Cref@#1@name@plural\endcsname}% + \let\@tempnameplural@range\@tempnameplural% + \let\@tempNameplural@range\@tempNameplural% + \fi% +}% +\def\@crefdefineformat#1{% + \begingroup% + \@crefconstructcomponents{#1}% + \expandafter\ifx\csname cref@#1@name\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempfirst\expandafter{\@templabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempfirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempname\expandafter\nobreakspace\@templabel@first}% + \fi% + \expandafter\ifx\csname Cref@#1@name\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempFirst\expandafter{\@templabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempFirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempName\expandafter\nobreakspace\@templabel@first}% + \fi% + \expandafter\def\expandafter\@templabel\expandafter{\@templabel}% + \toksdef\@toksa=0% + \@toksa={\crefformat{#1}}% + \expandafter\the\expandafter\@toksa\expandafter{\@tempfirst}% + \@toksa={\Crefformat{#1}}% + \expandafter\the\expandafter\@toksa\expandafter{\@tempFirst}% + \@ifundefined{cref@#1@label}{}{% + \@toksa={\labelcrefformat{#1}}% + \expandafter\the\expandafter\@toksa\expandafter{\@templabel}}% + \endgroup}% +\def\@crefrangedefineformat#1{% + \begingroup% + \@crefconstructcomponents{#1}% + \expandafter\ifx\csname cref@#1@name\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempfirst% + \expandafter{\@temprangelabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempfirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempnameplural@range% + \expandafter\nobreakspace\@temprangelabel@first}% + \fi% + \expandafter\ifx\csname Cref@#1@name\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempFirst% + \expandafter{\@temprangelabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempFirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempNameplural@range% + \expandafter\nobreakspace\@temprangelabel@first}% + \fi% + \expandafter\def\expandafter\@temprangelabel% + \expandafter{\@temprangelabel}% + \toksdef\@toksa=0% + \@toksa={\crefrangeformat{#1}}% + \expandafter\the\expandafter\@toksa\expandafter{\@tempfirst}% + \@toksa={\Crefrangeformat{#1}}% + \expandafter\the\expandafter\@toksa\expandafter{\@tempFirst}% + \@ifundefined{cref@#1@rangelabel}{% + \@ifundefined{cref@#1@label}{\let\@tempa\relax}{\def\@tempa{}}}% + {\def\@tempa{}}% + \ifx\@tempa\@empty\relax% + \@toksa={\labelcrefrangeformat{#1}}% + \expandafter\the\expandafter\@toksa\expandafter{% + \@temprangelabel}% + \fi% + \endgroup}% +\def\@crefdefinemultiformat#1{% + \begingroup% + \@crefconstructcomponents{#1}% + \expandafter\ifx\csname cref@#1@name@plural\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempfirst% + \expandafter{\@templabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempfirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempnameplural% + \expandafter\nobreakspace\@templabel@first}% + \fi% + \expandafter\ifx\csname Cref@#1@name@plural\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempFirst% + \expandafter{\@templabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempFirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempNameplural% + \expandafter\nobreakspace\@templabel@first}% + \fi% + \expandafter\def\expandafter\@tempsecond\expandafter{% + \expandafter\crefpairconjunction\@templabel}% + \expandafter\def\expandafter\@tempmiddle\expandafter{% + \expandafter\crefmiddleconjunction\@templabel}% + \expandafter\def\expandafter\@templast\expandafter{% + \expandafter\creflastconjunction\@templabel}% + \expandafter\def\expandafter\@templabel\expandafter{\@templabel}% + \toksdef\@toksa=0% + \toksdef\@toksb=1% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempfirst}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\crefmultiformat{#1}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempFirst}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\Crefmultiformat{#1}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \@ifundefined{cref@#1@label}{}{% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templabel}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\labelcrefmultiformat{#1}}% + \expandafter\the\expandafter\@toksa\the\@toksb}% + \endgroup}% +\def\@crefrangedefinemultiformat#1{% + \begingroup% + \@crefconstructcomponents{#1}% + \expandafter\ifx\csname cref@#1@name@plural\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempfirst% + \expandafter{\@temprangelabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempfirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempnameplural@range% + \expandafter\nobreakspace\@temprangelabel@first}% + \fi% + \expandafter\ifx\csname Cref@#1@name@plural\endcsname\@empty\relax% + \expandafter\def\expandafter\@tempFirst% + \expandafter{\@temprangelabel}% + \else% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempFirst% + \expandafter\expandafter\expandafter{% + \expandafter\@tempNameplural@range% + \expandafter\nobreakspace\@temprangelabel@first}% + \fi% + \expandafter\def\expandafter\@tempsecond\expandafter{% + \expandafter\crefpairconjunction\@temprangelabel}% + \expandafter\def\expandafter\@tempmiddle\expandafter{% + \expandafter\crefmiddleconjunction\@temprangelabel}% + \expandafter\def\expandafter\@templast\expandafter{% + \expandafter\creflastconjunction\@temprangelabel}% + \expandafter\def\expandafter\@temprangelabel% + \expandafter{\@temprangelabel}% + \toksdef\@toksa=0% + \toksdef\@toksb=1% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempfirst}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\crefrangemultiformat{#1}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempFirst}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\Crefrangemultiformat{#1}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \@ifundefined{cref@#1@rangelabel}{% + \@ifundefined{cref@#1@label}{\let\@tempa\relax}{\def\@tempa{}}}% + {\def\@tempa{}}% + \ifx\@tempa\@empty\relax% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@temprangelabel}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\labelcrefrangemultiformat{#1}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \fi% + \endgroup}% +\def\@labelcrefdefinedefaultformats{% + \begingroup% + \toksdef\@toksa=0% + \toksdef\@toksb=1% + \let\@templabel\cref@default@label% + \expandafter\def\expandafter\@tempa\expandafter{% + \@templabel{####1}{####3}{####4}}% + \expandafter\def\expandafter\@tempb\expandafter{% + \@templabel{####2}{####5}{####6}}% + \@toksa={\def\@temprangelabel##1##2##3##4##5##6}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter\crefrangepreconjunction% + \expandafter\@tempa\expandafter\crefrangeconjunction\@tempb% + \crefrangepostconjunction}% + \expandafter\def\expandafter\@templabel\expandafter{% + \@templabel{########1}{########2}{########3}}% + \expandafter\def\expandafter\@temprangelabel\expandafter{% + \@temprangelabel{########1}{########2}{########3}% + {########4}{########5}{########6}}% + \expandafter\def\expandafter\@tempsecond\expandafter{% + \expandafter\crefpairconjunction\@templabel}% + \expandafter\def\expandafter\@tempmiddle\expandafter{% + \expandafter\crefmiddleconjunction\@templabel}% + \expandafter\def\expandafter\@templast\expandafter{% + \expandafter\creflastconjunction\@templabel}% + \expandafter\def\expandafter\@temprangesecond\expandafter{% + \expandafter\crefpairconjunction\@temprangelabel}% + \expandafter\def\expandafter\@temprangemiddle\expandafter{% + \expandafter\crefmiddleconjunction\@temprangelabel}% + \expandafter\def\expandafter\@temprangelast\expandafter{% + \expandafter\creflastconjunction\@temprangelabel}% + \expandafter\def\expandafter\@templabel\expandafter{\@templabel}% + \expandafter\def\expandafter\@temprangelabel% + \expandafter{\@temprangelabel}% + \@toksa={\labelcrefformat{default}}% + \expandafter\the\expandafter\@toksa\expandafter{\@templabel}% + \@toksa={\labelcrefrangeformat{default}}% + \expandafter\the\expandafter\@toksa\expandafter{\@temprangelabel}% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templabel}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempsecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@tempmiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@templast}}% + \@toksa={\labelcrefmultiformat{default}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \@toksb={}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@temprangelabel}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@temprangesecond}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@temprangemiddle}}% + \expandafter\cref@append@toks\expandafter\@toksb\expandafter{% + \expandafter{\@temprangelast}}% + \@toksa={\labelcrefrangemultiformat{default}}% + \expandafter\the\expandafter\@toksa\the\@toksb% + \endgroup}% +\def\@crefdefineallformats#1{% + \@crefdefineformat{#1}% + \@crefrangedefineformat{#1}% + \@crefdefinemultiformat{#1}% + \@crefrangedefinemultiformat{#1}}% +\newcommand\crefformat[2]{\@crefformat{cref}{#1}{#2}}% +\newcommand\Crefformat[2]{\@crefformat{Cref}{#1}{#2}}% +\newcommand\crefrangeformat[2]{\@crefrangeformat{crefrange}{#1}{#2}}% +\newcommand\Crefrangeformat[2]{\@crefrangeformat{Crefrange}{#1}{#2}}% +\newcommand\crefmultiformat[5]{% + \@crefmultiformat{cref}{#1}{#2}{#3}{#4}{#5}}% +\newcommand\Crefmultiformat[5]{% + \@crefmultiformat{Cref}{#1}{#2}{#3}{#4}{#5}}% +\newcommand\crefrangemultiformat[5]{% + \@crefrangemultiformat{crefrange}{#1}{#2}{#3}{#4}{#5}}% +\newcommand\Crefrangemultiformat[5]{% + \@crefrangemultiformat{Crefrange}{#1}{#2}{#3}{#4}{#5}}% +\newcommand\labelcrefformat[2]{% + \expandafter\gdef\csname labelcref@#1@format\endcsname##1##2##3{#2}}% +\newcommand\labelcrefrangeformat[2]{% + \expandafter\gdef\csname labelcrefrange@#1@format\endcsname% + ##1##2##3##4##5##6{#2}}% +\newcommand\labelcrefmultiformat[5]{% + \expandafter\gdef\csname labelcref@#1@format@first\endcsname% + ##1##2##3{#2}% + \expandafter\gdef\csname labelcref@#1@format@second\endcsname% + ##1##2##3{#3}% + \expandafter\gdef\csname labelcref@#1@format@middle\endcsname% + ##1##2##3{#4}% + \expandafter\gdef\csname labelcref@#1@format@last\endcsname% + ##1##2##3{#5}}% +\newcommand\labelcrefrangemultiformat[5]{% + \expandafter\gdef\csname labelcrefrange@#1@format@first\endcsname% + ##1##2##3##4##5##6{#2}% + \expandafter\gdef\csname labelcrefrange@#1@format@second\endcsname% + ##1##2##3##4##5##6{#3}% + \expandafter\gdef\csname labelcrefrange@#1@format@middle\endcsname% + ##1##2##3##4##5##6{#4}% + \expandafter\gdef\csname labelcrefrange@#1@format@last\endcsname% + ##1##2##3##4##5##6{#5}}% +\def\@crefformat#1#2#3{% + \begingroup% + \expandafter\gdef\csname #1@#2@format\endcsname##1##2##3{#3}% + \cref@othervariant{#1}{\@other}{\@changecase}% + \@ifundefined{\@other @#2@format}{% + \toksdef\@toksa=0% + \@toksa={\def\@tempa##1##2##3}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \csname#1@#2@format\endcsname{##1}{##2}{##3}}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \expandafter\@changecase\@tempa{##1}{##2}{##3}}% + \@toksa={% + \expandafter\gdef\csname\@other @#2@format\endcsname##1##2##3}% + \expandafter\the\expandafter\@toksa\expandafter{% + \@tempa{##1}{##2}{##3}}% + }{}% + \endgroup}% +\def\@crefrangeformat#1#2#3{% + \begingroup% + \expandafter\gdef\csname #1@#2@format\endcsname% + ##1##2##3##4##5##6{#3}% + \cref@othervariant{#1}{\@other}{\@changecase}% + \@ifundefined{\@other @#2@format}{% + \toksdef\@toksa=0% + \@toksa={\def\@tempa##1##2##3##4##5##6}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \csname#1@#2@format\endcsname{##1}{##2}{##3}{##4}{##5}{##6}}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \expandafter\@changecase\@tempa{##1}{##2}{##3}{##4}{##5}{##6}}% + \@toksa={\expandafter\gdef% + \csname\@other @#2@format\endcsname##1##2##3##4##5##6}% + \expandafter\the\expandafter\@toksa\expandafter{% + \@tempa{##1}{##2}{##3}{##4}{##5}{##6}}% + }{}% + \endgroup}% +\def\@crefmultiformat#1#2#3#4#5#6{% + \begingroup% + \expandafter\gdef\csname #1@#2@format@first\endcsname##1##2##3{#3}% + \expandafter\gdef\csname #1@#2@format@second\endcsname##1##2##3{#4}% + \expandafter\gdef\csname #1@#2@format@middle\endcsname##1##2##3{#5}% + \expandafter\gdef\csname #1@#2@format@last\endcsname##1##2##3{#6}% + \cref@othervariant{#1}{\@other}{\@changecase}% + \@ifundefined{\@other @#2@format@first}{% + \toksdef\@toksa=0% + \@toksa={\def\@tempa##1##2##3}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \csname#1@#2@format@first\endcsname{##1}{##2}{##3}}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \expandafter\@changecase\@tempa{##1}{##2}{##3}}% + \@toksa={% + \expandafter\gdef\csname\@other @#2@format@first\endcsname% + ##1##2##3}% + \expandafter\the\expandafter\@toksa\expandafter{% + \@tempa{##1}{##2}{##3}}% + }{}% + \@ifundefined{\@other @#2@format@second}{% + \@toksa={% + \expandafter\global\expandafter\let% + \csname\@other @#2@format@second\endcsname}% + \expandafter\the\expandafter\@toksa% + \csname #1@#2@format@second\endcsname% + }{}% + \@ifundefined{\@other @#2@format@middle}{% + \@toksa={% + \expandafter\global\expandafter\let% + \csname\@other @#2@format@middle\endcsname}% + \expandafter\the\expandafter\@toksa% + \csname #1@#2@format@middle\endcsname% + }{}% + \@ifundefined{\@other @#2@format@last}{% + \@toksa={% + \expandafter\global\expandafter\let% + \csname\@other @#2@format@last\endcsname}% + \expandafter\the\expandafter\@toksa% + \csname #1@#2@format@last\endcsname% + }{}% + \endgroup}% +\def\@crefrangemultiformat#1#2#3#4#5#6{% + \begingroup% + \expandafter\gdef\csname #1@#2@format@first\endcsname% + ##1##2##3##4##5##6{#3}% + \expandafter\gdef\csname #1@#2@format@second\endcsname% + ##1##2##3##4##5##6{#4}% + \expandafter\gdef\csname #1@#2@format@middle\endcsname% + ##1##2##3##4##5##6{#5}% + \expandafter\gdef\csname #1@#2@format@last\endcsname% + ##1##2##3##4##5##6{#6}% + \cref@othervariant{#1}{\@other}{\@changecase}% + \@ifundefined{\@other @#2@format@first}{% + \toksdef\@toksa=0% + \@toksa={\def\@tempa##1##2##3##4##5##6}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \csname#1@#2@format@first\endcsname% + {##1}{##2}{##3}{##4}{##5}{##6}}% + \expandafter\expandafter\expandafter\the% + \expandafter\expandafter\expandafter\@toksa% + \expandafter\expandafter\expandafter{% + \expandafter\@changecase\@tempa{##1}{##2}{##3}{##4}{##5}{##6}}% + \@toksa={% + \expandafter\gdef\csname\@other @#2@format@first\endcsname% + ##1##2##3##4##5##6}% + \expandafter\the\expandafter\@toksa\expandafter{% + \@tempa{##1}{##2}{##3}{##4}{##5}{##6}}% + }{}% + \@ifundefined{\@other @#2@format@second}{% + \@toksa={% + \expandafter\global\expandafter\let% + \csname\@other @#2@format@second\endcsname}% + \expandafter\the\expandafter\@toksa% + \csname #1@#2@format@second\endcsname% + }{}% + \@ifundefined{\@other @#2@format@middle}{% + \@toksa={% + \expandafter\global\expandafter\let% + \csname\@other @#2@format@middle\endcsname}% + \expandafter\the\expandafter\@toksa% + \csname #1@#2@format@middle\endcsname% + }{}% + \@ifundefined{\@other @#2@format@last}{% + \@toksa={% + \expandafter\global\expandafter\let% + \csname\@other @#2@format@last\endcsname}% + \expandafter\the\expandafter\@toksa% + \csname #1@#2@format@last\endcsname% + }{}% + \endgroup}% +\let\if@cref@hyperrefloaded\iffalse% +\@ifpackageloaded{hyperref}{% + \@ifpackagewith{hyperref}{implicit=false}{}{% + \let\if@cref@hyperrefloaded\iftrue% + \PackageInfo{cleveref}{`hyperref' support loaded}% + \def\cref@hyperlinkname#1{\expandafter\expandafter\expandafter% + \@fourthoffive\csname r@#1\endcsname}% + \def\cref@hyperlinkurl#1{\expandafter\expandafter\expandafter% + \@fifthoffive\csname r@#1\endcsname}% + \def\cref@hyperlink#1#2#3\@nil{\hyper@@link[link]{#1}{#2}{#3}} + \let\cref@old@H@refstepcounter\H@refstepcounter% + \def\H@refstepcounter#1{% + \cref@old@H@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}}% + \let\refstepcounter@noarg\cref@old@refstepcounter% + \def\refstepcounter@optarg[#1]#2{% + \cref@old@refstepcounter{#2}% + \protected@edef\cref@currentlabel{% + \expandafter\cref@override@label@type% + \cref@currentlabel\@nil{#1}}}% + \@ifundefined{appendix}{}{% + \g@addto@macro\appendix{% + \@ifundefined{chapter}{% + \def\H@refstepcounter#1{% + \cref@old@H@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \ifx\cref@result\@empty% + \def\cref@result{2147483647}% + \else% + \edef\cref@result{2147483647,\cref@result}% + \fi% + \def\@tempa{#1}% + \def\@tempb{section}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [appendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsubsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subsubappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \fi% + \fi% + \fi}% + }{% + \def\H@refstepcounter#1{% + \cref@old@H@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \ifx\cref@result\@empty% + \def\cref@result{2147483647}% + \else% + \edef\cref@result{2147483647,\cref@result}% + \fi% + \def\@tempa{#1}% + \def\@tempb{chapter}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [appendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{section}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subsubappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \def\@tempa{#1}% + \def\@tempb{subsubsection}% + \ifx\@tempa\@tempb% + \protected@edef\cref@currentlabel{% + [subsubsubappendix][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \else% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}% + \fi% + \fi% + \fi% + \fi}% + }% + }% + }% end of \@ifundefined{appendix} + \DeclareRobustCommand{\cref}{% + \@ifstar{\@crefstar{cref}}{\@crefnostar{cref}}}% + \DeclareRobustCommand{\Cref}{% + \@ifstar{\@crefstar{Cref}}{\@crefnostar{Cref}}}% + \def\@crefnostar#1#2{\@cref{#1}{#2}}% + \def\@crefstar#1#2{% + \@crefstarredtrue\@cref{#1}{#2}\@crefstarredfalse}% + \DeclareRobustCommand{\crefrange}{% + \@ifstar{\@crefrangestar{cref}}{\@crefrangenostar{cref}}}% + \DeclareRobustCommand{\Crefrange}{% + \@ifstar{\@crefrangestar{Cref}}{\@crefrangenostar{Cref}}}% + \def\@crefrangenostar#1#2#3{\@setcrefrange{#2}{#3}{#1}{}}% + \def\@crefrangestar#1#2#3{% + \@crefstarredtrue\@setcrefrange{#2}{#3}{#1}{}\@crefstarredfalse}% + \DeclareRobustCommand{\cpageref}{% + \@ifstar{\@cpagerefstar{cref}}{\@cpagerefnostar{cref}}}% + \DeclareRobustCommand{\Cpageref}{% + \@ifstar{\@cpagerefstar{Cref}}{\@cpagerefnostar{Cref}}}% + \def\@cpagerefnostar#1#2{% + \@cpageref{#1}{#2}{\@setcpageref}{\@setcpagerefrange}}% + \def\@cpagerefstar#1#2{% + \@crefstarredtrue% + \@cpageref{#1}{#2}{\@setcpageref}{\@setcpagerefrange}% + \@crefstarredfalse}% + \DeclareRobustCommand{\cpagerefrange}{% + \@ifstar{\@cpagerefrangestar{cref}}{\@cpagerefrangenostar{cref}}}% + \DeclareRobustCommand{\Cpagerefrange}{% + \@ifstar{\@cpagerefrangestar{Cref}}{\@cpagerefrangenostar{Cref}}}% + \def\@cpagerefrangenostar#1#2#3{\@setcpagerefrange{#2}{#3}{#1}{}}% + \def\@cpagerefrangestar#1#2#3{% + \@crefstarredtrue% + \@setcpagerefrange{#2}{#3}{#1}{}% + \@crefstarredfalse}% + \DeclareRobustCommand{\labelcref}{% + \@ifstar{\@labelcrefstar}{\@labelcrefnostar}}% + \def\@labelcrefnostar#1{\@cref{labelcref}{#1}}% + \def\@labelcrefstar#1{% + \@crefstarredtrue% + \@cref{labelcref}{#1}% + \@crefstarredfalse}% + \DeclareRobustCommand{\labelcpageref}{% + \@ifstar{\@labelcpagerefstar}{\@labelcpagerefnostar}}% + \def\@labelcpagerefnostar#1{% + \@cpageref{labelcref}{#1}{\@setcpageref}{\@setcpagerefrange}}% + \def\@labelcpagerefstar#1{% + \@crefstarredtrue% + \@cpageref{labelcref}{#1}{\@setcpageref}{\@setcpagerefrange}% + \@crefstarredfalse}% + \def\@@setcref#1#2{% + \cref@getlabel{#2}{\@templabel}% + \if@crefstarred% + #1{\@templabel}{}{}% + \else% + \edef\@tempname{\cref@hyperlinkname{#2}}% + \edef\@tempurl{\cref@hyperlinkurl{#2}}% + #1{\@templabel}{\cref@hyperlink{\@tempurl}{\@tempname}}{\@nil}% + \fi}% + \def\@@setcrefrange#1#2#3{% + \cref@getlabel{#2}{\@labela}% + \cref@getlabel{#3}{\@labelb}% + \if@crefstarred% + #1{\@labela}{\@labelb}{}{}{}{}% + \else% + \edef\@tempnamea{\cref@hyperlinkname{#2}}% + \edef\@tempurlb{\cref@hyperlinkurl{#3}}% + \edef\@tempnameb{\cref@hyperlinkname{#3}}% + \edef\@tempurla{\cref@hyperlinkurl{#2}}% + #1{\@labela}{\@labelb}% + {\cref@hyperlink{\@tempurla}{\@tempnamea}}{\@nil}% + {\cref@hyperlink{\@tempurlb}{\@tempnameb}}{\@nil}% + \fi}% + \def\@@setcpageref#1#2{% + \cref@getpageref{#2}{\@temppage}% + \if@crefstarred% + #1{\@temppage}{}{}% + \else% + \edef\@tempname{\cref@hyperlinkname{#2}}% + \edef\@tempurl{\cref@hyperlinkurl{#2}}% + #1{\@temppage}{\cref@hyperlink{\@tempurl}{\@tempname}}{\@nil}% + \fi}% + \def\@@setcpagerefrange#1#2#3{% + \cref@getpageref{#2}{\@pagea}% + \cref@getpageref{#3}{\@pageb}% + \if@crefstarred% + #1{\@pagea}{\@pageb}{}{}{}{}% + \else% + \edef\@tempnamea{\cref@hyperlinkname{#2}}% + \edef\@tempurlb{\cref@hyperlinkurl{#3}}% + \edef\@tempnameb{\cref@hyperlinkname{#3}}% + \edef\@tempurla{\cref@hyperlinkurl{#2}}% + #1{\@pagea}{\@pageb}% + {\cref@hyperlink{\@tempurla}{\@tempnamea}}{\@nil}% + {\cref@hyperlink{\@tempurlb}{\@tempnameb}}{\@nil}% + \fi}% + }% end of false case of \@ifpackagewith{hyperref}{implicit=false} +}{% false case of \@ifpackageloaded{hyperref} + \@ifclassloaded{revtex4}{\let\if@cref@hyperrefloaded\iftrue}{}% + \@ifclassloaded{revtex4-1}{\let\if@cref@hyperrefloaded\iftrue}{}% + \if@cref@hyperrefloaded\relax% + \let\cref@old@H@refstepcounter\H@refstepcounter% + \def\H@refstepcounter#1{% + \cref@old@H@refstepcounter{#1}% + \cref@constructprefix{#1}{\cref@result}% + \@ifundefined{cref@#1@alias}% + {\def\@tempa{#1}}% + {\def\@tempa{\csname cref@#1@alias\endcsname}}% + \protected@edef\cref@currentlabel{% + [\@tempa][\arabic{#1}][\cref@result]% + \csname p@#1\endcsname\csname the#1\endcsname}}% + \fi% + \let\if@cref@hyperrefloaded\iffalse% +}% end of \@ifpackageloaded{hyperref} +\@ifpackageloaded{varioref}{% + \PackageInfo{cleveref}{`varioref' support loaded}% + \PackageInfo{cleveref}{`cleveref' supersedes `varioref's + \string\labelformat command}% + \def\cref@@vpageref#1[#2]#3{% + \@cpageref{cref}{#3}% + {\@setvpageref[#1][\vref@space]}{\@setvpagerefrange[#1]}}% + \def\cref@vref#1#2{% + \leavevmode% + \begingroup% + \def\reftextcurrent{}% + \@cref{#1}{#2}\@setcref@space% + \cref@@vpageref{\reftextcurrent}[]{#2}% + \endgroup}% + \def\cref@vrefrange#1#2#3{% + \@setcrefrange{#2}{#3}{#1}{}\@setcref@space\vpagerefrange{#2}{#3}}% + \def\cref@fullref#1#2{% + \@cref{#1}{#2}\@setcref@space% + \@cpageref{cref}{#2}{\@setfullpageref}{\@setfullpagerefrange}}% + \def\cref@vpagerefconjunction#1{% + \def\@tempa{#1}% + \def\@tempb{@second}% + \ifx\@tempa\@tempb\relax% + \@setcref@pairconjunction% + \else% + \def\@tempb{@middle}% + \ifx\@tempa\@tempb\relax% + \@setcref@middleconjunction% + \else% + \def\@tempb{@last}% + \ifx\@tempa\@tempb\relax% + \@setcref@lastconjunction% + \fi% + \fi% + \fi}% + \def\@setcref@space{ }% + \def\@setvpageref[#1][#2]#3#4#5{% + \cref@vpagerefconjunction{#5}% + \def\vref@space{}% + \begingroup% + \cref@patchreftexts{#5}% + \@@setvpageref{#1}[#2]{#3}% + \endgroup}% + \def\@@setvpageref#1[#2]#3{\cref@old@@vpageref{#1}[#2]{#3}}% + \def\@setvpagerefrange[#1]#2#3#4#5{% + \cref@vpagerefconjunction{#5}% + \let\vref@space\relax% + \begingroup% + \cref@patchreftexts{#5}% + \@@setvpagerefrange[#1]{#2}{#3}% + \endgroup}% + \def\@@setvpagerefrange[#1]#2#3{\vpagerefrange[#1]{#2}{#3}}% + \def\@setfullpageref#1#2#3{% + \cref@vpagerefconjunction{#3}% + \begingroup% + \cref@patchreftexts{#3}% + \@@setfullpageref{#1}% + \endgroup}% + \def\@@setfullpageref#1{\reftextfaraway{#1}}% + \def\@setfullpagerefrange#1#2#3#4{% + \cref@vpagerefconjunction{#4}% + \begingroup% + \cref@patchreftexts{#4}% + \@@setfullpagerefrange{#1}{#2}% + \endgroup}% + \def\@@setfullpagerefrange#1#2{\reftextpagerange{#1}{#2}}% + \def\cref@old@@vpageref#1[#2]#3{% + \leavevmode%\unskip <<< + \global\advance\c@vrcnt\@ne% + \vref@pagenum\@tempa{\the\c@vrcnt @vr}% + \vref@pagenum\@tempb{\the\c@vrcnt @xvr}% + %\vref@label{\the\c@vrcnt @xvr}% <<< + \ifx\@tempa\@tempb\else% + \vref@err{\noexpand\vref or \noexpand\vpageref at page boundary + \@tempb-\@tempa\space (may loop)% + }% + \fi% + \vrefpagenum\thevpagerefnum{#3}% + \vref@space% + \ifx\@tempa\thevpagerefnum% + \def\@tempc{#1}% + \ifx\@tempc\@empty% + \unskip% + \else% + #1% + \fi% + \else% + #2% + \is@pos@number\thevpagerefnum% + {% + \is@pos@number\@tempa% + {\@tempcnta\@tempa% + \advance\@tempcnta\@ne% + }% + {\@tempcnta\maxdimen}% + \ifnum \thevpagerefnum =\@tempcnta% + \ifodd\@tempcnta% + \if@twoside% + \reftextfaceafter% + \else% + \reftextafter% + \fi% + \else% + \reftextafter% + \fi% + \else% + \advance\@tempcnta-2% + \ifnum \thevpagerefnum =\@tempcnta% + \ifodd\@tempcnta% + \reftextbefore% + \else% + \if@twoside% + \reftextfacebefore% + \else% + \reftextbefore% + \fi% + \fi% + \else% + \reftextfaraway{#3}% + \fi% + \fi% + }% + {\reftextfaraway{#3}}% + \fi% + \vref@label{\the\c@vrcnt @xvr}% <<< + \vref@label{\the\c@vrcnt @vr}% + }% + \let\creftextcurrent\reftextcurrent% + \let\creftextfaceafter\reftextfaceafter% + \let\creftextfacebefore\reftextfacebefore% + \let\creftextafter\reftextafter% + \let\creftextbefore\reftextbefore% + \let\creftextfaraway\reftextfaraway% + \let\creftextpagerange\reftextpagerange% + \def\cref@patchreftexts#1{% + \cref@patchreftext{reftextcurrent}{#1}% + \cref@patchreftext{reftextfaceafter}{#1}% + \cref@patchreftext{reftextfacebefore}{#1}% + \cref@patchreftext{reftextafter}{#1}% + \cref@patchreftext{reftextbefore}{#1}}% + \def\cref@patchreftext#1#2{% + \def\@tempa{#2}% + \ifx\@tempa\@empty% + \def\@tempc{}% + \expandafter\ifx\csname #1\endcsname\@tempc\relax% + \expandafter\def\csname #1\endcsname{\unskip}% + %{\advance\count@group -1\reftextcurrent@orig}% + \else% + \long\def\@tempc{}% + \expandafter\ifx\csname #1\endcsname\@tempc\relax% + \expandafter\def\csname #1\endcsname{\unskip}% + %{\advance\count@group -1\reftextcurrent@orig}% + \fi% + \fi% + \else% + \long\def\@tempc{\unskip}% + \expandafter\ifx\csname #1\endcsname\@tempc\relax% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\csname #1\endcsname\expandafter{% + \csname c#1\endcsname}% + \else% + \long\def\@tempc{}% + \expandafter\ifx\csname #1\endcsname\@tempc\relax% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\csname #1\endcsname\expandafter{% + \csname c#1\endcsname}% + \else% + \def\@tempc{\unskip}% + \expandafter\ifx\csname #1\endcsname\@tempc\relax% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\csname #1\endcsname\expandafter{% + \csname c#1\endcsname}% + \else% + \def\@tempc{}% + \expandafter\ifx\csname #1\endcsname\@tempc\relax% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\csname #1\endcsname\expandafter{% + \csname c#1\endcsname}% + \fi% + \fi% + \fi% + \fi% + \fi}% + \def\@setcref@pairconjunction{\crefpairconjunction}% + \def\@setcref@middleconjunction{\crefmiddleconjunction}% + \def\@setcref@lastconjunction{\creflastconjunction}% + \AtBeginDocument{% + \def\@@vpageref#1[#2]#3{\cref@@vpageref{#1}[#2]{#3}}% + }% + \if@cref@hyperrefloaded\relax% hyperref loaded% + \DeclareRobustCommand{\vref}{% + \@ifstar{\cref@vrefstar{cref}}{\cref@vref{cref}}}% + \DeclareRobustCommand{\Vref}{% + \@ifstar{\cref@vrefstar{Cref}}{\cref@vref{Cref}}}% + \DeclareRobustCommand{\vrefrange}{% + \@ifstar{\cref@vrefrangestar{cref}}{\cref@vrefrange{cref}}}% + \DeclareRobustCommand{\Vrefrange}{% + \@ifstar{\cref@vrefrangestar{Cref}}{\cref@vrefrange{Cref}}}% + \DeclareRobustCommand{\fullref}{% + \@ifstar{\cref@fullrefstar{cref}}{\cref@fullref{cref}}}% + \DeclareRobustCommand{\Fullref}{% + \@ifstar{\cref@fullrefstar{Cref}}{\cref@fullref{Cref}}}% + \def\cref@vrefstar#1#2{% + \@crefstarredtrue% + \cref@vref{#1}{#2}% + \@crefstarredfalse}% + \def\cref@vrefrangestar#1#2#3{% + \@crefstarredtrue% + \cref@vrefrange{#1}{#2}{#3}% + \@crefstarredfalse}% + \def\cref@fullrefstar#1#2{% + \@crefstarredtrue% + \cref@fullref{#1}{#2}% + \@crefstarredfalse}% + \else% + \DeclareRobustCommand{\vref}{\cref@vref{cref}}% + \DeclareRobustCommand{\Vref}{\cref@vref{Cref}}% + \DeclareRobustCommand{\vrefrange}{\cref@vrefrange{cref}}% + \DeclareRobustCommand{\Vrefrange}{\cref@vrefrange{Cref}}% + \DeclareRobustCommand{\fullref}{\cref@fullref{cref}}% + \DeclareRobustCommand{\Fullref}{\cref@fullref{Cref}}% + \fi% end of test for hyperref +}{}% end of \@ifpackageloaded{varioref} +\@ifpackageloaded{amsmath}{% + \AtBeginDocument{% + \let\cref@old@label@in@display\label@in@display% + \def\label@in@display{% + \@ifnextchar[\label@in@display@optarg\label@in@display@noarg}%] + \def\label@in@display@noarg#1{\cref@old@label@in@display{{#1}}}% + \def\label@in@display@optarg[#1]#2{% + \cref@old@label@in@display{[#1]{#2}}}% + \def\ltx@label#1{\cref@label#1}% + }% end of AtBeginDocument + \def\measure@#1{% + \begingroup% + \measuring@true% + \global\eqnshift@\z@% + \global\alignsep@\z@% + \global\let\tag@lengths\@empty% + \global\let\field@lengths\@empty% + \savecounters@% + \global\setbox0\vbox{% + \let\math@cr@@@\math@cr@@@align@measure% + \everycr{\noalign{\global\tag@false% + \global\let\raise@tag\@empty \global\column@\z@}}% + \let\label\@gobble@optarg% <<< cleveref modification + \global\row@\z@% + \tabskip\z@% + \halign{\span\align@preamble\crcr% + #1% + \math@cr@@@% + \global\column@\z@% + \add@amps\maxfields@\cr% + }% + }% + \restorecounters@% + \ifodd\maxfields@% + \global\advance\maxfields@\@ne% + \fi% + \ifnum\xatlevel@=\tw@% + \ifnum\maxfields@<\thr@@% + \let\xatlevel@\z@% + \fi% + \fi% + \setbox\z@\vbox{% + \unvbox\z@ \unpenalty \global\setbox\@ne\lastbox% + }% + \global\totwidth@\wd\@ne% + \if@fleqn \global\advance\totwidth@\@mathmargin \fi% + \global\let\maxcolumn@widths\@empty% + \begingroup% + \let\or\relax% + \loop% + \global\setbox\@ne\hbox{% + \unhbox\@ne \unskip \global\setbox\thr@@\lastbox% + }% + \ifhbox\thr@@% + \xdef\maxcolumn@widths{ \or \the\wd\thr@@ \maxcolumn@widths}% + \repeat% + \endgroup% + \dimen@\displaywidth% + \advance\dimen@-\totwidth@% + \ifcase\xatlevel@% + \global\alignsep@\z@% + \let\minalignsep\z@% + \@tempcntb\z@% + \if@fleqn% + \@tempcnta\@ne% + \global\eqnshift@\@mathmargin% + \else% + \@tempcnta\tw@% + \global\eqnshift@\dimen@% + \global\divide\eqnshift@\@tempcnta% + \fi% + \or% + \@tempcntb\maxfields@% + \divide\@tempcntb\tw@% + \@tempcnta\@tempcntb% + \advance\@tempcntb\m@ne% + \if@fleqn% + \global\eqnshift@\@mathmargin% + \global\alignsep@\dimen@% + \global\divide\alignsep@\@tempcnta% + \else% + \global\advance\@tempcnta\@ne% + \global\eqnshift@\dimen@% + \global\divide\eqnshift@\@tempcnta% + \global\alignsep@\eqnshift@% + \fi% + \or% + \@tempcntb\maxfields@% + \divide\@tempcntb\tw@% + \global\advance\@tempcntb\m@ne% + \global\@tempcnta\@tempcntb% + \global\eqnshift@\z@% + \global\alignsep@\dimen@% + \if@fleqn% + \global\advance\alignsep@\@mathmargin\relax% + \fi% + \global\divide\alignsep@\@tempcntb% + \fi% + \ifdim\alignsep@<\minalignsep\relax% + \global\alignsep@\minalignsep\relax% + \ifdim\eqnshift@>\z@% + \if@fleqn\else% + \global\eqnshift@\displaywidth% + \global\advance\eqnshift@-\totwidth@% + \global\advance\eqnshift@-\@tempcntb\alignsep@% + \global\divide\eqnshift@\tw@% + \fi% + \fi% + \fi% + \ifdim\eqnshift@<\z@% + \global\eqnshift@\z@% + \fi% + \calc@shift@align% + \global\tagshift@\totwidth@% + \global\advance\tagshift@\@tempcntb\alignsep@% + \if@fleqn% + \ifnum\xatlevel@=\tw@% + \global\advance\tagshift@-\@mathmargin\relax% + \fi% + \else% + \global\advance\tagshift@\eqnshift@% + \fi% + \iftagsleft@ \else% + \global\advance\tagshift@-\displaywidth% + \fi% + \dimen@\minalignsep\relax% + \global\advance\totwidth@\@tempcntb\dimen@% + \ifdim\totwidth@>\displaywidth% + \global\let\displaywidth@\totwidth@% + \else% + \global\let\displaywidth@\displaywidth% + \fi% + \endgroup% + }% + \def\gmeasure@#1{% + \begingroup% + \measuring@true% + \totwidth@\z@% + \global\let\tag@lengths\@empty% + \savecounters@% + \setbox\@ne\vbox{% + \everycr{\noalign{\global\tag@false% + \global\let\raise@tag\@empty \global\column@\z@}}% + \let\label\@gobble% <<< cleveref modification + \halign{% + \setboxz@h{$\m@th\displaystyle{##}$}% + \ifdim\wdz@>\totwidth@% + \global\totwidth@\wdz@% + \fi% + &\setboxz@h{\strut@{##}}% + \savetaglength@% + \crcr% + #1% + \math@cr@@@% + }% + }% + \restorecounters@% + \if@fleqn% + \global\advance\totwidth@\@mathmargin% + \fi% + \iftagsleft@% + \ifdim\totwidth@>\displaywidth% + \global\let\gdisplaywidth@\totwidth@% + \else% + \global\let\gdisplaywidth@\displaywidth% + \fi% + \fi% + \endgroup% +}% + \def\multline@#1{% + \Let@% + \@display@init{\global\advance\row@\@ne \global\dspbrk@lvl\m@ne}% + \chardef\dspbrk@context\z@% + \restore@math@cr% + \let\tag\tag@in@align% + \global\tag@false \global\let\raise@tag\@empty% + \mmeasure@{#1}% + \let\tag\gobble@tag \let\label\@gobble@optarg% <<< cleveref modification + \tabskip \if@fleqn \@mathmargin \else \z@skip \fi% + \totwidth@\displaywidth% + \if@fleqn% + \advance\totwidth@-\@mathmargin% + \fi% + \halign\bgroup% + \hbox to\totwidth@{% + \if@fleqn% + \hskip \@centering \relax% + \else% + \hfil% + \fi% + \strut@% + $\m@th\displaystyle{}##\endmultline@math% + \hfil% + }% $ + \crcr% + \if@fleqn% + \hskip-\@mathmargin% + \def\multline@indent{\hskip\@mathmargin}% + \else% + \hfilneg% + \def\multline@indent{\hskip\multlinegap}% + \fi% + \iftagsleft@% + \iftag@% + \begingroup% + \ifshifttag@% + \rlap{\vbox{% + \normalbaselines% + \hbox{% + \strut@% + \make@display@tag% + }% + \vbox to\lineht@{}% + \raise@tag% + }}% + \multline@indent% + \else% + \setbox\z@\hbox{\make@display@tag}% + \dimen@\@mathmargin \advance\dimen@-\wd\z@% + \ifdim\dimen@<\multlinetaggap% + \dimen@\multlinetaggap% + \fi% + \box\z@ \hskip\dimen@\relax% + \fi% + \endgroup% + \else% + \multline@indent% + \fi% + \else% + \multline@indent% + \fi% + #1% + }% + \def\mmeasure@#1{% + \begingroup% + \measuring@true% + \def\label{% <<< cleveref modification + \@ifnextchar[\label@in@mmeasure@optarg%] + \label@in@mmeasure@noarg}% + \def\math@cr@@@{\cr}% + \let\shoveleft\@iden \let\shoveright\@iden% + \savecounters@% + \global\row@\z@% + \setbox\@ne\vbox{% + \global\let\df@tag\@empty% + \halign{% + \setboxz@h{\@lign$\m@th\displaystyle{}##$}% + \iftagsleft@% + \ifnum\row@=\@ne% + \global\totwidth@\wdz@% + \global\lineht@\ht\z@% + \fi% + \else% + \global\totwidth@\wdz@% + \global\lineht@\dp\z@% + \fi% + \crcr% + #1% + \crcr% + }% + }% + \ifx\df@tag\@empty\else\global\tag@true\fi% + \if@eqnsw\global\tag@true\fi% + \iftag@% + \setboxz@h{% + \if@eqnsw% + \stepcounter{equation}% + \tagform@\theequation% + \else% + \df@tag% + \fi% + }% + \global\tagwidth@\wdz@% + \dimen@\totwidth@% + \advance\dimen@\tagwidth@% + \advance\dimen@\multlinetaggap% + \iftagsleft@\else% + \if@fleqn% + \advance\dimen@\@mathmargin% + \fi% + \fi% + \ifdim\dimen@>\displaywidth% + \global\shifttag@true% + \else% + \global\shifttag@false% + \fi% + \fi% + \restorecounters@% + \endgroup% + }% + \def\label@in@mmeasure@noarg#1{% + \begingroup% + \measuring@false% + \cref@old@label@in@display{{#1}}% + \endgroup}% + \def\label@in@mmeasure@optarg[#1]#2{% + \begingroup% + \measuring@false% + \cref@old@label@in@display{[#1]{#2}}% + \endgroup}% + \let\cref@old@subequations\subequations% + \let\cref@old@endsubequations\endsubequations% + \cref@resetby{equation}{\cref@result}% + \ifx\cref@result\relax\else% + \@addtoreset{parentequation}{\cref@result}% + \fi% + \renewenvironment{subequations}{% + \@addtoreset{equation}{parentequation}% + \let\cref@orig@equation@alias\cref@equation@alias% + \@ifundefined{cref@subequation@alias}% + {\crefalias{equation}{subequation}}% + {\def\@tempa{{equation}}% + \expandafter\expandafter\expandafter\crefalias% + \expandafter\@tempa\expandafter{\cref@subequation@alias}}% + \cref@old@subequations% + }{% + \gdef\cl@parentequation{}% + \cref@old@endsubequations% + \setcounter{parentequation}{0}% + \@ifundefined{cref@orig@cref@equation@alias}% + {\let\cref@equation@alias\relax}% + {\let\cref@equation@alias\cref@orig@equation@alias\relax}% + \let\cref@orig@equation@alias\relax% + }% + \let\cref@old@make@df@tag@@\make@df@tag@@% + \def\make@df@tag@@#1{% + \cref@old@make@df@tag@@{#1}% + \let\cref@old@df@tag\df@tag% + \expandafter\gdef\expandafter\df@tag\expandafter{% + \cref@old@df@tag% + \def\cref@currentlabel{[equation][2147483647][]#1}}}% + \let\cref@old@make@df@tag@@@\make@df@tag@@@% + \def\make@df@tag@@@#1{% + \cref@old@make@df@tag@@@{#1}% + \let\cref@old@df@tag\df@tag% + \expandafter\gdef\expandafter\df@tag\expandafter{% + \cref@old@df@tag% + \toks@\@xp{\p@equation{#1}}% + \edef\cref@currentlabel{[equation][2147483647][]\the\toks@}}}% +}{}% end of \@ifpackageloaded{amsmath} +\@ifpackageloaded{amsthm}{% + \PackageInfo{cleveref}{`amsthm' support loaded}% + \let\cref@thmnoarg\@thm% + \def\@thm{\@ifnextchar[{\cref@thmoptarg}{\cref@thmnoarg}}%] + \def\cref@thmoptarg[#1]#2#3#4{% + \ifhmode\unskip\unskip\par\fi% + \normalfont% + \trivlist% + \let\thmheadnl\relax% + \let\thm@swap\@gobble% + \thm@notefont{\fontseries\mddefault\upshape}% + \thm@headpunct{.}% add period after heading + \thm@headsep 5\p@ plus\p@ minus\p@\relax% + \thm@space@setup% + #2% style overrides + \@topsep \thm@preskip % used by thm head + \@topsepadd \thm@postskip % used by \@endparenv + \def\@tempa{#3}\ifx\@empty\@tempa% + \def\@tempa{\@oparg{\@begintheorem{#4}{}}[]}% + \else% + \refstepcounter[#1]{#3}% <<< cleveref modification + \def\@tempa{\@oparg{\@begintheorem{#4}{\csname the#3\endcsname}}[]}% + \fi% + \@tempa}% + \def\@ynthm#1[#2]#3{% + \edef\@tempa{\expandafter\noexpand% + \csname cref@#1@name@preamble\endcsname}% + \edef\@tempb{\expandafter\noexpand% + \csname Cref@#1@name@preamble\endcsname}% + \def\@tempc{#3}% + \ifx\@tempc\@empty\relax% + \expandafter\gdef\@tempa{}% + \expandafter\gdef\@tempb{}% + \else% + \if@cref@capitalise% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeUppercase #3}% + \else% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempa\expandafter{\MakeLowercase #3}% + \fi% + \expandafter\expandafter\expandafter\gdef\expandafter% + \@tempb\expandafter{\MakeUppercase #3}% + \fi% + \cref@stack@add{#1}{\cref@label@types}% + \ifx\relax#2\relax% + \def\@tempa{\@oparg{\@xthm{#1}{#3}}[]}% + \else% + \@ifundefined{c@#2}{% + \def\@tempa{\@nocounterr{#2}}% + }{% + \@xp\xdef\csname the#1\endcsname{\@xp\@nx\csname the#2\endcsname}% + \toks@{#3}% + \@xp\xdef\csname#1\endcsname{% + \@nx\@thm[#1]{% <<< new optional argument for theorem name + \let\@nx\thm@swap% + \if S\thm@swap\@nx\@firstoftwo\else\@nx\@gobble\fi% + \@xp\@nx\csname th@\the\thm@style\endcsname}% + {#2}{\the\toks@}}% + \let\@tempa\relax% + }% + \fi% + \@tempa}% + \let\@xnthm\cref@old@xnthm% +}{}% end of \@ifpackageloaded{amsthm} +\@ifpackageloaded{ntheorem}{% + \PackageInfo{cleveref}{`ntheorem' support loaded}% + \@ifpackagewith{ntheorem}{thref}{% + \PackageWarning{cleveref}{`cleveref' supersedes `ntheorem's `thref' + option}% + \renewcommand{\thref}{\cref}}{}% + \@ifundefined{theorem@prework}{\let\theorem@prework\relax}{}% + \gdef\@thm#1#2#3{% + \if@thmmarks% + \stepcounter{end\InTheoType ctr}% + \fi% + \renewcommand{\InTheoType}{#1}% + \if@thmmarks% + \stepcounter{curr#1ctr}% + \setcounter{end#1ctr}{0}% + \fi% + \refstepcounter[#1]{#2}% <<< cleveref modification + \theorem@prework% + \thm@topsepadd \theorempostskipamount% + \ifvmode \advance\thm@topsepadd\partopsep\fi% + \trivlist% + \@topsep \theorempreskipamount% + \@topsepadd \thm@topsepadd% + \advance\linewidth -\theorem@indent% + \advance\@totalleftmargin \theorem@indent% + \parshape \@ne \@totalleftmargin \linewidth% + \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}%] + }% +}{}% end of \@ifpackageloaded{ntheorem} +\@ifpackageloaded{IEEEtrantools}{% + \PackageInfo{cleveref}{`IEEEtrantools' support loaded}% + \let\cref@orig@@IEEEeqnarray\@@IEEEeqnarray% + \def\@@IEEEeqnarray[#1]#2{% + \refstepcounter{equation}% + \addtocounter{equation}{-1}% + \cref@orig@@IEEEeqnarray[#1]{#2}}% + \let\cref@orig@IEEEeqnarrayXCR\@IEEEeqnarrayXCR% + \def\@IEEEeqnarrayXCR[#1]{% + \if@eqnsw% + \if@IEEEissubequation% + %\addtocounter{equation}{1}% + \refstepcounter{IEEEsubequation}% + \addtocounter{IEEEsubequation}{-1}% + \else% + \refstepcounter{equation}% + \addtocounter{equation}{-1}% + \fi% + \fi% + \cref@orig@IEEEeqnarrayXCR[#1]}% + \let\cref@orig@IEEEyessubnumber\IEEEyessubnumber% + \def\IEEEyessubnumber{% + \if@IEEEeqnarrayISinner% + \if@IEEElastlinewassubequation\else% + \setcounter{IEEEsubequation}{0}% + \refstepcounter{IEEEsubequation}% + \fi% + \fi% + \cref@orig@IEEEyessubnumber}% + \@addtoreset{IEEEsubequation}{equation}% + \crefalias{IEEEsubequation}{equation}% +}{}% end of \@ifpackageloaded{IEEEtrantools} +\@ifpackageloaded{breqn}{% + \PackageInfo{cleveref}{`breqn' support loaded}% + \let\cref@old@eq@setnumber\eq@setnumber% + \def\eq@setnumber{% + \cref@old@eq@setnumber% + \cref@constructprefix{equation}{\cref@result}% + \protected@xdef\cref@currentlabel{% + [equation][\arabic{equation}][\cref@result]\p@equation\theequation}}% +}{}% end of \@ifpackageloaded{breqn} + \@ifpackageloaded{algorithmicx}{% + \PackageInfo{cleveref}{`algorithmicx' support loaded}% + \g@addto@macro\ALG@step{% + \addtocounter{ALG@line}{-1}% + \refstepcounter{ALG@line}% + \expandafter\@cref@getprefix\cref@currentlabel\@nil\cref@currentprefix% + \xdef\cref@currentprefix{\cref@currentprefix}}% + \g@addto@macro\ALG@beginalgorithmic{% + \def\cref@currentlabel{% + [line][\arabic{ALG@line}][\cref@currentprefix]\theALG@line}}% + }{}% end of \@ifpackageloaded{algorithmicx} + \@ifpackageloaded{listings}{% + \PackageInfo{cleveref}{`listings' support loaded}% + \crefalias{lstlisting}{listing}% + \crefalias{lstnumber}{line}% + \lst@AddToHook{Init}{% + \def\cref@currentlabel{% + [line][\arabic{lstnumber}][\cref@currentprefix]\thelstnumber}}% + \lst@AddToHook{EveryPar}{% + \expandafter\@cref@getprefix\cref@currentlabel\@nil\cref@currentprefix% + \xdef\cref@currentprefix{\cref@currentprefix}}% + }{}% end of \@ifpackageloaded{listings} + \@ifpackageloaded{algorithm2e}{% + \PackageInfo{cleveref}{`algorithm2e' support loaded}% + \crefalias{algocf}{algorithm}% + \crefalias{algocfline}{line}% + \crefalias{AlgoLine}{line}% + \let\cref@old@algocf@nl@sethref\algocf@nl@sethref% + \renewcommand{\algocf@nl@sethref}[1]{% + \cref@old@algocf@nl@sethref{#1}% + \cref@constructprefix{AlgoLine}{\cref@result}% + \@ifundefined{cref@AlgoLine@alias}% + {\def\@tempa{AlgoLine}}% + {\def\@tempa{\csname cref@AlgoLine@alias\endcsname}}% + \xdef\cref@currentlabel{% + [\@tempa][\arabic{AlgoLine}][\cref@result]% + \csname p@AlgoLine\endcsname\csname theAlgoLine\endcsname}}% + }{}% end of \@ifpackageloaded{algorithm2e} +\@ifpackageloaded{subfig}{% + \PackageInfo{cleveref}{`subfig' support loaded}% + \AtBeginDocument{% + \let\cref@old@refsteponlycounter\refsteponlycounter% + \def\refsteponlycounter{% + \@ifnextchar[\refstepcounter@optarg% + \cref@old@refsteponlycounter%] + }}% + \def\sf@sub@label(#1){% + \ifhyperrefloaded% + \protected@edef\@currentlabelname{% + \expandafter\strip@period #1\relax.\relax\@@@}% + \fi% + \let\sf@oldlabel\cref@old@label% + \let\cref@old@label\sf@@sub@label% + \cref@label}% + }{}% end of \@ifpackageloaded{subfig} +\@ifclassloaded{memoir}{% + \AtBeginDocument{% + \def\sf@memsub@label(#1){% + \protected@edef\mem@currentlabelname{#1}% + \let\@memoldlabel\cref@old@label% + \let\cref@old@label\sf@@memsub@label% + \cref@label}}% +}{}% +\@ifpackageloaded{caption}{% + \@ifpackagelater{caption}{2011/08/19}{}{% + \PackageInfo{cleveref}{`caption' support loaded}% + \let\cref@old@caption@xlabel\caption@xlabel% + \def\caption@xlabel{% + \let\cref@ORI@label\cref@old@label% + \let\cref@old@label\cref@old@caption@xlabel% + \let\caption@ORI@label\cref@ORI@label% + \cref@label}% + }% end of \@ifpackagelater + }{}% end of \@ifpackageloaded{caption} +\@ifpackageloaded{aliascnt}{% + \PackageInfo{cleveref}{`aliascnt' support loaded}% + \let\cref@old@newaliascnt\newaliascnt% + \renewcommand*{\newaliascnt}[2]{% + \cref@old@newaliascnt{#1}{#2}% + \cref@resetby{#2}{\cref@result}% + \ifx\cref@result\relax\else% + \@addtoreset{#1}{\cref@result}% + \fi}% + }{}% end of \@ifpackageloaded{aliascnt} +\DeclareOption{poorman}{% + \PackageInfo{cleveref}{option `poorman' loaded}% + \gdef\cref@poorman@text{}% + \AtBeginDocument{% + \newwrite\@crefscript% + \immediate\openout\@crefscript=\jobname.sed}% + \newif\if@cref@switched@language% + \@ifpackageloaded{babel}{% + \AtBeginDocument{% + \let\cref@old@select@language\select@language% + \def\select@language{% + \@cref@switched@languagetrue% + \cref@writelanguagerules% + \cref@old@select@language}% + \let\cref@old@foreign@language\foreign@language% + \def\foreign@language{% + \@cref@switched@languagetrue% + \cref@writelanguagerules% + \cref@old@foreign@language}% + \edef\cref@inputlineno{\the\inputlineno}}% + }{}% + \AtEndDocument{% + \let\select@language\cref@old@select@language% + \let\foreign@language\cref@old@foreign@language% + \cref@writelanguagerules}% + \def\cref@writelanguagerules{% + \begingroup% + \if@cref@switched@language% + \edef\@address{\cref@inputlineno,\the\inputlineno}% + \else% + \def\@address{}% + \fi% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefrangeconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefrangeconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefrangepreconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefrangepreconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefrangepostconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefrangepostconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefpairconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefpairconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefmiddleconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefmiddleconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \creflastconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\creflastconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefpairgroupconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefpairgroupconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \crefmiddlegroupconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\crefmiddlegroupconjunction}}% + \expandafter\cref@writescript\@tempa% + \expandafter\def\expandafter\cref@poorman@text\expandafter{% + \creflastgroupconjunction}% + \expandafter\def\expandafter\@tempa\expandafter{% + \expandafter{\@address}{\string\creflastgroupconjunction}}% + \expandafter\cref@writescript\@tempa% + \let\@tempstack\cref@label@types% + \cref@isstackfull{\@tempstack}% + \@whilesw\if@cref@stackfull\fi{% + \edef\@tempa{\cref@stack@top{\@tempstack}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\cref@poorman@text% + \expandafter\expandafter\expandafter{% + \csname cref@\@tempa @name\endcsname}% + \edef\@tempa{% + \string\cref@\expandafter\noexpand\@tempa @name\space}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempa% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter{% + \expandafter\@address\expandafter}% + \expandafter{\@tempa}}% + \expandafter\cref@writescript\@tempa% + \edef\@tempa{\cref@stack@top{\@tempstack}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\cref@poorman@text% + \expandafter\expandafter\expandafter{% + \csname cref@\@tempa @name@plural\endcsname}% + \edef\@tempa{% + \string\cref@\expandafter\noexpand\@tempa% + @name@plural\space}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempa% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter{% + \expandafter\@address\expandafter}% + \expandafter{\@tempa}}% + \expandafter\cref@writescript\@tempa% + \edef\@tempa{\cref@stack@top{\@tempstack}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\cref@poorman@text% + \expandafter\expandafter\expandafter{% + \csname Cref@\@tempa @name\endcsname}% + \edef\@tempa{% + \string\Cref@\expandafter\noexpand\@tempa @name\space}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempa% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter% + {\expandafter\@address\expandafter}% + \expandafter{\@tempa}}% + \expandafter\cref@writescript\@tempa% + \edef\@tempa{\cref@stack@top{\@tempstack}}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\cref@poorman@text% + \expandafter\expandafter\expandafter{% + \csname Cref@\@tempa @name@plural\endcsname}% + \edef\@tempa{% + \string\Cref@\expandafter\noexpand\@tempa% + @name@plural\space}% + \expandafter\expandafter\expandafter\def% + \expandafter\expandafter\expandafter\@tempa% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter% + {\expandafter\@address\expandafter}% + \expandafter{\@tempa}}% + \expandafter\cref@writescript\@tempa% + \cref@stack@pop{\@tempstack}% + \cref@isstackfull{\@tempstack}}% + \endgroup% + \edef\cref@inputlineno{\the\inputlineno}}% + \AtEndDocument{% + \immediate\closeout\@crefscript% + \newread\@crefscript% + \immediate\openin\@crefscript=\jobname.sed% + \begingroup% + \newif\if@not@eof% + \def\@eof{\par }% + \catcode`.=13 \catcode`*=13% + \catcode`[=13 \catcode`]=13% + \catcode`^=13 \catcode`$=13 %$ + \catcode`\=0 \catcode`<=1 \catcode`>=2% + \catcode`\\=13 \catcode`\{=12 \catcode`\}=12 \catcode`_=12% + \lccode`/=92% + \lccode`~=92\lowercase{\def~{\string/\string/}}% + \lccode`~=42\lowercase{\def~{\string/\string*}}% + \lccode`~=46\lowercase{\def~{\string/\string.}}% + \lccode`~=91\lowercase{\def~{\string/\string[}}% + \lccode`~=93\lowercase{\def~{\string/\string]}}% + \lccode`~=94\lowercase{\def~{\string/\string^}}% + \lccode`~=36\lowercase{\def~{\string/\string$}}% $ + \lccode`~=0 \lccode`/=0 \catcode`~=12% + \def\cref@poorman@text{}% + \immediate\read\@crefscript to \@tempa% + \ifx\@tempa\@eof% + \@not@eoffalse% + \else% + \@not@eoftrue% + \edef\@tempa{\@tempa}% + \fi% + \@whilesw\if@not@eof\fi{% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \immediate\read\@crefscript to \@tempa% + \ifx\@tempa\@eof% + \@not@eoffalse% + \else% + \@not@eoftrue% + \edef\@tempa{\@tempa}% + \fi}% + \endgroup% + \immediate\closein\@crefscript% + \begingroup% + \lccode`|=92 \lccode`<=123 \lccode`>=125 \lccode`C=67% + \lowercase{\def\@tempa{%[| + s/||label|[[^]]*|]/||label/g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||usepackage|(|[.*|]|)|<0,1|>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]refformat<.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]refrangeformat<.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]refmultiformat<.*><.*><.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||[cC]refrangemultiformat<.*><.*><.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]refname<.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]reflabelformat<.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]refrangelabelformat<.*><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||[cC]refdefaultlabelformat<.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||renewcommand<||crefpairconjunction><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||renewcommand<||crefpairgroupconjunction><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||renewcommand<||crefmiddleconjunction><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||renewcommand<||crefmiddlegroupconjunction><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||renewcommand<||creflastconjunction><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{% + s/||renewcommand<||creflastgroupconjunction><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||renewcommand<||[cC]ref><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \lowercase{\edef\@tempa{s/||renewcommand<||[cC]refrange><.*>//g}}% + \expandafter\g@addto@macro\expandafter% + \cref@poorman@text\expandafter{\@tempa^^J}% + \endgroup% + \newwrite\@crefscript% + \immediate\openout\@crefscript=\jobname.sed% + \immediate\write\@crefscript{\cref@poorman@text}% + \immediate\closeout\@crefscript% + }% end of \AtEndDocument + \def\cref@getmeaning#1{\expandafter\@cref@getmeaning\meaning#1\@nil}% + \def\@cref@getmeaning#1->#2\@nil{#2}% + \def\cref@writescript#1#2{% + \edef\@tempa{\cref@getmeaning{\cref@poorman@text}}% + \immediate\write\@crefscript{#1 s/#2/\@tempa/g}}% + \if@cref@hyperrefloaded\relax% hyperref loaded + \def\@crefnostar#1#2{% + \gdef\cref@poorman@text{}% + \@cref{#1}{#2}% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{\string\cref\string{#2\string}}% + \else% + \cref@writescript{}{\string\Cref\string{#2\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@crefstar#1#2{% + \gdef\cref@poorman@text{}% + \@crefstarredtrue\@cref{#1}{#2}\@crefstarredfalse% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{\string\cref*\string{#2\string}}% + \else% + \cref@writescript{}{\string\Cref*\string{#2\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@crefrangenostar#1#2#3{% + \gdef\cref@poorman@text{}% + \@setcrefrange{#2}{#3}{#1}{}% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{% + \string\crefrange\string{#2\string}\string{#3\string}}% + \else% + \cref@writescript{}{% + \string\Crefrange\string{#2\string}\string{#3\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@crefrangestar#1#2#3{% + \gdef\cref@poorman@text{}% + \@crefstarredtrue\@setcrefrange{#2}{#3}{#1}{}\@crefstarredfalse% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{% + \string\crefrange*\string{#2\string}\string{#3\string}}% + \else% + \cref@writescript{}{% + \string\Crefrange*\string{#2\string}\string{#3\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@cpagerefnostar#1#2{% + \gdef\cref@poorman@text{}% + \@cpageref{#1}{#2}{\@setcpageref}{\@setcpagerefrange}% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{\string\cpageref\string{#2\string}}% + \else% + \cref@writescript{}{\string\Cpageref\string{#2\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@cpagerefstar#1#2{% + \gdef\cref@poorman@text{}% + \@crefstarredtrue% + \@cpageref{#1}{#2}{\@setcpageref}{\@setcpagerefrange}% + \@crefstarredfalse% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{\string\cpageref*\string{#2\string}}% + \else% + \cref@writescript{}{\string\Cpageref*\string{#2\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@cpagerefrangenostar#1#2#3{% + \gdef\cref@poorman@text{}% + \@setcpagerefrange{#2}{#3}{#1}{}% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{% + \string\cpagerefrange\string{#2\string}\string{#3\string}}% + \else% + \cref@writescript{}{% + \string\Cpagerefrange\string{#2\string}\string{#3\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@cpagerefrangestar#1#2#3{% + \gdef\cref@poorman@text{}% + \@crefstarredtrue% + \@setcpagerefrange{#2}{#3}{#1}{}% + \@crefstarredfalse% + \def\@tempa##1##2\@nil{% + \if##1c% + \cref@writescript{}{% + \string\cpagerefrange*\string{#2\string}\string{#3\string}}% + \else% + \cref@writescript{}{% + \string\Cpagerefrange*\string{#2\string}\string{#3\string}}% + \fi}% + \@tempa#1\@nil}% + \def\@labelcrefnostar#1{% + \gdef\cref@poorman@text{}% + \@cref{labelcref}{#1}% + \cref@writescript{}{\string\labelcref\string{#1\string}}}% + \def\@labelcrefstar#1{% + \gdef\cref@poorman@text{}% + \@crefstarredtrue% + \@cref{labelcref}{#1}% + \@crefstarredfalse% + \cref@writescript{}{\string\labelcref*\string{#1\string}}}% + \def\@labelcpagerefnostar#1{% + \gdef\cref@poorman@text{}% + \@cpageref{labelcref}{#1}{\@setcpageref}{\@setcpagerefrange}% + \cref@writescript{}{\string\labelcpageref\string{#1\string}}}% + \def\@labelcpagerefstar#1{% + \gdef\cref@poorman@text{}% + \@crefstarredtrue% + \@cpageref{labelcref}{#1}{\@setcpageref}{\@setcpagerefrange}% + \@crefstarredfalse% + \cref@writescript{}{\string\labelcpageref*\string{#1\string}}}% + \else% hyperref not loaded + \DeclareRobustCommand{\cref}[1]{% + \gdef\cref@poorman@text{}% + \@cref{cref}{#1}% + \cref@writescript{}{\string\cref\string{#1\string}}}% + \DeclareRobustCommand{\Cref}[1]{% + \gdef\cref@poorman@text{}% + \@cref{Cref}{#1}% + \cref@writescript{}{\string\Cref\string{#1\string}}}% + \DeclareRobustCommand{\crefrange}[2]{% + \gdef\cref@poorman@text{}% + \@setcrefrange{#1}{#2}{cref}{}% + \cref@writescript{}{% + \string\crefrange\string{#1\string}\string{#2\string}}}% + \DeclareRobustCommand{\Crefrange}[2]{% + \gdef\cref@poorman@text{}% + \@setcrefrange{#1}{#2}{Cref}{}% + \cref@writescript{}{% + \string\Crefrange\string{#1\string}\string{#2\string}}}% + \DeclareRobustCommand{\cpageref}[1]{% + \gdef\cref@poorman@text{}% + \@cpageref{cref}{#1}{\@setcpageref}{\@setcpagerefrange}% + \cref@writescript{}{\string\cpageref\string{#1\string}}}% + \DeclareRobustCommand{\Cpageref}[1]{% + \gdef\cref@poorman@text{}% + \@cpageref{Cref}{#1}{\@setcpageref}{\@setcpagerefrange}% + \cref@writescript{}{\string\Cpageref\string{#1\string}}}% + \DeclareRobustCommand{\cpagerefrange}[2]{% + \gdef\cref@poorman@text{}% + \@setcpagerefrange{#1}{#2}{cref}{}% + \cref@writescript{}{% + \string\cpagerefrange\string{#1\string}\string{#2\string}}}% + \DeclareRobustCommand{\Cpagerefrange}[2]{% + \gdef\cref@poorman@text{}% + \@setcpagerefrange{#1}{#2}{Cref}{}% + \cref@writescript{}{% + \string\Cpagerefrange\string{#1\string}\string{#2\string}}}% + \DeclareRobustCommand{\labelcref}[1]{% + \gdef\cref@poorman@text{}% + \@cref{labelcref}{#1}% + \cref@writescript{}{\string\labelcref\string{#1\string}}}% + \DeclareRobustCommand{\labelcpageref}[1]{% + \gdef\cref@poorman@text{}% + \@cpageref{labelcref}{#1}{\@setcpageref}{\@setcpagerefrange}% + \cref@writescript{}{\string\labelcpageref\string{#1\string}}}% + \fi% end of test for hyperref + \DeclareRobustCommand{\namecref}[1]{% + \gdef\cref@poorman@text{}% + \@setnamecref{cref}{#1}{}{}% + \cref@writescript{}{\string\namecref\string{#1\string}}}% + \DeclareRobustCommand{\nameCref}[1]{% + \gdef\cref@poorman@text{}% + \@setnamecref{Cref}{#1}{}{}% + \cref@writescript{}{\string\nameCref\string{#1\string}}}% + \DeclareRobustCommand{\lcnamecref}[1]{% + \gdef\cref@poorman@text{}% + \@setnamecref{Cref}{#1}{}{\MakeLowercase}% + \cref@writescript{}{\string\lcnamecref\string{#1\string}}}% + \DeclareRobustCommand{\namecrefs}[1]{% + \gdef\cref@poorman@text{}% + \@setnamecref{cref}{#1}{@plural}{}% + \cref@writescript{}{\string\namecrefs\string{#1\string}}}% + \DeclareRobustCommand{\nameCrefs}[1]{% + \gdef\cref@poorman@text{}% + \@setnamecref{Cref}{#1}{@plural}{}% + \cref@writescript{}{\string\nameCrefs\string{#1\string}}}% + \DeclareRobustCommand{\lcnamecrefs}[1]{% + \gdef\cref@poorman@text{}% + \@setnamecref{Cref}{#1}{@plural}{\MakeLowercase}% + \cref@writescript{}{\string\lcnamecrefs\string{#1\string}}}% + \def\@setcref@pairgroupconjunction{% + \crefpairgroupconjunction% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{\crefpairgroupconjunction}}% + \def\@setcref@middlegroupconjunction{% + \crefmiddlegroupconjunction% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{\crefmiddlegroupconjunction}}% + \def\@setcref@lastgroupconjunction{% + \creflastgroupconjunction% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{\creflastgroupconjunction}}% + \let\old@@setcref\@@setcref% + \let\old@@setcrefrange\@@setcrefrange% + \let\old@@setcpageref\@@setcpageref% + \let\old@@setcpagerefrange\@@setcpagerefrange% + \if@cref@hyperrefloaded\relax% hyperref loaded + \def\@@setcref#1#2{% + \old@@setcref{#1}{#2}% + \if@crefstarred% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\ref*{#2}}{}{}}% + \else% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\ref{#2}}{}{}}% + \fi}% + \def\@@setcrefrange#1#2#3{% + \old@@setcrefrange{#1}{#2}{#3}% + \if@crefstarred% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\ref*{#2}}{\ref*{#3}}{}{}{}{}}% + \else% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\ref{#2}}{\ref{#3}}{}{}{}{}}% + \fi}% + \def\@@setcpageref#1#2{% + \old@@setcpageref{#1}{#2}% + \if@crefstarred% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\pageref*{#2}}{}{}}% + \else% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\pageref{#2}}{}{}}% + \fi}% + \def\@@setcpagerefrange#1#2#3{% + \old@@setcpagerefrange{#1}{#2}{#3}% + \if@crefstarred% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\pageref*{#2}}{\pageref*{#3}}{}{}{}{}}% + \else% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{#1{\pageref{#2}}{\pageref{#3}}{}{}{}{}}% + \fi}% + \else% hyperref not loaded + \def\@@setcref#1#2{% + \old@@setcref{#1}{#2}% + \expandafter\g@addto@macro\expandafter{% + \expandafter\cref@poorman@text\expandafter}% + \expandafter{#1{\ref{#2}}{}{}}}% + \def\@@setcrefrange#1#2#3{% + \old@@setcrefrange{#1}{#2}{#3}% + \expandafter\g@addto@macro% + \expandafter{\expandafter\cref@poorman@text\expandafter}% + \expandafter{#1{\ref{#2}}{\ref{#3}}{}{}{}{}}}% + \def\@@setcpageref#1#2{% + \old@@setcpageref{#1}{#2}% + \expandafter\g@addto@macro\expandafter{% + \expandafter\cref@poorman@text\expandafter}% + \expandafter{#1{\pageref{#2}}{}{}}}% + \def\@@setcpagerefrange#1#2#3{% + \old@@setcpagerefrange{#1}{#2}{#3}% + \expandafter\g@addto@macro% + \expandafter{\expandafter\cref@poorman@text\expandafter}% + \expandafter{#1{\pageref{#2}}{\pageref{#3}}{}{}{}{}}}% + \fi% end of hyperref test + \let\old@@setnamecref\@@setnamecref% + \def\@@setnamecref#1#2{% + \old@@setnamecref{#1}{#2}% + \expandafter\def\expandafter\@tempa\expandafter{#1}% + \def\@tempb{#2}% + \expandafter\expandafter\expandafter\g@addto@macro% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter\cref@poorman@text% + \expandafter\expandafter\expandafter}% + \expandafter\expandafter\expandafter{\expandafter\@tempb\@tempa}}% + \@ifpackageloaded{varioref}{% + \AtBeginDocument{% + \def\@@vpageref#1[#2]#3{% + \gdef\cref@poorman@text{}% + \cref@@vpageref{#1}[#2]{#3}% + \cref@writescript{}{\string\vpageref\string{#3\string}}}% + \let\old@cref@vref\cref@vref% + \def\cref@vref#1#2{% + \gdef\cref@poorman@text{}% + \old@cref@vref{#1}{#2}% + \def\@tempa##1##2\@nil{% + \if##1c% + \if@crefstarred% + \cref@writescript{}{\string\vref*\string{#2\string}}% + \else% + \cref@writescript{}{\string\vref\string{#2\string}}% + \fi% + \else% + \if@crefstarred% + \cref@writescript{}{\string\Vref*\string{#2\string}}% + \else% + \cref@writescript{}{\string\Vref\string{#2\string}}% + \fi% + \fi}% + \@tempa#1\@nil}% + \let\old@cref@fullref\cref@fullref% + \def\cref@fullref#1#2{% + \gdef\cref@poorman@text{}% + \old@cref@fullref{#1}{#2}% + \def\@tempa##1##2\@nil{% + \if##1c% + \if@crefstarred% + \cref@writescript{}{\string\fullref*\string{#2\string}}% + \else% + \cref@writescript{}{\string\fullref\string{#2\string}}% + \fi% + \else% + \if@crefstarred% + \cref@writescript{}{\string\Fullref*\string{#2\string}}% + \else% + \cref@writescript{}{\string\Fullref\string{#2\string}}% + \fi% + \fi}% + \@tempa#1\@nil}% + \let\old@cref@vrefrange\cref@vrefrange% + \def\cref@vrefrange#1#2#3{% + \gdef\cref@poorman@text{}% + \old@cref@vrefrange{#1}{#2}{#3}% + \def\@tempa##1##2\@nil{% + \if##1c% + \if@crefstarred% + \cref@writescript{}{% + \string\vrefrange*\string{#2\string}\string{#3\string}}% + \else% + \cref@writescript{}{% + \string\vrefrange\string{#2\string}\string{#3\string}}% + \fi% + \else% + \if@crefstarred% + \cref@writescript{}{% + \string\Vrefrange*\string{#2\string}\string{#3\string}}% + \else% + \cref@writescript{}{% + \string\Vrefrange\string{#2\string}\string{#3\string}}% + \fi% + \fi}% + \@tempa#1\@nil}% + \def\@@setvpageref#1[#2]#3{% + \cref@old@@vpageref{#1}[#2]{#3}% + \g@addto@macro\cref@poorman@text{\vpageref{#3}}}% + \def\@@setvpagerefrange[#1]#2#3{% + \vpagerefrange[#1]{#2}{#3}% + \g@addto@macro\cref@poorman@text{\vpagerefrange{#2}{#3}}}% + \def\@@setfullpageref#1{% + \reftextfaraway{#1}% + \g@addto@macro\cref@poorman@text{\reftextfaraway{#1}}}% + \def\@@setfullpagerefrange#1#2{% + \reftextpagerange{#1}{#2}% + \g@addto@macro\cref@poorman@text{\reftextpagerange{#1}{#2}}}% + \def\@setcref@space{ % space here is deliberate + \g@addto@macro\cref@poorman@text{ }}% + \def\@setcref@pairconjunction{% + \crefpairconjunction% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{\crefpairconjunction}}% + \def\@setcref@middleconjunction{% + \crefmiddleconjunction% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{\crefmiddleconjunction}}% + \def\@setcref@lastconjunction{% + \creflastconjunction% + \expandafter\g@addto@macro\expandafter\cref@poorman@text% + \expandafter{\creflastconjunction}}% + }% end of \AtBeginDocument + }{}% end of \@ifpackageloaded{varioref} +}% end of poorman option +\newif\if@cref@sort% +\newif\if@cref@compress% +\@cref@sorttrue% +\@cref@compresstrue% +\DeclareOption{sort}{% + \PackageInfo{cleveref}{sorting but not compressing references}% + \@cref@sorttrue% + \@cref@compressfalse}% +\DeclareOption{compress}{% + \PackageInfo{cleveref}{compressing but not sorting references}% + \@cref@sortfalse% + \@cref@compresstrue}% +\DeclareOption{sort&compress}{% + \PackageInfo{cleveref}{sorting and compressing references}% + \@cref@sorttrue% + \@cref@compresstrue}% +\DeclareOption{nosort}{% + \PackageInfo{cleveref}{neither sorting nor compressing references}% + \@cref@sortfalse% + \@cref@compressfalse}% +\newif\if@cref@capitalise% +\@cref@capitalisefalse% +\DeclareOption{capitalise}{% + \PackageInfo{cleveref}{always capitalise cross-reference names}% + \@cref@capitalisetrue}% +\DeclareOption{capitalize}{% + \PackageInfo{cleveref}{always capitalise cross-reference names}% + \@cref@capitalisetrue}% +\newif\if@cref@nameinlink% +\@cref@nameinlinkfalse% +\DeclareOption{nameinlink}{% + \PackageInfo{cleveref}{include cross-reference names in hyperlinks}% + \@cref@nameinlinktrue}% +\newif\if@cref@abbrev% +\@cref@abbrevtrue% +\DeclareOption{noabbrev}{% + \PackageInfo{cleveref}{no abbreviation of names}% + \@cref@abbrevfalse}% +\def\cref@addto#1#2{% + \@temptokena{#2}% + \ifx#1\undefined% + \edef#1{\the\@temptokena}% + \else% + \toks@\expandafter{#1}% + \edef#1{\the\toks@\the\@temptokena}% + \fi% + \@temptokena{}\toks@\@temptokena}% +\@onlypreamble\cref@addto% +\long\def\cref@addlanguagedefs#1#2{% + \@ifpackageloaded{polyglossia}% + {\AtBeginDocument{% + \ifcsdef{#1@loaded}{% + \expandafter\cref@addto\csname captions#1\endcsname{#2}}{}}}% + {\@ifpackageloaded{babel}{% + \edef\@curroptions{\@ptionlist{\@currname.\@currext}}% + \@expandtwoargs\in@{,#1,}{,\@classoptionslist,\@curroptions,}% + \ifin@% + \AtBeginDocument{% + \expandafter\cref@addto\csname extras#1\endcsname{#2}}% + \fi}{}}}% +\DeclareOption{english}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ to\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ and\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ and\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ and\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{, and\nobreakspace}% + % + \Crefname@preamble{equation}{Equation}{Equations}% + \Crefname@preamble{figure}{Figure}{Figures}% + \Crefname@preamble{table}{Table}{Tables}% + \Crefname@preamble{page}{Page}{Pages}% + \Crefname@preamble{part}{Part}{Parts}% + \Crefname@preamble{chapter}{Chapter}{Chapters}% + \Crefname@preamble{section}{Section}{Sections}% + \Crefname@preamble{appendix}{Appendix}{Appendices}% + \Crefname@preamble{enumi}{Item}{Items}% + \Crefname@preamble{footnote}{Footnote}{Footnotes}% + \Crefname@preamble{theorem}{Theorem}{Theorems}% + \Crefname@preamble{lemma}{Lemma}{Lemmas}% + \Crefname@preamble{corollary}{Corollary}{Corollaries}% + \Crefname@preamble{proposition}{Proposition}{Propositions}% + \Crefname@preamble{definition}{Definition}{Definitions}% + \Crefname@preamble{result}{Result}{Results}% + \Crefname@preamble{example}{Example}{Examples}% + \Crefname@preamble{remark}{Remark}{Remarks}% + \Crefname@preamble{note}{Note}{Notes}% + \Crefname@preamble{algorithm}{Algorithm}{Algorithms}% + \Crefname@preamble{listing}{Listing}{Listings}% + \Crefname@preamble{line}{Line}{Lines}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname@preamble{equation}{Eq.}{Eqs.}% + \crefname@preamble{figure}{Fig.}{Figs.}% + \else% + \crefname@preamble{equation}{Equation}{Equations}% + \crefname@preamble{figure}{Figure}{Figures}% + \fi% + \crefname@preamble{page}{Page}{Pages}% + \crefname@preamble{table}{Table}{Tables}% + \crefname@preamble{part}{Part}{Parts}% + \crefname@preamble{chapter}{Chapter}{Chapters}% + \crefname@preamble{section}{Section}{Sections}% + \crefname@preamble{appendix}{Appendix}{Appendices}% + \crefname@preamble{enumi}{Item}{Items}% + \crefname@preamble{footnote}{Footnote}{Footnotes}% + \crefname@preamble{theorem}{Theorem}{Theorems}% + \crefname@preamble{lemma}{Lemma}{Lemmas}% + \crefname@preamble{corollary}{Corollary}{Corollaries}% + \crefname@preamble{proposition}{Proposition}{Propositions}% + \crefname@preamble{definition}{Definition}{Definitions}% + \crefname@preamble{result}{Result}{Results}% + \crefname@preamble{example}{Example}{Examples}% + \crefname@preamble{remark}{Remark}{Remarks}% + \crefname@preamble{note}{Note}{Notes}% + \crefname@preamble{algorithm}{Algorithm}{Algorithms}% + \crefname@preamble{listing}{Listing}{Listings}% + \crefname@preamble{line}{Line}{Lines}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname@preamble{equation}{eq.}{eqs.}% + \crefname@preamble{figure}{fig.}{figs.}% + \else% + \crefname@preamble{equation}{equation}{equations}% + \crefname@preamble{figure}{figure}{figures}% + \fi% + \crefname@preamble{page}{page}{pages}% + \crefname@preamble{table}{table}{tables}% + \crefname@preamble{part}{part}{parts}% + \crefname@preamble{chapter}{chapter}{chapters}% + \crefname@preamble{section}{section}{sections}% + \crefname@preamble{appendix}{appendix}{appendices}% + \crefname@preamble{enumi}{item}{items}% + \crefname@preamble{footnote}{footnote}{footnotes}% + \crefname@preamble{theorem}{theorem}{theorems}% + \crefname@preamble{lemma}{lemma}{lemmas}% + \crefname@preamble{corollary}{corollary}{corollaries}% + \crefname@preamble{proposition}{proposition}{propositions}% + \crefname@preamble{definition}{definition}{definitions}% + \crefname@preamble{result}{result}{results}% + \crefname@preamble{example}{example}{examples}% + \crefname@preamble{remark}{remark}{remarks}% + \crefname@preamble{note}{note}{notes}% + \crefname@preamble{algorithm}{algorithm}{algorithms}% + \crefname@preamble{listing}{listing}{listings}% + \crefname@preamble{line}{line}{lines}% + \fi% + \def\cref@language{english}% + }}% end \AtBeginDocument and \DeclareOption +\cref@addlanguagedefs{english}{% + \PackageInfo{cleveref}{loaded `english' language definitions}% + \renewcommand{\crefrangeconjunction}{ to\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ and\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ and\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ and\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{, and\nobreakspace}% + % + \Crefname{equation}{Equation}{Equations}% + \Crefname{figure}{Figure}{Figures}% + \Crefname{subfigure}{Figure}{Figures}% + \Crefname{table}{Table}{Tables}% + \Crefname{subtable}{Table}{Tables}% + \Crefname{page}{Page}{Pages}% + \Crefname{part}{Part}{Parts}% + \Crefname{chapter}{Chapter}{Chapters}% + \Crefname{section}{Section}{Sections}% + \Crefname{subsection}{Section}{Sections}% + \Crefname{subsubsection}{Section}{Sections}% + \Crefname{appendix}{Appendix}{Appendices}% + \Crefname{subappendix}{Appendix}{Appendices}% + \Crefname{subsubappendix}{Appendix}{Appendices}% + \Crefname{subsubsubappendix}{Appendix}{Appendices}% + \Crefname{enumi}{Item}{Items}% + \Crefname{enumii}{Item}{Items}% + \Crefname{enumiii}{Item}{Items}% + \Crefname{enumiv}{Item}{Items}% + \Crefname{enumv}{Item}{Items}% + \Crefname{footnote}{Footnote}{Footnotes}% + \Crefname{theorem}{Theorem}{Theorems}% + \Crefname{lemma}{Lemma}{Lemmas}% + \Crefname{corollary}{Corollary}{Corollaries}% + \Crefname{proposition}{Proposition}{Propositions}% + \Crefname{definition}{Definition}{Definitions}% + \Crefname{result}{Result}{Results}% + \Crefname{example}{Example}{Examples}% + \Crefname{remark}{Remark}{Remarks}% + \Crefname{note}{Note}{Notes}% + \Crefname{algorithm}{Algorithm}{Algorithms}% + \Crefname{listing}{Listing}{Listings}% + \Crefname{line}{Line}{Lines}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname{equation}{Eq.}{Eqs.}% + \crefname{figure}{Fig.}{Figs.}% + \crefname{subfigure}{Fig.}{Figs.}% + \else% + \crefname{equation}{Equation}{Equations}% + \crefname{figure}{Figure}{Figures}% + \crefname{subfigure}{Figure}{Figures}% + \fi% + \crefname{page}{Page}{Pages}% + \crefname{table}{Table}{Tables}% + \crefname{subtable}{Table}{Tables}% + \crefname{part}{Part}{Parts}% + \crefname{chapter}{Chapter}{Chapters}% + \crefname{section}{Section}{Sections}% + \crefname{subsection}{Section}{Sections}% + \crefname{subsubsection}{Section}{Sections}% + \crefname{appendix}{Appendix}{Appendices}% + \crefname{subappendix}{Appendix}{Appendices}% + \crefname{subsubappendix}{Appendix}{Appendices}% + \crefname{subsubsubappendix}{Appendix}{Appendices}% + \crefname{enumi}{Item}{Items}% + \crefname{enumii}{Item}{Items}% + \crefname{enumiii}{Item}{Items}% + \crefname{enumiv}{Item}{Items}% + \crefname{enumv}{Item}{Items}% + \crefname{footnote}{Footnote}{Footnotes}% + \crefname{theorem}{Theorem}{Theorems}% + \crefname{lemma}{Lemma}{Lemmas}% + \crefname{corollary}{Corollary}{Corollaries}% + \crefname{proposition}{Proposition}{Propositions}% + \crefname{definition}{Definition}{Definitions}% + \crefname{result}{Result}{Results}% + \crefname{example}{Example}{Examples}% + \crefname{remark}{Remark}{Remarks}% + \crefname{note}{Note}{Notes}% + \crefname{algorithm}{Algorithm}{Algorithms}% + \crefname{listing}{Listing}{Listings}% + \crefname{line}{Line}{Lines}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname{equation}{eq.}{eqs.}% + \crefname{figure}{fig.}{figs.}% + \crefname{subfigure}{fig.}{figs.}% + \else% + \crefname{equation}{equation}{equations}% + \crefname{figure}{figure}{figures}% + \crefname{subfigure}{figure}{figures}% + \fi% + \crefname{table}{table}{tables}% + \crefname{subtable}{table}{tables}% + \crefname{page}{page}{pages}% + \crefname{part}{part}{parts}% + \crefname{chapter}{chapter}{chapters}% + \crefname{section}{section}{sections}% + \crefname{subsection}{section}{sections}% + \crefname{subsubsection}{section}{sections}% + \crefname{appendix}{appendix}{appendices}% + \crefname{subappendix}{appendix}{appendices}% + \crefname{subsubappendix}{appendix}{appendices}% + \crefname{subsubsubappendix}{appendix}{appendices}% + \crefname{enumi}{item}{items}% + \crefname{enumii}{item}{items}% + \crefname{enumiii}{item}{items}% + \crefname{enumiv}{item}{items}% + \crefname{enumv}{item}{items}% + \crefname{footnote}{footnote}{footnotes}% + \crefname{theorem}{theorem}{theorems}% + \crefname{lemma}{lemma}{lemmas}% + \crefname{corollary}{corollary}{corollaries}% + \crefname{proposition}{proposition}{propositions}% + \crefname{definition}{definition}{definitions}% + \crefname{result}{result}{results}% + \crefname{example}{example}{examples}% + \crefname{remark}{remark}{remarks}% + \crefname{note}{note}{notes}% + \crefname{algorithm}{algorithm}{algorithms}% + \crefname{listing}{listing}{listings}% + \crefname{line}{line}{lines}% + \fi}% end \cref@addlangagedefs +\DeclareOption{german}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ bis\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ und\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ und\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ und\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ und\nobreakspace}% + % + \Crefname@preamble{equation}{Gleichung}{Gleichungen}% + \Crefname@preamble{figure}{Abbildung}{Abbildungen}% + \Crefname@preamble{table}{Tabelle}{Tabellen}% + \Crefname@preamble{page}{Seite}{Seiten}% + \Crefname@preamble{part}{Teil}{Teile}% + \Crefname@preamble{chapter}{Kapitel}{Kapitel}% + \Crefname@preamble{section}{Abschnitt}{Abschnitte}% + \Crefname@preamble{appendix}{Anhang}{Anh\"ange}% + \Crefname@preamble{enumi}{Punkt}{Punkte}% + \Crefname@preamble{footnote}{Fu\ss note}{Fu\ss noten}% + \Crefname@preamble{theorem}{Theorem}{Theoreme}% + \Crefname@preamble{lemma}{Lemma}{Lemmata}% + \Crefname@preamble{corollary}{Korollar}{Korollare}% + \Crefname@preamble{proposition}{Satz}{S\"atze}% + \Crefname@preamble{definition}{Definition}{Definitionen}% + \Crefname@preamble{result}{Ergebnis}{Ergebnisse}% + \Crefname@preamble{example}{Beispiel}{Beispiele}% + \Crefname@preamble{remark}{Bemerkung}{Bemerkungen}% + \Crefname@preamble{note}{Anmerkung}{Anmerkungen}% + \Crefname@preamble{algorithm}{Algorithmus}{Algorithmen}% + \Crefname@preamble{listing}{Listing}{Listings}% + \Crefname@preamble{line}{Zeile}{Zeilen}% + % + \if@cref@abbrev% + \crefname@preamble{figure}{Abb.}{Abb.}% + \else% + \crefname@preamble{figure}{Abbildung}{Abbildungen}% + \fi% + \crefname@preamble{equation}{Gleichung}{Gleichungen}% + \crefname@preamble{table}{Tabelle}{Tabellen}% + \crefname@preamble{page}{Seite}{Seiten}% + \crefname@preamble{part}{Teil}{Teile}% + \crefname@preamble{chapter}{Kapitel}{Kapitel}% + \crefname@preamble{section}{Abschnitt}{Abschnitte}% + \crefname@preamble{appendix}{Anhang}{Anh\"ange}% + \crefname@preamble{enumi}{Punkt}{Punkte}% + \crefname@preamble{footnote}{Fu\ss note}{Fu\ss noten}% + \crefname@preamble{theorem}{Theorem}{Theoreme}% + \crefname@preamble{lemma}{Lemma}{Lemmata}% + \crefname@preamble{corollary}{Korollar}{Korollare}% + \crefname@preamble{proposition}{Satz}{S\"atze}% + \crefname@preamble{definition}{Definition}{Definitionen}% + \crefname@preamble{result}{Ergebnis}{Ergebnisse}% + \crefname@preamble{example}{Beispiel}{Beispiele}% + \crefname@preamble{remark}{Bemerkung}{Bemerkungen}% + \crefname@preamble{note}{Anmerkung}{Anmerkungen}% + \crefname@preamble{algorithm}{Algorithmus}{Algorithmen}% + \crefname@preamble{listing}{Listing}{Listings}% + \crefname@preamble{line}{Zeile}{Zeilen}% + \def\cref@language{german}% + }}% end \AtBeginDocument and \DeclareOption +\cref@addlanguagedefs{german}{% + \PackageInfo{cleveref}{loaded `german language definitions}% + \renewcommand{\crefrangeconjunction}{ bis\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ und\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ und\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ und\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ und\nobreakspace}% + % + \Crefname{equation}{Gleichung}{Gleichungen}% + \Crefname{figure}{Abbildung}{Abbildungen}% + \Crefname{subfigure}{Abbildung}{Abbildungen}% + \Crefname{table}{Tabelle}{Tabellen}% + \Crefname{subtable}{Tabelle}{Tabellen}% + \Crefname{page}{Seite}{Seiten}% + \Crefname{part}{Teil}{Teile}% + \Crefname{chapter}{Kapitel}{Kapitel}% + \Crefname{section}{Abschnitt}{Abschnitte}% + \Crefname{subsection}{Abschnitt}{Abschnitte}% + \Crefname{subsubsection}{Abschnitt}{Abschnitte}% + \Crefname{appendix}{Anhang}{Anh\"ange}% + \Crefname{subappendix}{Anhang}{Anh\"ange}% + \Crefname{subsubappendix}{Anhang}{Anh\"ange}% + \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}% + \Crefname{enumi}{Punkt}{Punkte}% + \Crefname{enumii}{Punkt}{Punkte}% + \Crefname{enumiii}{Punkt}{Punkte}% + \Crefname{enumiv}{Punkt}{Punkte}% + \Crefname{enumv}{Punkt}{Punkte}% + \Crefname{footnote}{Fu\ss note}{Fu\ss noten}% + \Crefname{theorem}{Theorem}{Theoreme}% + \Crefname{lemma}{Lemma}{Lemmata}% + \Crefname{corollary}{Korollar}{Korollare}% + \Crefname{proposition}{Satz}{S\"atze}% + \Crefname{definition}{Definition}{Definitionen}% + \Crefname{result}{Ergebnis}{Ergebnisse}% + \Crefname{example}{Beispiel}{Beispiele}% + \Crefname{remark}{Bemerkung}{Bemerkungen}% + \Crefname{note}{Anmerkung}{Anmerkungen}% + \Crefname{algorithm}{Algorithmus}{Algorithmen}% + \Crefname{listing}{Listing}{Listings}% + \Crefname{line}{Zeile}{Zeilen}% + % + \if@cref@abbrev% + \crefname{figure}{Abb.}{Abb.}% + \crefname{subfigure}{Abb.}{Abb.}% + \else% + \crefname{figure}{Abbildung}{Abbildungen}% + \crefname{subfigure}{Abbildung}{Abbildungen}% + \fi% + \crefname{equation}{Gleichung}{Gleichungen}% + \crefname{table}{Tabelle}{Tabellen}% + \crefname{subtable}{Tabelle}{Tabellen}% + \crefname{page}{Seite}{Seiten}% + \crefname{part}{Teil}{Teile}% + \crefname{chapter}{Kapitel}{Kapitel}% + \crefname{section}{Abschnitt}{Abschnitte}% + \crefname{subsection}{Abschnitt}{Abschnitte}% + \crefname{subsubsection}{Abschnitt}{Abschnitte}% + \crefname{appendix}{Anhang}{Anh\"ange}% + \crefname{subappendix}{Anhang}{Anh\"ange}% + \crefname{subsubappendix}{Anhang}{Anh\"ange}% + \crefname{subsubsubappendix}{Anhang}{Anh\"ange}% + \crefname{enumi}{Punkt}{Punkte}% + \crefname{enumii}{Punkt}{Punkte}% + \crefname{enumiii}{Punkt}{Punkte}% + \crefname{enumiv}{Punkt}{Punkte}% + \crefname{enumv}{Punkt}{Punkte}% + \crefname{footnote}{Fu\ss note}{Fu\ss noten}% + \crefname{theorem}{Theorem}{Theoreme}% + \crefname{lemma}{Lemma}{Lemmata}% + \crefname{corollary}{Korollar}{Korollare}% + \crefname{proposition}{Satz}{S\"atze}% + \crefname{definition}{Definition}{Definitionen}% + \crefname{result}{Ergebnis}{Ergebnisse}% + \crefname{example}{Beispiel}{Beispiele}% + \crefname{remark}{Bemerkung}{Bemerkungen}% + \crefname{note}{Anmerkung}{Anmerkungen}% + \crefname{algorithm}{Algorithmus}{Algorithmen}% + \crefname{listing}{Listing}{Listings}% + \crefname{line}{Zeile}{Zeilen}}% end \cref@addlangagedefs +\DeclareOption{ngerman}{% + \ExecuteOptions{german}% + \def\cref@language{ngerman}}% +\cref@addlanguagedefs{ngerman}{% + \PackageInfo{cleveref}{loaded `ngerman' language definitions}% + \renewcommand{\crefrangeconjunction}{ bis\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ und\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ und\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ und\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ und\nobreakspace}% + % + \Crefname{equation}{Gleichung}{Gleichungen}% + \Crefname{figure}{Abbildung}{Abbildungen}% + \Crefname{subfigure}{Abbildung}{Abbildungen}% + \Crefname{table}{Tabelle}{Tabellen}% + \Crefname{subtable}{Tabelle}{Tabellen}% + \Crefname{page}{Seite}{Seiten}% + \Crefname{part}{Teil}{Teile}% + \Crefname{chapter}{Kapitel}{Kapitel}% + \Crefname{section}{Abschnitt}{Abschnitte}% + \Crefname{subsection}{Abschnitt}{Abschnitte}% + \Crefname{subsubsection}{Abschnitt}{Abschnitte}% + \Crefname{appendix}{Anhang}{Anh\"ange}% + \Crefname{subappendix}{Anhang}{Anh\"ange}% + \Crefname{subsubappendix}{Anhang}{Anh\"ange}% + \Crefname{subsubsubappendix}{Anhang}{Anh\"ange}% + \Crefname{enumi}{Punkt}{Punkte}% + \Crefname{enumii}{Punkt}{Punkte}% + \Crefname{enumiii}{Punkt}{Punkte}% + \Crefname{enumiv}{Punkt}{Punkte}% + \Crefname{enumv}{Punkt}{Punkte}% + \Crefname{footnote}{Fu\ss note}{Fu\ss noten}% + \Crefname{theorem}{Theorem}{Theoreme}% + \Crefname{lemma}{Lemma}{Lemmata}% + \Crefname{corollary}{Korollar}{Korollare}% + \Crefname{proposition}{Satz}{S\"atze}% + \Crefname{definition}{Definition}{Definitionen}% + \Crefname{result}{Ergebnis}{Ergebnisse}% + \Crefname{example}{Beispiel}{Beispiele}% + \Crefname{remark}{Bemerkung}{Bemerkungen}% + \Crefname{note}{Anmerkung}{Anmerkungen}% + \Crefname{algorithm}{Algorithmus}{Algorithmen}% + \Crefname{listing}{Listing}{Listings}% + \Crefname{line}{Zeile}{Zeilen}% + % + \if@cref@abbrev% + \crefname{figure}{Abb.}{Abb.}% + \crefname{subfigure}{Abb.}{Abb.}% + \else% + \crefname{figure}{Abbildung}{Abbildungen}% + \crefname{subfigure}{Abbildung}{Abbildungen}% + \fi% + \crefname{equation}{Gleichung}{Gleichungen}% + \crefname{table}{Tabelle}{Tabellen}% + \crefname{subtable}{Tabelle}{Tabellen}% + \crefname{page}{Seite}{Seiten}% + \crefname{part}{Teil}{Teile}% + \crefname{chapter}{Kapitel}{Kapitel}% + \crefname{section}{Abschnitt}{Abschnitte}% + \crefname{subsection}{Abschnitt}{Abschnitte}% + \crefname{subsubsection}{Abschnitt}{Abschnitte}% + \crefname{appendix}{Anhang}{Anh\"ange}% + \crefname{subappendix}{Anhang}{Anh\"ange}% + \crefname{subsubappendix}{Anhang}{Anh\"ange}% + \crefname{subsubsubappendix}{Anhang}{Anh\"ange}% + \crefname{enumi}{Punkt}{Punkte}% + \crefname{enumii}{Punkt}{Punkte}% + \crefname{enumiii}{Punkt}{Punkte}% + \crefname{enumiv}{Punkt}{Punkte}% + \crefname{enumv}{Punkt}{Punkte}% + \crefname{footnote}{Fu\ss note}{Fu\ss noten}% + \crefname{theorem}{Theorem}{Theoreme}% + \crefname{lemma}{Lemma}{Lemmata}% + \crefname{corollary}{Korollar}{Korollare}% + \crefname{proposition}{Satz}{S\"atze}% + \crefname{definition}{Definition}{Definitionen}% + \crefname{result}{Ergebnis}{Ergebnisse}% + \crefname{example}{Beispiel}{Beispiele}% + \crefname{remark}{Bemerkung}{Bemerkungen}% + \crefname{note}{Anmerkung}{Anmerkungen}% + \crefname{algorithm}{Algorithmus}{Algorithmen}% + \crefname{listing}{Listing}{Listings}% + \crefname{line}{Zeile}{Zeilen}}% end \cref@addlangagedefs +\DeclareOption{dutch}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ tot\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ en\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ en\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ en\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ en\nobreakspace}% + % + \Crefname@preamble{equation}{Vergel\ij{}king}{Vergel\ij{}kingen}% + \Crefname@preamble{figure}{Figuur}{Figuren}% + \Crefname@preamble{table}{Tabel}{Tabellen}% + \Crefname@preamble{page}{Pagina}{Pagina's}% + \Crefname@preamble{part}{Deel}{Delen}% + \Crefname@preamble{chapter}{Hoofdstuk}{Hoofdstuken}% + \Crefname@preamble{section}{Paragraaf}{Paragrafen}% + \Crefname@preamble{appendix}{Appendix}{Appendices}% + \Crefname@preamble{enumi}{Punt}{Punten}% + \Crefname@preamble{footnote}{Voetnote}{Voetnoten}% + \Crefname@preamble{lemma}{Lemma}{Lemma's}% + \Crefname@preamble{corollary}{Corollarium}{Corollaria}% + \Crefname@preamble{proposition}{Bewering}{Beweringen}% + \Crefname@preamble{definition}{Definitie}{Definities}% + \Crefname@preamble{result}{Resultaat}{Resultaten}% + \Crefname@preamble{example}{Voorbeeld}{Voorbeelden}% + \Crefname@preamble{remark}{Opmerking}{Opmerkingen}% + \Crefname@preamble{note}{Aantekening}{Aantekeningen}% + \Crefname@preamble{algorithm}{Algoritme}{Algoritmen}% + \Crefname@preamble{listing}{Listing}{Listings}% + \Crefname@preamble{line}{Lijn}{Lijnen}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname@preamble{equation}{Verg.}{Verg's.}% + \crefname@preamble{figure}{Fig.}{Fig's.}% + \else% + \crefname@preamble{equation}{Vergel\ij{}king}{Vergel\ij{}kingen}% + \crefname@preamble{figure}{Figuur}{Figuren}% + \fi% + \crefname@preamble{page}{Pagina}{Pagina's}% + \crefname@preamble{table}{Tabel}{Tabellen}% + \crefname@preamble{part}{Deel}{Delen}% + \crefname@preamble{chapter}{Hoofdstuk}{Hoofdstukken}% + \crefname@preamble{section}{Paragraaf}{Paragrafen}% + \crefname@preamble{appendix}{Appendix}{Appendices}% + \crefname@preamble{enumi}{Punt}{Punten}% + \crefname@preamble{footnote}{Voetnote}{Voetnoten}% + \crefname@preamble{theorem}{Theorema}{Theorema's}% + \crefname@preamble{lemma}{Lemma}{Lemma's}% + \crefname@preamble{corollary}{Corollarium}{Corollaria}% + \crefname@preamble{proposition}{Bewering}{Beweringen}% + \crefname@preamble{definition}{Definitie}{Definities}% + \crefname@preamble{result}{Resultaat}{Resultaten}% + \crefname@preamble{example}{Voorbeeld}{Voorbeelden}% + \crefname@preamble{remark}{Opmerking}{Opmerkingen}% + \crefname@preamble{note}{Aantekening}{Aantekeningen}% + \crefname@preamble{algorithm}{Algoritme}{Algoritmen}% + \crefname@preamble{listing}{Listing}{Listings}% + \crefname@preamble{line}{Lijn}{Lijnen}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname@preamble{equation}{verg.}{verg's.}% + \crefname@preamble{figure}{fig.}{fig's.}% + \else% + \crefname@preamble{equation}{vergel\ij{}king}{vergel\ij{}kingen}% + \crefname@preamble{figure}{figuur}{figuren}% + \fi% + \crefname@preamble{page}{pagina}{pagina's}% + \crefname@preamble{table}{tabel}{tabellen}% + \crefname@preamble{part}{deel}{delen}% + \crefname@preamble{chapter}{hoofdstuk}{hoofdstukken}% + \crefname@preamble{section}{paragraaf}{paragrafen}% + \crefname@preamble{appendix}{appendix}{appendices}% + \crefname@preamble{enumi}{punt}{punten}% + \crefname@preamble{footnote}{voetnote}{voetnoten}% + \crefname@preamble{theorem}{theorema}{theorema's}% + \crefname@preamble{lemma}{lemma}{lemma's}% + \crefname@preamble{corollary}{corollarium}{corollaria}% + \crefname@preamble{proposition}{bewering}{beweringen}% + \crefname@preamble{definition}{definitie}{definities}% + \crefname@preamble{result}{resultaat}{resultaten}% + \crefname@preamble{example}{voorbeeld}{voorbeelden}% + \crefname@preamble{remark}{opmerking}{opmerkingen}% + \crefname@preamble{note}{aantekening}{aantekeningen}% + \crefname@preamble{algorithm}{algoritme}{algoritmen}% + \crefname@preamble{listing}{listing}{listings}% + \crefname@preamble{line}{lijn}{lijnen}% + \fi% + \def\cref@language{dutch}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{dutch}{% + \PackageInfo{cleveref}{loaded `dutch' language definitions}% + \renewcommand{\crefrangeconjunction}{ tot\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ en\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ en\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ en\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ en\nobreakspace}% + % + \Crefname{equation}{Vergel\ij{}king}{Vergel\ij{}kingen}% + \Crefname{figure}{Figuur}{Figuren}% + \Crefname{subfigure}{Figuur}{Figuren}% + \Crefname{table}{Tabel}{Tabellen}% + \Crefname{subtable}{Tabel}{Tabellen}% + \Crefname{page}{Pagina}{Pagina's}% + \Crefname{part}{Deel}{Delen}% + \Crefname{chapter}{Hoofdstuk}{Hoofdstuken}% + \Crefname{section}{Paragraaf}{Paragrafen}% + \Crefname{subsection}{Paragraaf}{Paragrafen}% + \Crefname{subsubsection}{Paragraaf}{Paragrafen}% + \Crefname{appendix}{Appendix}{Appendices}% + \Crefname{subappendix}{Appendix}{Appendices}% + \Crefname{subsubappendix}{Appendix}{Appendices}% + \Crefname{subsubsubappendix}{Appendix}{Appendices}% + \Crefname{enumi}{Punt}{Punten}% + \Crefname{enumii}{Punt}{Punten}% + \Crefname{enumiii}{Punt}{Punten}% + \Crefname{enumiv}{Punt}{Punten}% + \Crefname{enumv}{Punt}{Punten}% + \Crefname{footnote}{Voetnote}{Voetnoten}% + \Crefname{theorem}{Theorema}{Theorema's}% + \Crefname{lemma}{Lemma}{Lemma's}% + \Crefname{corollary}{Corollarium}{Corollaria}% + \Crefname{proposition}{Bewering}{Beweringen}% + \Crefname{definition}{Definitie}{Definities}% + \Crefname{result}{Resultaat}{Resultaten}% + \Crefname{example}{Voorbeeld}{Voorbeelden}% + \Crefname{remark}{Opmerking}{Opmerkingen}% + \Crefname{note}{Aantekening}{Aantekeningen}% + \Crefname{algorithm}{Algoritme}{Algoritmen}% + \Crefname{listing}{Listing}{Listings}% + \Crefname{line}{Lijn}{Lijnen}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname{equation}{Verg.}{Verg's.}% + \crefname{figure}{Fig.}{Fig's.}% + \crefname{subfigure}{Fig.}{Fig's.}% + \else% + \crefname{equation}{Vergel\ij{}king}{Vergel\ij{}kingen}% + \crefname{figure}{Figuur}{Figuren}% + \crefname{subfigure}{Figuur}{Figuren}% + \fi% + \crefname{table}{Tabel}{Tabellen}% + \crefname{subtable}{Tabel}{Tabellen}% + \crefname{page}{Pagina}{Pagina's}% + \crefname{part}{Deel}{Delen}% + \crefname{chapter}{Hoofdstuk}{Hoofdstukken}% + \crefname{section}{Paragraaf}{Paragrafen}% + \crefname{appendix}{Appendix}{Appendices}% + \crefname{enumi}{Punt}{Punten}% + \crefname{footnote}{Voetnote}{Voetnoten}% + \crefname{theorem}{Theorema}{Theorema's}% + \crefname{lemma}{Lemma}{Lemma's}% + \crefname{corollary}{Corollarium}{Corollaria}% + \crefname{proposition}{Bewering}{Beweringen}% + \crefname{definition}{Definitie}{Definities}% + \crefname{result}{Resultaat}{Resultaten}% + \crefname{example}{Voorbeeld}{Voorbeelden}% + \crefname{remark}{Opmerking}{Opmerkingen}% + \crefname{note}{Aantekening}{Aantekeningen}% + \crefname{algorithm}{Algoritme}{Algoritmen}% + \crefname{listing}{Listing}{Listings}% + \crefname{line}{Lijn}{Lijnen}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname{equation}{verg.}{verg's.}% + \crefname{figure}{fig.}{fig's.}% + \crefname{subfigure}{fig.}{fig's.}% + \else% + \crefname{equation}{vergel\ij{}king}{vergel\ij{}kingen}% + \crefname{figure}{figuur}{figuren}% + \crefname{subfigure}{figuur}{figuren}% + \fi% + \crefname{table}{tabel}{tabellen}% + \crefname{subtable}{tabel}{tabellen}% + \crefname{page}{pagina}{pagina's}% + \crefname{part}{deel}{delen}% + \crefname{chapter}{hoofdstuk}{hoofdstukken}% + \crefname{section}{paragraaf}{paragrafen}% + \crefname{appendix}{appendix}{appendices}% + \crefname{enumi}{punt}{punten}% + \crefname{footnote}{voetnote}{voetnoten}% + \crefname{theorem}{theorema}{theorema's}% + \crefname{lemma}{lemma}{lemma's}% + \crefname{corollary}{corollarium}{corollaria}% + \crefname{proposition}{bewering}{beweringen}% + \crefname{definition}{definitie}{definities}% + \crefname{result}{resultaat}{resultaten}% + \crefname{example}{voorbeeld}{voorbeelden}% + \crefname{remark}{opmerking}{opmerkingen}% + \crefname{note}{aantekening}{aantekeningen}% + \crefname{algorithm}{algoritme}{algoritmen}% + \crefname{listing}{listing}{listings}% + \crefname{line}{lijn}{lijnen}% + \fi}% end \cref@addlanguagedefs +\DeclareOption{french}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ \`a\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ et\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ et\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ et\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{, et\nobreakspace}% + % + \Crefname@preamble{equation}{{\'E}quation}{{\'E}quations}% + \Crefname@preamble{figure}{Figure}{Figures}% + \Crefname@preamble{table}{Tableau}{Tableaux}% + \Crefname@preamble{page}{Page}{Pages}% + \Crefname@preamble{part}{Partie}{Parties}% + \Crefname@preamble{chapter}{Chapitre}{Chapitres}% + \Crefname@preamble{section}{Section}{Sections}% + \Crefname@preamble{appendix}{Annexe}{Annexes}% + \Crefname@preamble{enumi}{Point}{Points}% + \Crefname@preamble{footnote}{Note}{Notes}% + \Crefname@preamble{theorem}{Th\'eor\`eme}{Th\'eor\`emes}% + \Crefname@preamble{lemma}{Lemme}{Lemmes}% + \Crefname@preamble{corollary}{Corollaire}{Corollaires}% + \Crefname@preamble{proposition}{Proposition}{Propositions}% + \Crefname@preamble{definition}{D\'efinition}{D\'efinitions}% + \Crefname@preamble{result}{R\'esultat}{R\'esultats}% + \Crefname@preamble{example}{Exemple}{Exemples}% + \Crefname@preamble{remark}{Remarque}{Remarques}% + \Crefname@preamble{algorithm}{Algorithme}{Algorithmes}% + \Crefname@preamble{listing}{Liste}{Listes}% + \Crefname@preamble{line}{Ligne}{Lignes}% + % + \if@cref@capitalise% capitalise set + \crefname@preamble{equation}{{\'E}quation}{{\'E}quations}% + \crefname@preamble{figure}{Figure}{Figures}% + \crefname@preamble{table}{Tableau}{Tableaux}% + \crefname@preamble{page}{Page}{Pages}% + \crefname@preamble{part}{Partie}{Parties}% + \crefname@preamble{chapter}{Chapitre}{Chapitres}% + \crefname@preamble{section}{Section}{Sections}% + \crefname@preamble{appendix}{Annexe}{Annexes}% + \crefname@preamble{enumi}{Point}{Points}% + \crefname@preamble{footnote}{Note}{Notes}% + \crefname@preamble{theorem}{Th\'eor\`eme}{Th\'eor\`emes}% + \crefname@preamble{lemma}{Lemme}{Lemmes}% + \crefname@preamble{corollary}{Corollaire}{Corollaires}% + \crefname@preamble{proposition}{Proposition}{Propositions}% + \crefname@preamble{definition}{D\'efinition}{D\'efinitions}% + \crefname@preamble{result}{R\'esultat}{R\'esultats}% + \crefname@preamble{example}{Exemple}{Exemples}% + \crefname@preamble{remark}{Remarque}{Remarques}% + \crefname@preamble{note}{Commentaire}{Commentaires}% + \crefname@preamble{algorithm}{Algorithme}{Algorithmes}% + \crefname@preamble{listing}{Liste}{Listes}% + \crefname@preamble{line}{Ligne}{Lignes}% + % + \else% capitalise unset + \crefname@preamble{equation}{{\'e}quation}{{\'e}quations}% + \crefname@preamble{figure}{figure}{figures}% + \crefname@preamble{table}{tableau}{tableaux}% + \crefname@preamble{page}{page}{pages}% + \crefname@preamble{part}{partie}{parties}% + \crefname@preamble{chapter}{chapitre}{chapitres}% + \crefname@preamble{section}{section}{sections}% + \crefname@preamble{appendix}{annexe}{annexes}% + \crefname@preamble{enumi}{point}{points}% + \crefname@preamble{footnote}{note}{notes}% + \crefname@preamble{theorem}{th\'eor\`eme}{th\'eor\`emes}% + \crefname@preamble{lemma}{lemme}{lemmes}% + \crefname@preamble{corollary}{corollaire}{corollaires}% + \crefname@preamble{proposition}{proposition}{propositions}% + \crefname@preamble{definition}{d\'efinition}{d\'efinitions}% + \crefname@preamble{result}{r\'esultat}{r\'esultats}% + \crefname@preamble{example}{exemple}{exemples}% + \crefname@preamble{remark}{remarque}{remarques}% + \crefname@preamble{note}{commentaire}{commentaires}% + \crefname@preamble{algorithm}{algorithme}{algorithmes}% + \crefname@preamble{listing}{liste}{listes}% + \crefname@preamble{line}{ligne}{lignes}% + \fi% + \def\cref@language{french}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{french}{% + \PackageInfo{cleveref}{loaded `french' language definitions}% + \renewcommand{\crefrangeconjunction}{ \`a\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ et\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ et\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ et\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ et\nobreakspace}% + % + \Crefname{equation}{{\'E}quation}{{\'E}quations}% + \Crefname{figure}{Figure}{Figures}% + \Crefname{subfigure}{Figure}{Figures}% + \Crefname{table}{Tableau}{Tableaux}% + \Crefname{subtable}{Tableau}{Tableaux}% + \Crefname{page}{Page}{Pages}% + \Crefname{part}{Partie}{Parties}% + \Crefname{chapter}{Chapitre}{Chapitres}% + \Crefname{section}{Section}{Sections}% + \Crefname{subsection}{Section}{Sections}% + \Crefname{subsubsection}{Section}{Sections}% + \Crefname{appendix}{Annexe}{Annexes}% + \Crefname{subappendix}{Annexe}{Annexes}% + \Crefname{subsubappendix}{Annexe}{Annexes}% + \Crefname{subsubsubappendix}{Annexe}{Annexes}% + \Crefname{enumi}{Point}{Points}% + \Crefname{enumii}{Point}{Points}% + \Crefname{enumiii}{Point}{Points}% + \Crefname{enumiv}{Point}{Points}% + \Crefname{enumv}{Point}{Points}% + \Crefname{footnote}{Note}{Notes}% + \Crefname{theorem}{Th\'eor\`eme}{Th\'eor\`emes}% + \Crefname{lemma}{Lemme}{Lemmes}% + \Crefname{corollary}{Corollaire}{Corollaires}% + \Crefname{proposition}{Proposition}{Propositions}% + \Crefname{definition}{D\'efinition}{D\'efinitions}% + \Crefname{result}{R\'esultat}{R\'esultats}% + \Crefname{example}{Exemple}{Exemples}% + \Crefname{remark}{Remarque}{Remarques}% + \Crefname{note}{Commentaire}{Commentaires}% + \Crefname{algorithm}{Algorithme}{Algorithmes}% + \Crefname{listing}{Liste}{Listes}% + \Crefname{line}{Ligne}{Lignes}% + % + \if@cref@capitalise% capitalise set + \crefname{equation}{{\'E}quation}{{\'E}quations}% + \crefname{figure}{Figure}{Figures}% + \crefname{subfigure}{Figure}{Figures}% + \crefname{table}{Tableau}{Tableaux}% + \crefname{subtable}{Tableau}{Tableaux}% + \crefname{page}{Page}{Pages}% + \crefname{part}{Partie}{Parties}% + \crefname{chapter}{Chapitre}{Chapitres}% + \crefname{section}{Section}{Sections}% + \crefname{subsection}{Section}{Sections}% + \crefname{subsubsection}{Section}{Sections}% + \crefname{appendix}{Annexe}{Annexes}% + \crefname{subappendix}{Annexe}{Annexes}% + \crefname{subsubappendix}{Annexe}{Annexes}% + \crefname{subsubsubappendix}{Annexe}{Annexes}% + \crefname{enumi}{Point}{Points}% + \crefname{enumii}{Point}{Points}% + \crefname{enumiii}{Point}{Points}% + \crefname{enumiv}{Point}{Points}% + \crefname{enumv}{Point}{Points}% + \crefname{footnote}{Note}{Notes}% + \crefname{theorem}{Th\'eor\`eme}{Th\'eor\`emes}% + \crefname{lemma}{Lemme}{Lemmes}% + \crefname{corollary}{Corollaire}{Corollaires}% + \crefname{proposition}{Proposition}{Propositions}% + \crefname{definition}{D\'efinition}{D\'efinitions}% + \crefname{result}{R\'esultat}{R\'esultats}% + \crefname{example}{Exemple}{Exemples}% + \crefname{remark}{Remarque}{Remarques}% + \crefname{note}{Commentaire}{Commentaires}% + \crefname{algorithm}{Algorithme}{Algorithmes}% + \crefname{listing}{Liste}{Listes}% + \crefname{line}{Ligne}{Lignes}% + % + \else% capitalise unset + \crefname{equation}{{\'e}quation}{{\'e}quations}% + \crefname{figure}{figure}{figures}% + \crefname{subfigure}{figure}{figures}% + \crefname{table}{tableau}{tableaux}% + \crefname{subtable}{tableau}{tableaux}% + \crefname{page}{page}{pages}% + \crefname{part}{partie}{parties}% + \crefname{chapter}{chapitre}{chapitres}% + \crefname{section}{section}{sections}% + \crefname{subsection}{section}{sections}% + \crefname{subsubsection}{section}{sections}% + \crefname{appendix}{annexe}{annexes}% + \crefname{subappendix}{annexe}{annexes}% + \crefname{subsubappendix}{annexe}{annexes}% + \crefname{subsubsubappendix}{annexe}{annexes}% + \crefname{enumi}{point}{points}% + \crefname{enumii}{point}{points}% + \crefname{enumiii}{point}{points}% + \crefname{enumiv}{point}{points}% + \crefname{enumv}{point}{points}% + \crefname{footnote}{note}{notes}% + \crefname{theorem}{th\'eor\`eme}{th\'eor\`emes}% + \crefname{lemma}{lemme}{lemmes}% + \crefname{corollary}{corollaire}{corollaires}% + \crefname{proposition}{proposition}{propositions}% + \crefname{definition}{d\'efinition}{d\'efinitions}% + \crefname{result}{r\'esultat}{r\'esultats}% + \crefname{example}{exemple}{exemples}% + \crefname{remark}{remarque}{remarques}% + \crefname{note}{commentaire}{commentaires}% + \crefname{algorithm}{algorithme}{algorithmes}% + \crefname{listing}{liste}{listes}% + \crefname{line}{ligne}{lignes}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{spanish}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ a\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ y\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ y\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ y\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ y\nobreakspace}% + % + \Crefname@preamble{equation}{Ecuaci\'on}{Ecuaciones}% + \Crefname@preamble{figure}{Figura}{Figuras}% + \Crefname@preamble{table}{Cuadro}{Cuadros}% + \Crefname@preamble{page}{P\'agina}{P\'aginas}% + \Crefname@preamble{part}{Parte}{Partes}% + \Crefname@preamble{chapter}{Cap\'itulo}{Cap\'itulos}% + \Crefname@preamble{section}{Apartado}{Apartados}% + \Crefname@preamble{appendix}{Ap\'endice}{Ap\'endices}% + \Crefname@preamble{enumi}{Punto}{Puntos}% + \Crefname@preamble{footnote}{Nota}{Notas}% + \Crefname@preamble{theorem}{Teorema}{Teoremas}% + \Crefname@preamble{lemma}{Lema}{Lemas}% + \Crefname@preamble{corollary}{Corolario}{Corolarios}% + \Crefname@preamble{proposition}{Proposici\'on}{Proposiciones}% + \Crefname@preamble{definition}{Definici\'on}{Definiciones}% + \Crefname@preamble{result}{Resultado}{Resultados}% + \Crefname@preamble{example}{Ejemplo}{Ejemplos}% + \Crefname@preamble{remark}{Observaci\'on}{Observaciones}% + \Crefname@preamble{note}{Nota}{Notas}% + \Crefname@preamble{algorithm}{Algoritmo}{Algoritmos}% + \Crefname@preamble{listing}{Listado}{Listados}% + \Crefname@preamble{line}{L\'inea}{L\'ineas}% + % + \if@cref@capitalise% capitalise set + \crefname@preamble{equation}{Ecuaci\'on}{Ecuaciones}% + \crefname@preamble{figure}{Figura}{Figuras}% + \crefname@preamble{table}{Cuadro}{Cuadros}% + \crefname@preamble{page}{P\'agina}{P\'aginas}% + \crefname@preamble{part}{Parte}{Partes}% + \crefname@preamble{chapter}{Cap\'itulo}{Cap\'itulos}% + \crefname@preamble{section}{Apartado}{Apartados}% + \crefname@preamble{appendix}{Ap\'endice}{Ap\'endices}% + \crefname@preamble{enumi}{Punto}{Puntos}% + \crefname@preamble{footnote}{Nota}{Notas}% + \crefname@preamble{theorem}{Teorema}{Teoremas}% + \crefname@preamble{lemma}{Lema}{Lemas}% + \crefname@preamble{corollary}{Corolario}{Corolarios}% + \crefname@preamble{proposition}{Proposici\'on}{Proposiciones}% + \crefname@preamble{definition}{Definici\'on}{Definiciones}% + \crefname@preamble{result}{Resultado}{Resultados}% + \crefname@preamble{example}{Ejemplo}{Ejemplos}% + \crefname@preamble{remark}{Observaci\'on}{Observaciones}% + \crefname@preamble{note}{Nota}{Notas}% + \crefname@preamble{algorithm}{Algoritmo}{Algoritmos}% + \crefname@preamble{listing}{Listado}{Listados}% + \crefname@preamble{line}{L\'inea}{L\'ineas}% + % + \else% capitalise unset + \crefname@preamble{equation}{ecuaci\'on}{ecuaciones}% + \crefname@preamble{figure}{figura}{figuras}% + \crefname@preamble{table}{cuadro}{cuadros}% + \crefname@preamble{page}{p\'agina}{p\'aginas}% + \crefname@preamble{part}{parte}{partes}% + \crefname@preamble{chapter}{cap\'itulo}{cap\'itulos}% + \crefname@preamble{section}{apartado}{apartados}% + \crefname@preamble{appendix}{ap\'endice}{ap\'endices}% + \crefname@preamble{enumi}{punto}{puntos}% + \crefname@preamble{footnote}{nota}{notas}% + \crefname@preamble{theorem}{teorema}{teoremas}% + \crefname@preamble{lemma}{lema}{lemas}% + \crefname@preamble{corollary}{corolario}{corolarios}% + \crefname@preamble{proposition}{proposici\'on}{proposiciones}% + \crefname@preamble{definition}{definici\'on}{definiciones}% + \crefname@preamble{result}{resultado}{resultados}% + \crefname@preamble{example}{ejemplo}{ejemplos}% + \crefname@preamble{remark}{observaci\'on}{observaciones}% + \crefname@preamble{note}{nota}{notas}% + \crefname@preamble{algorithm}{algoritmo}{algoritmos}% + \crefname@preamble{listing}{listado}{listados}% + \crefname@preamble{line}{l\'inea}{l\'ineas}% + \fi% + \def\cref@language{spanish}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{spanish}{% + \PackageInfo{cleveref}{loaded `spanish' language definitions}% + \renewcommand{\crefrangeconjunction}{ a\nobreakspace}% + \renewcommand{\crefrangepreconjunction}{}% + \renewcommand{\crefrangepostconjunction}{}% + \renewcommand{\crefpairconjunction}{ y\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ y\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ y\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ y\nobreakspace}% + % + \Crefname{equation}{Ecuaci\'on}{Ecuaciones}% + \Crefname{figure}{Figura}{Figuras}% + \Crefname{subfigure}{Figura}{Figuras}% + \Crefname{table}{Cuadro}{Cuadros}% + \Crefname{subtable}{Cuadro}{Cuadros}% + \Crefname{page}{P\'agina}{P\'aginas}% + \Crefname{part}{Parte}{Partes}% + \Crefname{chapter}{Cap\'itulo}{Cap\'itulos}% + \Crefname{section}{Apartado}{Apartados}% + \Crefname{subsection}{Apartado}{Apartados}% + \Crefname{subsubsection}{Apartado}{Apartados}% + \Crefname{appendix}{Ap\'endice}{Ap\'endices}% + \Crefname{subappendix}{Ap\'endice}{Ap\'endices}% + \Crefname{subsubappendix}{Ap\'endice}{Ap\'endices}% + \Crefname{subsubsubappendix}{Ap\'endice}{Ap\'endices}% + \Crefname{enumi}{Punto}{Puntos}% + \Crefname{enumii}{Punto}{Puntos}% + \Crefname{enumiii}{Punto}{Puntos}% + \Crefname{enumiv}{Punto}{Puntos}% + \Crefname{enumv}{Punto}{Puntos}% + \Crefname{footnote}{Nota}{Notas}% + \Crefname{theorem}{Teorema}{Teoremas}% + \Crefname{lemma}{Lema}{Lemas}% + \Crefname{corollary}{Corolario}{Corolarios}% + \Crefname{proposition}{Proposici\'on}{Proposiciones}% + \Crefname{definition}{Definici\'on}{Definiciones}% + \Crefname{result}{Resultado}{Resultados}% + \Crefname{example}{Ejemplo}{Ejemplos}% + \Crefname{remark}{Observaci\'on}{Observaci\'on}% + \Crefname{note}{Nota}{Notas}% + \Crefname{algorithm}{Algoritmo}{Algoritmos}% + \Crefname{listing}{Listado}{Listados}% + \Crefname{line}{L\'inea}{L\'ineas}% + % + \if@cref@capitalise% capitalise set + \crefname{equation}{Ecuaci\'on}{Ecuaciones}% + \crefname{figure}{Figura}{Figuras}% + \crefname{subfigure}{Figura}{Figuras}% + \crefname{table}{Cuadro}{Cuadros}% + \crefname{subtable}{Cuadro}{Cuadros}% + \crefname{page}{P\'agina}{P\'aginas}% + \crefname{part}{Parte}{Partes}% + \crefname{chapter}{Cap\'itulo}{Cap\'itulos}% + \crefname{section}{Apartado}{Apartados}% + \crefname{subsection}{Apartado}{Apartados}% + \crefname{subsubsection}{Apartado}{Apartados}% + \crefname{appendix}{Ap\'endice}{Ap\'endices}% + \crefname{subappendix}{Ap\'endice}{Ap\'endices}% + \crefname{subsubappendix}{Ap\'endice}{Ap\'endices}% + \crefname{subsubsubappendix}{Ap\'endice}{Ap\'endices}% + \crefname{enumi}{Punto}{Puntos}% + \crefname{enumii}{Punto}{Puntos}% + \crefname{enumiii}{Punto}{Puntos}% + \crefname{enumiv}{Punto}{Puntos}% + \crefname{enumv}{Punto}{Puntos}% + \crefname{footnote}{Nota}{Notas}% + \crefname{theorem}{Teorema}{Teoremas}% + \crefname{lemma}{Lema}{Lemas}% + \crefname{corollary}{Corolario}{Corolarios}% + \crefname{proposition}{Proposici\'on}{Proposiciones}% + \crefname{definition}{Definici\'on}{Definiciones}% + \crefname{result}{Resultado}{Resultados}% + \crefname{example}{Ejemplo}{Ejemplos}% + \crefname{remark}{Observaci\'on}{Observaci\'ones}% + \crefname{note}{Nota}{Notas}% + \crefname{algorithm}{Algoritmo}{Algoritmos}% + \crefname{listing}{Listado}{Listados}% + \crefname{line}{L\'inea}{L\'ineas}% + % + \else% capitalise unset + \crefname{equation}{ecuaci\'on}{ecuaciones}% + \crefname{figure}{figura}{figuras}% + \crefname{subfigure}{figura}{figuras}% + \crefname{table}{cuadro}{cuadros}% + \crefname{subtable}{cuadro}{cuadros}% + \crefname{page}{p\'agina}{p\'aginas}% + \crefname{part}{parte}{partes}% + \crefname{chapter}{cap\'itulo}{cap\'itulos}% + \crefname{section}{apartado}{apartados}% + \crefname{subsection}{apartado}{apartados}% + \crefname{subsubsection}{apartado}{apartados}% + \crefname{appendix}{ap\'endice}{ap\'endices}% + \crefname{subappendix}{ap\'endice}{ap\'endices}% + \crefname{subsubappendix}{ap\'endice}{ap\'endices}% + \crefname{subsubsubappendix}{ap\'endice}{ap\'endices}% + \crefname{enumi}{punto}{puntos}% + \crefname{enumii}{punto}{puntos}% + \crefname{enumiii}{punto}{puntos}% + \crefname{enumiv}{punto}{puntos}% + \crefname{enumv}{punto}{puntos}% + \crefname{footnote}{nota}{notas}% + \crefname{theorem}{teorema}{teoremas}% + \crefname{lemma}{lema}{lemas}% + \crefname{corollary}{corolario}{corolarios}% + \crefname{proposition}{proposici\'on}{proposiciones}% + \crefname{definition}{definici\'on}{definiciones}% + \crefname{result}{resultado}{resultados}% + \crefname{example}{ejemplo}{ejemplos}% + \crefname{remark}{observaci\'on}{observaci\'ones}% + \crefname{note}{nota}{notas}% + \crefname{algorithm}{algoritmo}{algoritmos}% + \crefname{listing}{listado}{listados}% + \crefname{line}{l\'inea}{l\'ineas}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{italian}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ a\nobreakspace}% + \def\crefrangepreconjunction@preamble{da\nobreakspace}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ e\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ e\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ e\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ e\nobreakspace}% + % + \Crefname@preamble{equation}{Equazione}{Equazioni}% + \Crefname@preamble{figure}{Figura}{Figure}% + \Crefname@preamble{table}{Tabella}{Tabelle}% + \Crefname@preamble{page}{Pagina}{Pagine}% + \Crefname@preamble{part}{Parte}{Parti}% + \Crefname@preamble{chapter}{Capitolo}{Capitoli}% + \Crefname@preamble{section}{Sezione}{Sezioni}% + \Crefname@preamble{appendix}{Appendice}{Appendici}% + \Crefname@preamble{enumi}{Voce}{Voci}% + \Crefname@preamble{footnote}{Nota}{Note}% + \Crefname@preamble{theorem}{Teorema}{Teoremi}% + \Crefname@preamble{lemma}{Lemma}{Lemmi}% + \Crefname@preamble{corollary}{Corollario}{Corollari}% + \Crefname@preamble{proposition}{Proposizione}{Proposizioni}% + \Crefname@preamble{definition}{Definizioni}{Definizioni}% + \Crefname@preamble{result}{Risultato}{Risultati}% + \Crefname@preamble{example}{esempio}{esempi}% + \Crefname@preamble{remark}{Osservazione}{Osservazioni}% + \Crefname@preamble{note}{Nota}{Note}% + \Crefname@preamble{algorithm}{Algoritmo}{Algoritmi}% + \Crefname@preamble{listing}{Elenco}{Elenchi}% + \Crefname@preamble{line}{Linea}{Linee}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname@preamble{equation}{Eq.}{Eq.}% + \crefname@preamble{figure}{Fig.}{Fig.}% + \else% + \crefname@preamble{equation}{Equazione}{Equazioni}% + \crefname@preamble{figure}{Figura}{Figure}% + \fi% + \crefname@preamble{table}{Tabella}{Tabelle}% + \crefname@preamble{page}{Pagina}{Pagine}% + \crefname@preamble{part}{Parte}{Parti}% + \crefname@preamble{chapter}{Capitolo}{Capitoli}% + \crefname@preamble{section}{Sezione}{Sezioni}% + \crefname@preamble{appendix}{Appendice}{Appendici}% + \crefname@preamble{enumi}{Voce}{Voci}% + \crefname@preamble{footnote}{Nota}{Note}% + \crefname@preamble{theorem}{Teorema}{Teoremi}% + \crefname@preamble{lemma}{Lemma}{Lemmi}% + \crefname@preamble{corollary}{Corollario}{Corollari}% + \crefname@preamble{proposition}{Proposizione}{Proposizioni}% + \crefname@preamble{definition}{Definizione}{Definizioni}% + \crefname@preamble{result}{Risultato}{Risultati}% + \crefname@preamble{example}{Esempio}{Esempi}% + \crefname@preamble{remark}{Osservazione}{Osservazioni}% + \crefname@preamble{note}{Nota}{Note}% + \crefname@preamble{algorithm}{Algoritmo}{Algoritmi}% + \crefname@preamble{listing}{Elenco}{Elenchi}% + \crefname@preamble{line}{Linea}{Linee}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname@preamble{equation}{eq.}{eq.}% + \crefname@preamble{figure}{fig.}{fig.}% + \else% + \crefname@preamble{equation}{equazione}{equazioni}% + \crefname@preamble{figure}{figura}{figure}% + \fi% + \crefname@preamble{table}{tabella}{tabelle}% + \crefname@preamble{page}{pagina}{pagine}% + \crefname@preamble{part}{parte}{parti}% + \crefname@preamble{chapter}{capitolo}{capitoli}% + \crefname@preamble{section}{sezione}{sezioni}% + \crefname@preamble{appendix}{appendice}{appendici}% + \crefname@preamble{enumi}{voce}{voci}% + \crefname@preamble{footnote}{nota}{note}% + \crefname@preamble{theorem}{teorema}{teoremi}% + \crefname@preamble{lemma}{lemma}{lemmi}% + \crefname@preamble{corollary}{corollario}{corollari}% + \crefname@preamble{proposition}{proposizione}{proposizioni}% + \crefname@preamble{definition}{definizione}{definizioni}% + \crefname@preamble{result}{risultato}{risultati}% + \crefname@preamble{example}{esempio}{esempi}% + \crefname@preamble{remark}{osservazione}{osservazioni}% + \crefname@preamble{note}{nota}{note}% + \crefname@preamble{algorithm}{algoritmo}{algoritmi}% + \crefname@preamble{listing}{elenco}{elenchi}% + \crefname@preamble{line}{linea}{linee}% + \fi% + \def\cref@language{italian}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{italian}{% + \PackageInfo{cleveref}{loaded `italian' language definitions}% + \renewcommand{\crefrangeconjunction}{ a\nobreakspace}% + \renewcommand\crefrangepreconjunction{da\nobreakspace}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ e\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ e\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ e\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ e\nobreakspace}% + % + \Crefname{equation}{Equazione}{Equazioni}% + \Crefname{figure}{Figura}{Figure}% + \Crefname{subfigure}{Figura}{Figure}% + \Crefname{table}{Tabella}{Tabelle}% + \Crefname{subtable}{Tabella}{Tabelle}% + \Crefname{page}{Pagina}{Pagine}% + \Crefname{part}{Parte}{Parti}% + \Crefname{chapter}{Capitolo}{Capitoli}% + \Crefname{section}{Sezione}{Sezioni}% + \Crefname{subsection}{Sezione}{Sezioni}% + \Crefname{subsubsection}{Sezione}{Sezioni}% + \Crefname{appendix}{Appendice}{Appendici}% + \Crefname{subappendix}{Appendice}{Appendici}% + \Crefname{subsubappendix}{Appendice}{Appendici}% + \Crefname{subsubsubappendix}{Appendice}{Appendici}% + \Crefname{enumi}{Voce}{Voci}% + \Crefname{enumii}{Voce}{Voci}% + \Crefname{enumiii}{Voce}{Voci}% + \Crefname{enumiv}{Voce}{Voci}% + \Crefname{enumv}{Voce}{Voci}% + \Crefname{footnote}{Nota}{Note}% + \Crefname{theorem}{Teorema}{Teoremi}% + \Crefname{lemma}{Lemma}{Lemmi}% + \Crefname{corollary}{Corollario}{Corollari}% + \Crefname{proposition}{Proposizione}{Proposizioni}% + \Crefname{definition}{Definizione}{Definizione}% + \Crefname{result}{Risultato}{Risultati}% + \Crefname{example}{esempio}{esempi}% + \Crefname{remark}{Osservazione}{Osservazioni}% + \Crefname{note}{Nota}{Note}% + \Crefname{algorithm}{Algoritmo}{Algoritmi}% + \Crefname{listing}{Elenco}{Elenchi}% + \Crefname{line}{Linea}{Linee}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname{equation}{Eq.}{Eq.}% + \crefname{figure}{Fig.}{Fig.}% + \crefname{subfigure}{Fig.}{Fig.}% + \else% + \crefname{equation}{Equazione}{Equazioni}% + \crefname{figure}{Figura}{Figure}% + \crefname{figure}{Figura}{Figure}% + \fi% + \crefname{table}{Tabella}{Tabelle}% + \crefname{page}{Pagina}{Pagine}% + \crefname{subtable}{Tabella}{Tabelle}% + \crefname{part}{Parte}{Parti}% + \crefname{chapter}{Capitolo}{Capitoli}% + \crefname{section}{Sezione}{Sezioni}% + \crefname{subsection}{Sezione}{Sezioni}% + \crefname{subsubsection}{Sezione}{Sezioni}% + \crefname{appendix}{Appendice}{Appendici}% + \crefname{subappendix}{Appendice}{Appendici}% + \crefname{subsubappendix}{Appendice}{Appendici}% + \crefname{subsubsubappendix}{Appendice}{Appendici}% + \crefname{enumi}{Voce}{Voci}% + \crefname{enumii}{Voce}{Voci}% + \crefname{enumiii}{Voce}{Voci}% + \crefname{enumiv}{Voce}{Voci}% + \crefname{enumv}{Voce}{Voci}% + \crefname{footnote}{Nota}{Note}% + \crefname{theorem}{Teorema}{Teoremi}% + \crefname{lemma}{Lemma}{Lemmi}% + \crefname{corollary}{Corollario}{Corollari}% + \crefname{proposition}{Proposizione}{Proposizioni}% + \crefname{definition}{Definizione}{Definizione}% + \crefname{result}{Risultato}{Risultati}% + \crefname{example}{Esempio}{Esempi}% + \crefname{remark}{Osservazione}{Osservazioni}% + \crefname{note}{Nota}{Note}% + \crefname{algorithm}{Algoritmo}{Algoritmi}% + \crefname{listing}{Elenco}{Elenchi}% + \crefname{line}{Linea}{Linee}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname{equation}{eq.}{eq.}% + \crefname{figure}{fig.}{fig.}% + \crefname{subfigure}{fig.}{fig.}% + \else% + \crefname{equation}{equazione}{equazioni}% + \crefname{figure}{figura}{figure}% + \crefname{figure}{figura}{figure}% + \fi% + \crefname{table}{tabella}{tabelle}% + \crefname{page}{pagina}{pagine}% + \crefname{subtable}{tabella}{tabelle}% + \crefname{part}{parte}{parti}% + \crefname{chapter}{capitolo}{capitoli}% + \crefname{section}{sezione}{sezioni}% + \crefname{subsection}{sezione}{sezioni}% + \crefname{subsubsection}{sezione}{sezioni}% + \crefname{appendix}{appendice}{appendici}% + \crefname{subappendix}{appendice}{appendici}% + \crefname{subsubappendix}{appendice}{appendici}% + \crefname{subsubsubappendix}{appendice}{appendici}% + \crefname{enumi}{voce}{voci}% + \crefname{enumii}{voce}{voci}% + \crefname{enumiii}{voce}{voci}% + \crefname{enumiv}{voce}{voci}% + \crefname{enumv}{voce}{voci}% + \crefname{footnote}{nota}{note}% + \crefname{theorem}{teorema}{teoremi}% + \crefname{lemma}{lemma}{lemmi}% + \crefname{corollary}{corollario}{corollari}% + \crefname{proposition}{proposizione}{proposizioni}% + \crefname{definition}{definizione}{definizione}% + \crefname{result}{risultato}{risultati}% + \crefname{example}{esempio}{esempi}% + \crefname{remark}{osservazione}{osservazioni}% + \crefname{note}{nota}{note}% + \crefname{algorithm}{algoritmo}{algoritmi}% + \crefname{listing}{elenco}{elenchi}% + \crefname{line}{linea}{linee}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{russian}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{--}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ \cyri\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ \cyri\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ \cyri\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble% + {, \cyra\ \cyrt\cyra\cyrk\cyrzh\cyre\nobreakspace}% + % + \Crefname@preamble{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyrery}% + \Crefname@preamble{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \Crefname@preamble{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \Crefname@preamble{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \Crefname@preamble{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyrery}% + \Crefname@preamble{section}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \Crefname@preamble{appendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \Crefname@preamble{footnote}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}% + \Crefname@preamble{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}% + \Crefname@preamble{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyrery}% + \Crefname@preamble{corollary}% + {\CYRV\cyrery\cyrv\cyro\cyrd}% + {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}% + \Crefname@preamble{proposition}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}% + \Crefname@preamble{definition}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}% + \Crefname@preamble{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}% + \Crefname@preamble{example}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}% + \Crefname@preamble{remark}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}% + \Crefname@preamble{note}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}% + \Crefname@preamble{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}% + \Crefname@preamble{listing}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \Crefname@preamble{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + \Crefname@preamble{page}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyrery}% + \Crefname@preamble{part}% + {\CYRCH\cyra\cyrs\cyrt\cyrsftsn}% + {\CYRCH\cyra\cyrs\cyrt\cyri}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% abbrev set + \crefname@preamble{equation}% + {\CYRF-\cyrl.}% + {\CYRF-\cyrl.}% + \crefname@preamble{figure}% + {\CYRR\cyri\cyrs.}% + {\CYRR\cyri\cyrs.}% + \crefname@preamble{table}% + {\CYRT\cyra\cyrb\cyrl.}% + {\CYRT\cyra\cyrb\cyrl.}% + \crefname@preamble{enumi}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \else% + \crefname@preamble{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyrery}% + \crefname@preamble{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname@preamble{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \crefname@preamble{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \fi% + \crefname@preamble{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyrery}% + \crefname@preamble{section}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname@preamble{appendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname@preamble{footnote}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname@preamble{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}% + \crefname@preamble{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyrery}% + \crefname@preamble{corollary}% + {\CYRV\cyrery\cyrv\cyro\cyrd}% + {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}% + \crefname@preamble{proposition}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}% + \crefname@preamble{definition}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}% + \crefname@preamble{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}% + \crefname@preamble{example}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}% + \crefname@preamble{remark}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}% + \crefname@preamble{note}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}% + \crefname@preamble{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}% + \crefname@preamble{listing}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname@preamble{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + \crefname@preamble{page}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyrery}% + \crefname@preamble{part}% + {\CYRCH\cyra\cyrs\cyrt\cyrsftsn}% + {\CYRCH\cyra\cyrs\cyrt\cyri}% + % + \else% capitalise unset + \if@cref@abbrev% abbrev set + \crefname@preamble{equation}% + {\cyrf-\cyrl.}% + {\cyrf-\cyrl.}% + \crefname@preamble{figure}% + {\cyrr\cyri\cyrs.}% + {\cyrr\cyri\cyrs.}% + \crefname@preamble{table}% + {\cyrt\cyra\cyrb\cyrl.}% + {\cyrt\cyra\cyrb\cyrl.}% + \crefname@preamble{enumi}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname@preamble{chapter}% + {\cyrg\cyrl\cyra\cyrv.}% + {\cyrg\cyrl\cyra\cyrv.}% + \crefname@preamble{section}% + {\cyrr\cyra\cyrz\cyrd.}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}% + \crefname@preamble{appendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + \crefname@preamble{footnote}% + {\cyrs\cyrn\cyro\cyrs\cyrk.}% + {\cyrs\cyrn\cyro\cyrs\cyrk.}% + \crefname@preamble{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + \crefname@preamble{lemma}% + {\cyrl\cyre\cyrm\cyrm.}% + {\cyrl\cyre\cyrm\cyrm.}% + \crefname@preamble{corollary}% + {\cyrv\cyrery\cyrv\cyro\cyrd}% + {\cyrv\cyrery\cyrv\cyro\cyrd.}% + \crefname@preamble{proposition}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}% + \crefname@preamble{definition}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}% + \crefname@preamble{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}% + \crefname@preamble{example}% + {\cyrp\cyrr\cyri\cyrm.}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrr.}% + \crefname@preamble{remark}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}% + \crefname@preamble{note}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}% + \crefname@preamble{algorithm}% + {\cyra\cyrl\cyrg.}% + {\cyra\cyrl\cyrg.}% + \crefname@preamble{listing}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn.}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn\cyrg.}% + \crefname@preamble{line}% + {\cyrs\cyrt\cyrr\cyrk.}% + {\cyrs\cyrt\cyrr\cyrk.}% + \else% abbrev unset + \crefname@preamble{equation}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyrery}% + \crefname@preamble{figure}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname@preamble{table}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \crefname@preamble{enumi}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname@preamble{chapter}% + {\cyrg\cyrl\cyra\cyrv\cyra}% + {\cyrg\cyrl\cyra\cyrv\cyrery}% + \crefname@preamble{section}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname@preamble{appendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname@preamble{footnote}% + {\cyrs\cyrn\cyro\cyrs\cyrk\cyra}% + {\cyrs\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname@preamble{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyrery}% + \crefname@preamble{lemma}% + {\cyrl\cyre\cyrm\cyrm\cyra}% + {\cyrl\cyre\cyrm\cyrm\cyrery}% + \crefname@preamble{corollary}% + {\cyrv\cyrery\cyrv\cyro\cyrd}% + {\cyrv\cyrery\cyrv\cyro\cyrd\cyrery}% + \crefname@preamble{proposition}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}% + \crefname@preamble{definition}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}% + \crefname@preamble{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}% + \crefname@preamble{example}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrr}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrr\cyrery}% + \crefname@preamble{remark}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}% + \crefname@preamble{note}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk\cyra}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk\cyri}% + \crefname@preamble{algorithm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}% + \crefname@preamble{listing}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn\cyrg}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname@preamble{line}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyra}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyri}% + \fi% + \crefname@preamble{page}% + {\cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyre}% + {\cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra\cyrh}% + \crefname@preamble{part}% + {\cyrch\cyra\cyrs\cyrt\cyrsftsn}% + {\cyrch\cyra\cyrs\cyrt\cyri}% + \fi% + \def\cref@language{russian}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{russian}{% + \PackageInfo{cleveref}{loaded `russian' language definitions}% + \renewcommand{\crefrangeconjunction}{--}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ \cyri\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ \cyri\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ \cyri\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}% + {, \cyra\ \cyrt\cyra\cyrk\cyrzh\cyre\nobreakspace}% + % + \Crefname{page}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyrery}% + \Crefname{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyrery}% + \Crefname{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \Crefname{subfigure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \Crefname{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \Crefname{subtable}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \Crefname{part}% + {\CYRCH\cyra\cyrs\cyrt\cyrsftsn}% + {\CYRCH\cyra\cyrs\cyrt\cyri}% + \Crefname{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyrery}% + \Crefname{section}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \Crefname{subsection}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \Crefname{subsubsection}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \Crefname{appendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \Crefname{subappendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \Crefname{subsubappendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \Crefname{subsubsubappendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \Crefname{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \Crefname{enumii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \Crefname{enumiii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \Crefname{enumiv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \Crefname{enumv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \Crefname{footnote}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}% + \Crefname{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}% + \Crefname{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyrery}% + \Crefname{corollary}% + {\CYRV\cyrery\cyrv\cyro\cyrd}% + {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}% + \Crefname{proposition}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}% + \Crefname{definition}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}% + \Crefname{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}% + \Crefname{example}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}% + \Crefname{remark}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}% + \Crefname{note}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}% + \Crefname{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}% + \Crefname{listing}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \Crefname{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% abbrev set + \crefname{equation}% + {\CYRF-\cyrl.}% + {\CYRF-\cyrl.}% + \crefname{figure}% + {\CYRR\cyri\cyrs.}% + {\CYRR\cyri\cyrs.}% + \crefname{subfigure}% + {\CYRR\cyri\cyrs.}% + {\CYRR\cyri\cyrs.}% + \crefname{table}% + {\CYRT\cyra\cyrb\cyrl.}% + {\CYRT\cyra\cyrb\cyrl.}% + \crefname{subtable}% + {\CYRT\cyra\cyrb\cyrl.}% + {\CYRT\cyra\cyrb\cyrl.}% + \crefname{enumi}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumii}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumiii}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumiv}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumv}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \else% abbrev unset + \crefname{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyrery}% + \crefname{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{subfigure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \crefname{subtable}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \crefname{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumiii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumiv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyrery}% + \fi% + \crefname{page}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra}% + {\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyrery}% + \crefname{part}% + {\CYRCH\cyra\cyrs\cyrt\cyrsftsn}% + {\CYRCH\cyra\cyrs\cyrt\cyri}% + \crefname{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyrery}% + \crefname{section}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname{subsection}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname{subsubsection}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl}% + {\CYRR\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname{appendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{subappendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{subsubappendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{subsubsubappendix}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{footnote}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRS\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyrery}% + \crefname{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyrery}% + \crefname{corollary}% + {\CYRV\cyrery\cyrv\cyro\cyrd}% + {\CYRV\cyrery\cyrv\cyro\cyrd\cyrery}% + \crefname{proposition}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}% + {\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}% + \crefname{definition}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}% + {\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}% + \crefname{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}% + \crefname{example}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrr\cyrery}% + \crefname{remark}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}% + {\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}% + \crefname{note}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyre\cyrt\cyrk\cyri}% + \crefname{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}% + \crefname{listing}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyri\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + % + \else% capitalise unset + \if@cref@abbrev% abbrev set + \crefname{equation}% + {\cyrf-\cyrl.}% + {\cyrf-\cyrl.}% + \crefname{chapter}% + {\cyrg\cyrl\cyra\cyrv.}% + {\cyrg\cyrl\cyra\cyrv.}% + \crefname{section}% + {\cyrr\cyra\cyrz\cyrd.}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}% + \crefname{subsection}% + {\cyrr\cyra\cyrz\cyrd.}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}% + \crefname{subsubsection}% + {\cyrr\cyra\cyrz\cyrd.}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl.}% + \crefname{appendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + \crefname{subappendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + \crefname{subsubappendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + \crefname{subsubsubappendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh.}% + \crefname{enumi}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumii}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumiii}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumiv}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumv}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{footnote}% + {\cyrs\cyrn\cyro\cyrs\cyrk.}% + {\cyrs\cyrn\cyro\cyrs\cyrk.}% + \crefname{figure}% + {\cyrr\cyri\cyrs.}% + {\cyrr\cyri\cyrs.}% + \crefname{subfigure}% + {\cyrr\cyri\cyrs.}% + {\cyrr\cyri\cyrs.}% + \crefname{table}% + {\cyrt\cyra\cyrb\cyrl.}% + {\cyrt\cyra\cyrb\cyrl.}% + \crefname{subtable}% + {\cyrt\cyra\cyrb\cyrl.}% + {\cyrt\cyra\cyrb\cyrl.}% + \crefname{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + \crefname{lemma}% + {\cyrl\cyre\cyrm\cyrm.}% + {\cyrl\cyre\cyrm\cyrm.}% + \crefname{corollary}% + {\cyrv\cyrery\cyrv\cyro\cyrd}% + {\cyrv\cyrery\cyrv\cyro\cyrd.}% + \crefname{proposition}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd.}% + \crefname{definition}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn.}% + \crefname{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}% + \crefname{example}% + {\cyrp\cyrr\cyri\cyrm.}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrr.}% + \crefname{remark}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch.}% + \crefname{note}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk.}% + \crefname{algorithm}% + {\cyra\cyrl\cyrg.}% + {\cyra\cyrl\cyrg.}% + \crefname{listing}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn.}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn\cyrg.}% + \crefname{line}% + {\cyrs\cyrt\cyrr\cyrk.}% + {\cyrs\cyrt\cyrr\cyrk.}% + \else% abbrev unset + \crefname{equation}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyrery}% + \crefname{figure}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{subfigure}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{table}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \crefname{subtable}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyra}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrery}% + \crefname{enumi}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumii}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumiii}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumiv}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{enumv}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyrery}% + \crefname{chapter}% + {\cyrg\cyrl\cyra\cyrv\cyra}% + {\cyrg\cyrl\cyra\cyrv\cyrery}% + \crefname{section}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname{subsection}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname{subsubsection}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl}% + {\cyrr\cyra\cyrz\cyrd\cyre\cyrl\cyrery}% + \crefname{appendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{subappendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{subsubappendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{subsubsubappendix}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyrya}% + \crefname{footnote}% + {\cyrs\cyrn\cyro\cyrs\cyrk\cyra}% + {\cyrs\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyrery}% + \crefname{lemma}% + {\cyrl\cyre\cyrm\cyrm\cyra}% + {\cyrl\cyre\cyrm\cyrm\cyrery}% + \crefname{corollary}% + {\cyrv\cyrery\cyrv\cyro\cyrd}% + {\cyrv\cyrery\cyrv\cyro\cyrd\cyrery}% + \crefname{proposition}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}% + {\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}% + \crefname{definition}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}% + {\cyro\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyrya}% + \crefname{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyrery}% + \crefname{example}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrr}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrr\cyrery}% + \crefname{remark}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}% + {\cyrp\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyrya}% + \crefname{note}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk\cyra}% + {\cyrz\cyra\cyrm\cyre\cyrt\cyrk\cyri}% + \crefname{algorithm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyrery}% + \crefname{listing}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn\cyrg}% + {\cyrl\cyri\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname{line}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyra}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyri}% + \fi% + \crefname{page}% + {\cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyre}% + {\cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra\cyrh}% + \crefname{part}% + {\cyrch\cyra\cyrs\cyrt\cyrsftsn}% + {\cyrch\cyra\cyrs\cyrt\cyri}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{ukrainian}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{--}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ \cyrii\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ \cyrii\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ \cyrt\cyra\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble% + {, \cyra\ \cyrt\cyra\cyrk\cyro\cyrzh\nobreakspace}% + % + \Crefname@preamble{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyri}% + \Crefname@preamble{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \Crefname@preamble{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \Crefname@preamble{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \Crefname@preamble{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyri}% + \Crefname@preamble{section}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \Crefname@preamble{appendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \Crefname@preamble{footnote}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}% + \Crefname@preamble{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}% + \Crefname@preamble{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyri}% + \Crefname@preamble{corollary}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}% + \Crefname@preamble{proposition}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + \Crefname@preamble{definition}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \Crefname@preamble{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}% + \Crefname@preamble{example}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}% + \Crefname@preamble{remark}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}% + \Crefname@preamble{note}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}% + \Crefname@preamble{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}% + \Crefname@preamble{listing}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \Crefname@preamble{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + \Crefname@preamble{page}% + {\CYRS\cyrt\cyro\cyrr\cyri\cyrn\cyrk\cyra}% + {\CYRS\cyrt\cyro\cyrr\cyrii\cyrn\cyrk\cyri}% + \Crefname@preamble{part}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyri}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% abbrev set + \crefname@preamble{equation}% + {\CYRF-\cyrl.}% + {\CYRF-\cyrl.}% + \crefname@preamble{figure}% + {\CYRR\cyri\cyrs.}% + {\CYRR\cyri\cyrs.}% + \crefname@preamble{table}% + {\CYRT\cyra\cyrb\cyrl.}% + {\CYRT\cyra\cyrb\cyrl.}% + \crefname@preamble{enumi}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \else% + \crefname@preamble{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyri}% + \crefname@preamble{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname@preamble{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \crefname@preamble{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \fi% + \crefname@preamble{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyri}% + \crefname@preamble{section}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname@preamble{appendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname@preamble{footnote}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname@preamble{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}% + \crefname@preamble{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyri}% + \crefname@preamble{corollary}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}% + \crefname@preamble{proposition}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + \crefname@preamble{definition}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \crefname@preamble{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}% + \crefname@preamble{example}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}% + \crefname@preamble{remark}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname@preamble{note}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname@preamble{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}% + \crefname@preamble{listing}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname@preamble{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + \crefname@preamble{page}% + {\CYRS\cyrt\cyro\cyrr\cyri\cyrn\cyrk\cyra}% + {\CYRS\cyrt\cyro\cyrr\cyrii\cyrn\cyrk\cyri}% + \crefname@preamble{part}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyri}% + % + \else% capitalise unset + \if@cref@abbrev% abbrev set + \crefname@preamble{equation}% + {\cyrf-\cyrl.}% + {\cyrf-\cyrl.}% + \crefname@preamble{figure}% + {\cyrr\cyri\cyrs.}% + {\cyrr\cyri\cyrs.}% + \crefname@preamble{table}% + {\cyrt\cyra\cyrb\cyrl.}% + {\cyrt\cyra\cyrb\cyrl.}% + \crefname@preamble{enumi}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname@preamble{chapter}% + {\cyrg\cyrl\cyra\cyrv.}% + {\cyrg\cyrl\cyra\cyrv.}% + \crefname@preamble{section}% + {\cyrr\cyro\cyrz\cyrd.}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}% + \crefname@preamble{appendix}% + {\cyrd\cyro\cyrd\cyra\cyrt.}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}% + \crefname@preamble{footnote}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}% + \crefname@preamble{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + \crefname@preamble{lemma}% + {\cyrl\cyre\cyrm\cyrm.}% + {\cyrl\cyre\cyrm\cyrm.}% + \crefname@preamble{corollary}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv.}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyrk.}% + \crefname@preamble{proposition}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}% + \crefname@preamble{definition}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}% + \crefname@preamble{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt.}% + \crefname@preamble{example}% + {\cyrp\cyrr\cyri\cyrk\cyrl.}% + {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd.}% + \crefname@preamble{remark}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}% + \crefname@preamble{note}% + {\cyrz\cyra\cyrm\cyrii\cyrt.}% + {\cyrz\cyra\cyrm\cyrii\cyrt.}% + \crefname@preamble{algorithm}% + {\cyra\cyrl\cyrg.}% + {\cyra\cyrl\cyrg.}% + \crefname@preamble{listing}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn.}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn\cyrg.}% + \crefname@preamble{line}% + {\cyrs\cyrt\cyrr\cyrk.}% + {\cyrs\cyrt\cyrr\cyrk.}% + \else% abbrev unset + \crefname@preamble{equation}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyri}% + \crefname@preamble{figure}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname@preamble{table}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \crefname@preamble{enumi}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname@preamble{chapter}% + {\cyrg\cyrl\cyra\cyrv\cyra}% + {\cyrg\cyrl\cyra\cyrv\cyri}% + \crefname@preamble{section}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname@preamble{appendix}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname@preamble{footnote}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk\cyra}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname@preamble{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyri}% + \crefname@preamble{lemma}% + {\cyrl\cyre\cyrm\cyrm\cyra}% + {\cyrl\cyre\cyrm\cyrm\cyri}% + \crefname@preamble{corollary}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}% + \crefname@preamble{proposition}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + \crefname@preamble{definition}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \crefname@preamble{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}% + \crefname@preamble{example}% + {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd}% + {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}% + \crefname@preamble{remark}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname@preamble{note}% + {\cyrz\cyra\cyrm\cyrii\cyrt\cyrk\cyra}% + {\cyrz\cyra\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname@preamble{algorithm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}% + \crefname@preamble{listing}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname@preamble{line}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyra}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyri}% + \fi% + \crefname@preamble{page}% + {\cyrs\cyrt\cyro\cyrr\cyri\cyrn\cyrc\cyrii}% + {\cyrs\cyrt\cyro\cyrr\cyrii\cyrn\cyrk\cyra\cyrh}% + \crefname@preamble{part}% + {\cyrch\cyra\cyrs\cyrt\cyri\cyrn\cyra}% + {\cyrch\cyra\cyrs\cyrt\cyri\cyrn\cyri}% + \fi% + \def\cref@language{ukrainian}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{ukrainian}{% + \PackageInfo{cleveref}{loaded `ukrainian' language definitions}% + \renewcommand{\crefrangeconjunction}{--}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ \cyrii\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ \cyrii\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}% + { \cyrt\cyra\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}% + {, \cyra\ \cyrt\cyra\cyrk\cyro\cyrzh\nobreakspace}% + % + \Crefname{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyri}% + \Crefname{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \Crefname{subfigure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \Crefname{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \Crefname{subtable}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \Crefname{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \Crefname{enumii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \Crefname{enumiii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \Crefname{enumiv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \Crefname{enumv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \Crefname{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyri}% + \Crefname{section}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \Crefname{subsection}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \Crefname{subsubsection}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \Crefname{appendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \Crefname{subappendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \Crefname{subsubappendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \Crefname{subsubsubappendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \Crefname{footnote}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}% + \Crefname{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}% + \Crefname{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyri}% + \Crefname{corollary}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}% + \Crefname{proposition}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + \Crefname{definition}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \Crefname{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}% + \Crefname{example}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}% + \Crefname{remark}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}% + \Crefname{note}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}% + \Crefname{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}% + \Crefname{listing}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \Crefname{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + \Crefname{page}% + {\CYRS\cyrt\cyro\cyrr\cyri\cyrn\cyrk\cyra}% + {\CYRS\cyrt\cyro\cyrr\cyrii\cyrn\cyrk\cyri}% + \Crefname{part}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyri}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% abbrev set + \crefname{equation}% + {\CYRF-\cyrl.}% + {\CYRF-\cyrl.}% + \crefname{figure}% + {\CYRR\cyri\cyrs.}% + {\CYRR\cyri\cyrs.}% + \crefname{subfigure}% + {\CYRR\cyri\cyrs.}% + {\CYRR\cyri\cyrs.}% + \crefname{table}% + {\CYRT\cyra\cyrb\cyrl.}% + {\CYRT\cyra\cyrb\cyrl.}% + \crefname{subtable}% + {\CYRT\cyra\cyrb\cyrl.}% + {\CYRT\cyra\cyrb\cyrl.}% + \crefname{enumi}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumii}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumiii}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumiv}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \crefname{enumv}% + {\CYRP.}% + {\CYRP.\cyrp.}% + \else% abbrev unset + \crefname{equation}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\CYRF\cyro\cyrr\cyrm\cyru\cyrl\cyri}% + \crefname{figure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{subfigure}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{table}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \crefname{subtable}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \crefname{enumi}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumiii}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumiv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumv}% + {\CYRP\cyru\cyrn\cyrk\cyrt}% + {\CYRP\cyru\cyrn\cyrk\cyrt\cyri}% + \fi% + \crefname{chapter}% + {\CYRG\cyrl\cyra\cyrv\cyra}% + {\CYRG\cyrl\cyra\cyrv\cyri}% + \crefname{section}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname{subsection}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname{subsubsection}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}% + {\CYRR\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname{appendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{subappendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{subsubappendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{subsubsubappendix}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{footnote}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyra}% + {\CYRV\cyri\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname{theorem}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyri}% + \crefname{lemma}% + {\CYRL\cyre\cyrm\cyrm\cyra}% + {\CYRL\cyre\cyrm\cyrm\cyri}% + \crefname{corollary}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}% + {\CYRV\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}% + \crefname{proposition}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + {\CYRT\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + \crefname{definition}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + {\CYRV\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \crefname{result}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\CYRR\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}% + \crefname{example}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd}% + {\CYRP\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}% + \crefname{remark}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname{note}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyra}% + {\CYRZ\cyra\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname{algorithm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\CYRA\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}% + \crefname{listing}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + {\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname{line}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyra}% + {\CYRS\cyrt\cyrr\cyro\cyrk\cyri}% + \crefname{page}% + {\CYRS\cyrt\cyro\cyrr\cyri\cyrn\cyrk\cyra}% + {\CYRS\cyrt\cyro\cyrr\cyrii\cyrn\cyrk\cyri}% + \crefname{part}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}% + {\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyri}% + % + \else% capitalise unset + \if@cref@abbrev% abbrev set + \crefname{equation}% + {\cyrf-\cyrl.}% + {\cyrf-\cyrl.}% + \crefname{chapter}% + {\cyrg\cyrl\cyra\cyrv.}% + {\cyrg\cyrl\cyra\cyrv.}% + \crefname{section}% + {\cyrr\cyro\cyrz\cyrd.}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}% + \crefname{subsection}% + {\cyrr\cyro\cyrz\cyrd.}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}% + \crefname{subsubsection}% + {\cyrr\cyro\cyrz\cyrd.}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl.}% + \crefname{appendix}% + {\cyrd\cyro\cyrd\cyra\cyrt.}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}% + \crefname{subappendix}% + {\cyrd\cyro\cyrd\cyra\cyrt.}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}% + \crefname{subsubappendix}% + {\cyrd\cyro\cyrd\cyra\cyrt.}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}% + \crefname{subsubsubappendix}% + {\cyrd\cyro\cyrd\cyra\cyrt.}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk.}% + \crefname{enumi}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumii}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumiii}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumiv}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{enumv}% + {\cyrp.}% + {\cyrp.\cyrp.}% + \crefname{footnote}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk.}% + \crefname{figure}% + {\cyrr\cyri\cyrs.}% + {\cyrr\cyri\cyrs.}% + \crefname{subfigure}% + {\cyrr\cyri\cyrs.}% + {\cyrr\cyri\cyrs.}% + \crefname{table}% + {\cyrt\cyra\cyrb\cyrl.}% + {\cyrt\cyra\cyrb\cyrl.}% + \crefname{subtable}% + {\cyrt\cyra\cyrb\cyrl.}% + {\cyrt\cyra\cyrb\cyrl.}% + \crefname{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm.}% + \crefname{lemma}% + {\cyrl\cyre\cyrm\cyrm.}% + {\cyrl\cyre\cyrm\cyrm.}% + \crefname{corollary}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv.}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyrk.}% + \crefname{proposition}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn.}% + \crefname{definition}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn.}% + \crefname{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt.}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt.}% + \crefname{example}% + {\cyrp\cyrr\cyri\cyrk\cyrl.}% + {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd.}% + \crefname{remark}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt.}% + \crefname{note}% + {\cyrz\cyra\cyrm\cyrii\cyrt.}% + {\cyrz\cyra\cyrm\cyrii\cyrt.}% + \crefname{algorithm}% + {\cyra\cyrl\cyrg.}% + {\cyra\cyrl\cyrg.}% + \crefname{listing}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn.}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn\cyrg.}% + \crefname{line}% + {\cyrs\cyrt\cyrr\cyrk.}% + {\cyrs\cyrt\cyrr\cyrk.}% + \else% abbrev unset + \crefname{equation}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyra}% + {\cyrf\cyro\cyrr\cyrm\cyru\cyrl\cyri}% + \crefname{figure}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{subfigure}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyro\cyrk}% + {\cyrr\cyri\cyrs\cyru\cyrn\cyrk\cyri}% + \crefname{table}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \crefname{subtable}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrya}% + {\cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrii}% + \crefname{enumi}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumii}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumiii}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumiv}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{enumv}% + {\cyrp\cyru\cyrn\cyrk\cyrt}% + {\cyrp\cyru\cyrn\cyrk\cyrt\cyri}% + \crefname{chapter}% + {\cyrg\cyrl\cyra\cyrv\cyra}% + {\cyrg\cyrl\cyra\cyrv\cyri}% + \crefname{section}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname{subsection}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname{subsubsection}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl}% + {\cyrr\cyro\cyrz\cyrd\cyrii\cyrl\cyri}% + \crefname{appendix}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{subappendix}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{subsubappendix}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{subsubsubappendix}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyro\cyrk}% + {\cyrd\cyro\cyrd\cyra\cyrt\cyrk\cyri}% + \crefname{footnote}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk\cyra}% + {\cyrv\cyri\cyrn\cyro\cyrs\cyrk\cyri}% + \crefname{theorem}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyra}% + {\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyri}% + \crefname{lemma}% + {\cyrl\cyre\cyrm\cyrm\cyra}% + {\cyrl\cyre\cyrm\cyrm\cyri}% + \crefname{corollary}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyro\cyrk}% + {\cyrv\cyri\cyrs\cyrn\cyro\cyrv\cyrk\cyri}% + \crefname{proposition}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + {\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}% + \crefname{definition}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + {\cyrv\cyri\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \crefname{result}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt}% + {\cyrr\cyre\cyrz\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrt\cyri}% + \crefname{example}% + {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd}% + {\cyrp\cyrr\cyri\cyrk\cyrl\cyra\cyrd\cyri}% + \crefname{remark}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}% + {\cyrp\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname{note}% + {\cyrz\cyra\cyrm\cyrii\cyrt\cyrk\cyra}% + {\cyrz\cyra\cyrm\cyrii\cyrt\cyrk\cyri}% + \crefname{algorithm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm}% + {\cyra\cyrl\cyrg\cyro\cyrr\cyri\cyrt\cyrm\cyri}% + \crefname{listing}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + {\cyrl\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \crefname{line}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyra}% + {\cyrs\cyrt\cyrr\cyro\cyrk\cyri}% + \fi% + \crefname{page}% + {\cyrs\cyrt\cyro\cyrr\cyri\cyrn\cyrc\cyrii}% + {\cyrs\cyrt\cyro\cyrr\cyrii\cyrn\cyrk\cyra\cyrh}% + \crefname{part}% + {\cyrch\cyra\cyrs\cyrt\cyri\cyrn\cyra}% + {\cyrch\cyra\cyrs\cyrt\cyri\cyrn\cyri}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{norsk}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ til\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ og\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ og\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ og\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ og\nobreakspace}% + % + \Crefname@preamble{equation}{Likning}{Likningene}% + \Crefname@preamble{figure}{Figur}{Figurene}% + \Crefname@preamble{table}{Tabell}{Tabellene}% + \Crefname@preamble{page}{Side}{Siden}% + \Crefname@preamble{part}{Del}{Delene}% + \Crefname@preamble{chapter}{Kapittel}{Kapitlene}% + \Crefname@preamble{section}{Avsnitt}{Avsnittene}% + \Crefname@preamble{appendix}{Tillegg}{Tilleggene}% + \Crefname@preamble{enumi}{Punkt}{Punktene}% + \Crefname@preamble{footnote}{Fotnote}{Fotnotene}% + \Crefname@preamble{theorem}{Teorem}{Teoremene}% + \Crefname@preamble{lemma}{Lemma}{Lemma}% + \Crefname@preamble{corollary}{Korollar}{Korollarene}% + \Crefname@preamble{proposition}{P\aa stand}{P\aa standene}% + \Crefname@preamble{definition}{Definisjon}{Definisjonene}% + \Crefname@preamble{result}{Resultat}{Resultatene}% + \Crefname@preamble{example}{Eksempel}{Eksemplene}% + \Crefname@preamble{remark}{Bemerkning}{Bemerkningene}% + \Crefname@preamble{note}{Note}{Notene}% + \Crefname@preamble{algorithm}{Algoritme}{Algoritmene}% + \Crefname@preamble{listing}{Opplisting}{Opplistingene}% + \Crefname@preamble{line}{Linje}{Linjene}% + % + \if@cref@capitalise% + \crefname@preamble{page}{Side}{Siden}% + \crefname@preamble{equation}{Likning}{Likningene}% + \crefname@preamble{figure}{Figur}{Figurene}% + \crefname@preamble{table}{Tabell}{Tabellene}% + \crefname@preamble{part}{Del}{Delene}% + \crefname@preamble{chapter}{Kapittel}{Kapitlene}% + \crefname@preamble{section}{Avsnitt}{Avsnittene}% + \crefname@preamble{appendix}{Tillegg}{Tilleggene}% + \crefname@preamble{enumi}{Punkt}{Punktene}% + \crefname@preamble{footnote}{Fotnote}{Fotnotene}% + \crefname@preamble{theorem}{Teorem}{Teoremene}% + \crefname@preamble{lemma}{Lemma}{Lemma}% + \crefname@preamble{corollary}{Korollar}{Korollarene}% + \crefname@preamble{proposition}{P\aa stand}{P\aa standene}% + \crefname@preamble{definition}{Definisjon}{Definisjonene}% + \crefname@preamble{result}{Resultat}{Resultatene}% + \crefname@preamble{example}{Eksempel}{Eksemplene}% + \crefname@preamble{remark}{Bemerkning}{Bemerkningene}% + \crefname@preamble{note}{Note}{Notene}% + \crefname@preamble{algorithm}{Algoritme}{Algoritmene}% + \crefname@preamble{listing}{Opplisting}{Opplistingene}% + \crefname@preamble{line}{Linje}{Linjene}% + % + \else% + \crefname@preamble{equation}{likning}{likningene}% + \crefname@preamble{figure}{figur}{figurene}% + \crefname@preamble{table}{tabell}{tabeller}% + \crefname@preamble{page}{side}{siden}% + \crefname@preamble{part}{del}{delene}% + \crefname@preamble{chapter}{kapittel}{kapitlene}% + \crefname@preamble{section}{avsnitt}{avsnittene}% + \crefname@preamble{appendix}{tillegg}{tilleggene}% + \crefname@preamble{enumi}{punkt}{punktene}% + \crefname@preamble{footnote}{fotnote}{fotnotene}% + \crefname@preamble{theorem}{teorem}{teoremene}% + \crefname@preamble{lemma}{lemma}{lemma}% + \crefname@preamble{corollary}{korollar}{korollarene}% + \crefname@preamble{proposition}{p\aa stand}{p\aa standene}% + \crefname@preamble{definition}{definisjon}{definisjonene}% + \crefname@preamble{result}{resultat}{resultatene}% + \crefname@preamble{example}{eksempel}{eksemplene}% + \crefname@preamble{remark}{bemerkning}{bemerkningene}% + \crefname@preamble{note}{note}{notene}% + \crefname@preamble{algorithm}{algoritme}{algoritmene}% + \crefname@preamble{listing}{opplisting}{opplistingene}% + \crefname@preamble{line}{linje}{linjene}% + \fi% + \def\cref@language{norsk}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{norsk}{% + \PackageInfo{cleveref}{loaded `norsk' language definitions}% + \renewcommand{\crefrangeconjunction}{ til\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ og\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ og\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ og\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ og\nobreakspace}% + % + \Crefname{equation}{Likning}{Likningene}% + \Crefname{figure}{Figur}{Figurene}% + \Crefname{subfigure}{Figur}{Figurene}% + \Crefname{table}{Tabell}{Tabellene}% + \Crefname{subtable}{Tabell}{Tabellene}% + \Crefname{page}{Side}{Siden}% + \Crefname{part}{Del}{Delene}% + \Crefname{chapter}{Kapittel}{Kapitlene}% + \Crefname{section}{Avsnitt}{Avsnittene}% + \Crefname{subsection}{Avsnitt}{Avsnittene}% + \Crefname{subsubsection}{Avsnitt}{Avsnittene}% + \Crefname{appendix}{Tillegg}{Tilleggene}% + \Crefname{subappendix}{Tillegg}{Tilleggene}% + \Crefname{subsubappendix}{Tillegg}{Tilleggene}% + \Crefname{subsubsubappendix}{Tillegg}{Tilleggene}% + \Crefname{enumi}{Punkt}{Punktene}% + \Crefname{enumii}{Punkt}{Punktene}% + \Crefname{enumiii}{Punkt}{Punktene}% + \Crefname{enumiv}{Punkt}{Punktene}% + \Crefname{enumv}{Punkt}{Punktene}% + \Crefname{footnote}{Fotnote}{Fotnotene}% + \Crefname{theorem}{Teorem}{Teoremene}% + \Crefname{lemma}{Lemma}{Lemma}% + \Crefname{corollary}{Korollar}{Korollarene}% + \Crefname{proposition}{P\aa stand}{P\aa standene}% + \Crefname{definition}{Definisjon}{Definisjonene}% + \Crefname{result}{Resultat}{Resultatene}% + \Crefname{example}{Eksempel}{Eksemplene}% + \Crefname{remark}{Bemerkning}{Bemerkningene}% + \Crefname{note}{Note}{Notene}% + \Crefname{algorithm}{Algoritme}{Algoritmene}% + \Crefname{listing}{Opplisting}{Opplistingene}% + \Crefname{line}{Linje}{Linjene}% + % + \if@cref@capitalise% + \crefname{equation}{Likning}{Likningene}% + \crefname{figure}{Figur}{Figurene}% + \crefname{subfigure}{Figur}{Figurene}% + \crefname{table}{Tabell}{Tabellene}% + \crefname{subtable}{Tabell}{Tabellene}% + \crefname{page}{Side}{Siden}% + \crefname{part}{Del}{Delene}% + \crefname{chapter}{Kapittel}{Kapitlene}% + \crefname{section}{Avsnitt}{Avsnittene}% + \crefname{subsection}{Avsnitt}{Avsnittene}% + \crefname{subsubsection}{Avsnitt}{Avsnittene}% + \crefname{appendix}{Tillegg}{Tilleggene}% + \crefname{subappendix}{Tillegg}{Tilleggene}% + \crefname{subsubappendix}{Tillegg}{Tilleggene}% + \crefname{subsubsubappendix}{Tillegg}{Tilleggene}% + \crefname{enumi}{Punkt}{Punktene}% + \crefname{enumii}{Punkt}{Punktene}% + \crefname{enumiii}{Punkt}{Punktene}% + \crefname{enumiv}{Punkt}{Punktene}% + \crefname{enumv}{Punkt}{Punktene}% + \crefname{footnote}{Fotnote}{Fotnotene}% + \crefname{theorem}{Teorem}{Teoremene}% + \crefname{lemma}{Lemma}{Lemma}% + \crefname{corollary}{Korollar}{Korollarene}% + \crefname{proposition}{P\aa stand}{P\aa standene}% + \crefname{definition}{Definisjon}{Definisjonene}% + \crefname{result}{Resultat}{Resultatene}% + \crefname{example}{Eksempel}{Eksemplene}% + \crefname{remark}{Bemerkning}{Bemerkningene}% + \crefname{note}{Note}{Notene}% + \crefname{algorithm}{Algoritme}{Algoritmene}% + \crefname{listing}{Opplisting}{Opplistingene}% + \crefname{line}{Linje}{Linjene}% + % + \else% + \crefname{equation}{likning}{likningene}% + \crefname{figure}{figur}{figurene}% + \crefname{subfigure}{figur}{figurene}% + \crefname{table}{tabell}{tabellene}% + \crefname{subtable}{tabell}{tabellene}% + \crefname{page}{side}{siden}% + \crefname{part}{del}{delene}% + \crefname{chapter}{kapittel}{kapitlene}% + \crefname{section}{avsnitt}{avsnittene}% + \crefname{subsection}{avsnitt}{avsnittene}% + \crefname{subsubsection}{avsnitt}{avsnittene}% + \crefname{appendix}{tillegg}{tilleggene}% + \crefname{subappendix}{tillegg}{tilleggene}% + \crefname{subsubappendix}{tillegg}{tilleggene}% + \crefname{subsubsubappendix}{tillegg}{tilleggene}% + \crefname{enumi}{punkt}{punktene}% + \crefname{enumii}{punkt}{punktene}% + \crefname{enumiii}{punkt}{punktene}% + \crefname{enumiv}{punkt}{punktene}% + \crefname{enumv}{punkt}{punktene}% + \crefname{footnote}{fotnote}{fotnotene}% + \crefname{theorem}{teorem}{teoremene}% + \crefname{lemma}{lemma}{lemma}% + \crefname{corollary}{korollar}{korollarene}% + \crefname{proposition}{p\aa stand}{p\aa standene}% + \crefname{definition}{definisjon}{definisjonene}% + \crefname{result}{resultat}{resultatene}% + \crefname{example}{eksempel}{eksemplene}% + \crefname{remark}{bemerkning}{bemerkningene}% + \crefname{note}{note}{notene}% + \crefname{algorithm}{algoritme}{algoritmene}% + \crefname{listing}{opplisting}{opplistingene}% + \crefname{line}{linje}{linjene}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{danish}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ til\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ og\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ og\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ og\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ og\nobreakspace}% + % + \Crefname@preamble{equation}{Ligning}{Ligninger}% + \Crefname@preamble{figure}{Figur}{Figurer}% + \Crefname@preamble{table}{Tabel}{Tabeller}% + \Crefname@preamble{page}{Side}{Sider}% + \Crefname@preamble{part}{Del}{Dele}% + \Crefname@preamble{chapter}{Kapitel}{Kapitler}% + \Crefname@preamble{section}{Afsnit}{Afsnit}% + \Crefname@preamble{appendix}{Appendiks}{Appendiks}% + \Crefname@preamble{enumi}{Punkt}{Punkter}% + \Crefname@preamble{footnote}{Fodnote}{Fodnoter}% + \Crefname@preamble{theorem}{Teorem}{Teoremer}% + \Crefname@preamble{lemma}{Lemma}{Lemma}% + \Crefname@preamble{corollary}{F\o lgeslutning}{F\o lgeslutninger}% + \Crefname@preamble{proposition}{Udsagn}{Udsagn}% + \Crefname@preamble{definition}{Definition}{Definitioner}% + \Crefname@preamble{result}{Resultat}{Resultater}% + \Crefname@preamble{example}{Eksempel}{Eksempler}% + \Crefname@preamble{remark}{Bem\ae rkning}{Bem\ae rkninger}% + \Crefname@preamble{note}{Note}{Noter}% + \Crefname@preamble{algorithm}{Algoritme}{Algoritmer}% + \Crefname@preamble{line}{Linje}{Linjer}% + % + \if@cref@capitalise% + \crefname@preamble{equation}{Ligning}{Ligninger}% + \crefname@preamble{figure}{Figur}{Figurer}% + \crefname@preamble{table}{Tabel}{Tabeller}% + \crefname@preamble{page}{Side}{Sider}% + \crefname@preamble{part}{Del}{Dele}% + \crefname@preamble{chapter}{Kapitel}{Kapitler}% + \crefname@preamble{section}{Afsnit}{Afsnit}% + \crefname@preamble{appendix}{Appendiks}{Appendiks}% + \crefname@preamble{enumi}{Punkt}{Punkter}% + \crefname@preamble{footnote}{Fodnote}{Fodnoter}% + \crefname@preamble{theorem}{Teorem}{Teoremer}% + \crefname@preamble{lemma}{Lemma}{Lemma}% + \crefname@preamble{corollary}{F\o lgeslutning}{F\o lgeslutninger}% + \crefname@preamble{proposition}{Udsagn}{Udsagn}% + \crefname@preamble{definition}{Definition}{Definitioner}% + \crefname@preamble{result}{Resultat}{Resultater}% + \crefname@preamble{example}{Eksempel}{Eksempler}% + \crefname@preamble{remark}{Bem\ae rkning}{Bem\ae rkninger}% + \crefname@preamble{note}{Note}{Noter}% + \crefname@preamble{algorithm}{Algoritme}{Algoritmer}% + \crefname@preamble{line}{Linje}{Linjer}% + % + \else% + \crefname@preamble{equation}{ligning}{ligninger}% + \crefname@preamble{figure}{figur}{figurer}% + \crefname@preamble{table}{tabel}{tabeller}% + \crefname@preamble{page}{side}{sider}% + \crefname@preamble{part}{del}{dele}% + \crefname@preamble{chapter}{kapitel}{kapitler}% + \crefname@preamble{section}{afsnit}{afsnit}% + \crefname@preamble{appendix}{appendiks}{appendiks}% + \crefname@preamble{enumi}{punkt}{punkter}% + \crefname@preamble{footnote}{fodnote}{fodnoter}% + \crefname@preamble{theorem}{teorem}{teoremer}% + \crefname@preamble{lemma}{lemma}{lemma}% + \crefname@preamble{corollary}{f\o lgeslutning}{f\o lgeslutninger}% + \crefname@preamble{proposition}{udsagn}{udsagn}% + \crefname@preamble{definition}{definition}{definitioner}% + \crefname@preamble{result}{resultat}{resultater}% + \crefname@preamble{example}{eksempel}{eksempler}% + \crefname@preamble{remark}{bem\ae rkning}{bem\ae rkninger}% + \crefname@preamble{note}{note}{noter}% + \crefname@preamble{algorithm}{algoritme}{algoritmer}% + \crefname@preamble{line}{linje}{linjer}% + \fi% + \def\cref@language{danish}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{danish}{% + \PackageInfo{cleveref}{loaded `danish' language definitions}% + \renewcommand{\crefrangeconjunction@preamble}{ til\nobreakspace}% + \renewcommand\crefrangepreconjunction@preamble{}% + \renewcommand\crefrangepostconjunction@preamble{}% + \renewcommand{\crefpairconjunction@preamble}{ og\nobreakspace}% + \renewcommand{\crefmiddleconjunction@preamble}{, }% + \renewcommand{\creflastconjunction@preamble}{ og\nobreakspace}% + \renewcommand{\crefpairgroupconjunction@preamble}{ og\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction@preamble}{, }% + \renewcommand{\creflastgroupconjunction@preamble}{ og\nobreakspace}% + % + \Crefname{equation}{Ligning}{Ligninger}% + \Crefname{figure}{Figur}{Figurer}% + \Crefname{subfigure}{Figur}{Figurer}% + \Crefname{table}{Tabel}{Tabeller}% + \Crefname{subtable}{Tabel}{Tabeller}% + \Crefname{page}{Side}{Sider}% + \Crefname{part}{Del}{Dele}% + \Crefname{chapter}{Kapitel}{Kapitler}% + \Crefname{section}{Afsnit}{Afsnit}% + \Crefname{subsection}{Afsnit}{Afsnit}% + \Crefname{subsubsection}{Afsnit}{Afsnit}% + \Crefname{appendix}{Appendiks}{Appendiks}% + \Crefname{subappendix}{Appendiks}{Appendiks}% + \Crefname{subsubappendix}{Appendiks}{Appendiks}% + \Crefname{subsubsubappendix}{Appendiks}{Appendiks}% + \Crefname{enumi}{Punkt}{Punkter}% + \Crefname{enumii}{Punkt}{Punkter}% + \Crefname{enumiii}{Punkt}{Punkter}% + \Crefname{enumiv}{Punkt}{Punkter}% + \Crefname{enumv}{Punkt}{Punkter}% + \Crefname{footnote}{Fodnote}{Fodnoter}% + \Crefname{theorem}{Teorem}{Teoremer}% + \Crefname{lemma}{Lemma}{Lemma}% + \Crefname{corollary}{F\o lgeslutning}{F\o lgeslutninger}% + \Crefname{proposition}{Udsagn}{Udsagn}% + \Crefname{definition}{Definition}{Definitioner}% + \Crefname{result}{Resultat}{Resultater}% + \Crefname{example}{Eksempel}{Eksempler}% + \Crefname{remark}{Bem\ae rkning}{Bem\ae rkninger}% + \Crefname{note}{Note}{Noter}% + \Crefname{algorithm}{Algoritme}{Algoritmer}% + \Crefname{line}{Linje}{Linjer}% + % + \if@cref@capitalise% + \crefname{equation}{Ligning}{Ligninger}% + \crefname{figure}{Figur}{Figurer}% + \crefname{subfigure}{Figur}{Figurer}% + \crefname{table}{Tabel}{Tabeller}% + \crefname{subtable}{Tabel}{Tabeller}% + \crefname{page}{Side}{Sider}% + \crefname{part}{Del}{Dele}% + \crefname{chapter}{Kapitel}{Kapitler}% + \crefname{section}{Afsnit}{Afsnit}% + \crefname{subsection}{Afsnit}{Afsnit}% + \crefname{subsubsection}{Afsnit}{Afsnit}% + \crefname{appendix}{Appendiks}{Appendiks}% + \crefname{subappendix}{Appendiks}{Appendiks}% + \crefname{subsubappendix}{Appendiks}{Appendiks}% + \crefname{subsubsubappendix}{Appendiks}{Appendiks}% + \crefname{enumi}{Punkt}{Punkter}% + \crefname{enumii}{Punkt}{Punkter}% + \crefname{enumiii}{Punkt}{Punkter}% + \crefname{enumiv}{Punkt}{Punkter}% + \crefname{enumv}{Punkt}{Punkter}% + \crefname{footnote}{Fodnote}{Fodnoter}% + \crefname{theorem}{Teorem}{Teoremer}% + \crefname{lemma}{Lemma}{Lemma}% + \crefname{corollary}{F\o lgeslutning}{F\o lgeslutninger}% + \crefname{proposition}{Udsagn}{Udsagn}% + \crefname{definition}{Definition}{Definitioner}% + \crefname{result}{Resultat}{Resultater}% + \crefname{example}{Eksempel}{Eksempler}% + \crefname{remark}{Bem\ae rkning}{Bem\ae rkninger}% + \crefname{note}{Note}{Noter}% + \crefname{algorithm}{Algoritme}{Algoritmer}% + \crefname{line}{Linje}{Linjer}% + % + \else% + \crefname{equation}{ligning}{ligninger}% + \crefname{figure}{figur}{figurer}% + \crefname{subfigure}{figur}{figurer}% + \crefname{table}{tabel}{tabeller}% + \crefname{subtable}{tabel}{tabeller}% + \crefname{page}{side}{sider}% + \crefname{part}{del}{dele}% + \crefname{chapter}{kapitel}{kapitler}% + \crefname{section}{afsnit}{afsnit}% + \crefname{subsection}{afsnit}{afsnit}% + \crefname{subsubsection}{afsnit}{afsnit}% + \crefname{appendix}{appendiks}{appendiks}% + \crefname{subappendix}{appendiks}{appendiks}% + \crefname{subsubappendix}{appendiks}{appendiks}% + \crefname{subsubsubappendix}{appendiks}{appendiks}% + \crefname{enumi}{punkt}{punkter}% + \crefname{enumii}{punkt}{punkter}% + \crefname{enumiii}{punkt}{punkter}% + \crefname{enumiv}{punkt}{punkter}% + \crefname{enumv}{punkt}{punkter}% + \crefname{footnote}{fodnote}{fodnoter}% + \crefname{theorem}{teorem}{teoremer}% + \crefname{lemma}{lemma}{lemma}% + \crefname{corollary}{f\o lgeslutning}{f\o lgeslutninger}% + \crefname{proposition}{udsagn}{udsagn}% + \crefname{definition}{definition}{definitioner}% + \crefname{result}{resultat}{resultater}% + \crefname{example}{eksempel}{eksempler}% + \crefname{remark}{bem\ae rkning}{bem\ae rkninger}% + \crefname{note}{note}{noter}% + \crefname{algorithm}{algoritme}{algoritmer}% + \crefname{line}{linje}{linjer}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{esperanto}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ \^gis\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ kaj\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ kaj\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ kaj\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{ kaj\nobreakspace}% + \Crefname@preamble{equation}{Ekvacio}{Ekvacioj}% + \Crefname@preamble{part}{Parto}{Partoj}% + \Crefname@preamble{chapter}{\^Capitro}{\^Capitroj}% + \Crefname@preamble{section}{Sekcio}{Sekcioj}% + \Crefname@preamble{appendix}{Aldono}{Aldonoj}% + \Crefname@preamble{enumi}{Punkto}{Punktoj}% + \Crefname@preamble{footnote}{Piednoto}{Piednotoj}% + \Crefname@preamble{figure}{Figuro}{Figuroj}% + \Crefname@preamble{table}{Tabelo}{Tabeloj}% + \Crefname@preamble{theorem}{Teoremo}{Teoremoj}% + \Crefname@preamble{lemma}{Lemo}{Lemoj}% + \Crefname@preamble{corollary}{Korolario}{Korolarioj}% + \Crefname@preamble{proposition}{Propozicio}{Propozicioj}% + \Crefname@preamble{definition}{Defino}{Definoj}% + \Crefname@preamble{result}{Rezulto}{Rezultoj}% + \Crefname@preamble{example}{Ekzemplo}{Ekzemploj}% + \Crefname@preamble{remark}{Rimarko}{Rimarkoj}% + \Crefname@preamble{note}{Noto}{Notoj}% + \Crefname@preamble{algorithm}{Algoritmo}{Algoritmoj}% + \Crefname@preamble{listing}{Listado}{Listadoj}% + \Crefname@preamble{line}{Linio}{Linioj}% + \if@cref@capitalise% + \crefname@preamble{equation}{Ekvacio}{Ekvacioj}% + \crefname@preamble{part}{Parto}{Partoj}% + \crefname@preamble{chapter}{\^Capitro}{\^Capitroj}% + \crefname@preamble{section}{Sekcio}{Sekcioj}% + \crefname@preamble{appendix}{Aldono}{Aldonoj}% + \crefname@preamble{enumi}{Punkto}{Punktoj}% + \crefname@preamble{footnote}{Piednoto}{Piednotoj}% + \crefname@preamble{figure}{Figuro}{Figuroj}% + \crefname@preamble{table}{Tabelo}{Tabeloj}% + \crefname@preamble{theorem}{Teoremo}{Teoremoj}% + \crefname@preamble{lemma}{Lemo}{Lemoj}% + \crefname@preamble{corollary}{Korolario}{Korolarioj}% + \crefname@preamble{proposition}{Propozicio}{Propozicioj}% + \crefname@preamble{definition}{Defino}{Definoj}% + \crefname@preamble{result}{Rezulto}{Rezultoj}% + \crefname@preamble{example}{Ekzemplo}{Ekzemploj}% + \crefname@preamble{remark}{Rimarko}{Rimarkoj}% + \crefname@preamble{note}{Noto}{Notoj}% + \crefname@preamble{algorithm}{Algoritmo}{Algoritmoj}% + \crefname@preamble{listing}{Listado}{Listadoj}% + \crefname@preamble{line}{Linio}{Linioj}% + \else% + \crefname@preamble{equation}{ekvacio}{ekvacioj}% + \crefname@preamble{part}{parto}{partoj}% + \crefname@preamble{chapter}{\^capitro}{\^capitroj}% + \crefname@preamble{section}{sekcio}{sekcioj}% + \crefname@preamble{appendix}{aldono}{aldonoj}% + \crefname@preamble{enumi}{punkto}{punktoj}% + \crefname@preamble{footnote}{piednoto}{piednotoj}% + \crefname@preamble{figure}{figuro}{figuroj}% + \crefname@preamble{table}{tabelo}{tabeloj}% + \crefname@preamble{theorem}{teoremo}{teoremoj}% + \crefname@preamble{lemma}{lemo}{lemoj}% + \crefname@preamble{corollary}{korolario}{korolarioj}% + \crefname@preamble{proposition}{propozicio}{propozicioj}% + \crefname@preamble{definition}{defino}{definoj}% + \crefname@preamble{result}{rezulto}{rezultoj}% + \crefname@preamble{example}{ekzemplo}{ekzemploj}% + \crefname@preamble{remark}{rimarko}{rimarkoj}% + \crefname@preamble{note}{noto}{notoj}% + \crefname@preamble{algorithm}{algoritmo}{algoritmoj}% + \crefname@preamble{listing}{listado}{listadoj}% + \crefname@preamble{line}{linio}{linioj}% + \fi% + \def\cref@language{esperanto}% + }}% end \DeclareOption and \AtBeginDocument +\cref@addlanguagedefs{esperanto}{% + \PackageInfo{cleveref}{loaded `esperanto' language definitions}% + \renewcommand{\crefrangeconjunction}{ \^gis\nobreakspace}% + \renewcommand{\crefrangepreconjunction}{}% + \renewcommand{\crefrangepostconjunction}{}% + \renewcommand{\crefpairconjunction}{ kaj\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ kaj\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ kaj\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ kaj\nobreakspace}% + \Crefname{equation}{Ekvacio}{Ekvacioj}% + \Crefname{part}{Parto}{Partoj}% + \Crefname{chapter}{\^Capitro}{\^Capitroj}% + \Crefname{section}{Sekcio}{Sekcioj}% + \Crefname{appendix}{Aldono}{Aldonoj}% + \Crefname{enumi}{Punkto}{Punktoj}% + \Crefname{footnote}{Piednoto}{Piednotoj}% + \Crefname{figure}{Figuro}{Figuroj}% + \Crefname{table}{Tabelo}{Tabeloj}% + \Crefname{theorem}{Teoremo}{Teoremoj}% + \Crefname{lemma}{Lemo}{Lemoj}% + \Crefname{corollary}{Korolario}{Korolarioj}% + \Crefname{proposition}{Propozicio}{Propozicioj}% + \Crefname{definition}{Defino}{Definoj}% + \Crefname{result}{Rezulto}{Rezultoj}% + \Crefname{example}{Ekzemplo}{Ekzemploj}% + \Crefname{remark}{Rimarko}{Rimarkoj}% + \Crefname{note}{Noto}{Notoj}% + \Crefname{algorithm}{Algoritmo}{Algoritmoj}% + \Crefname{listing}{Listado}{Listadoj}% + \Crefname{line}{Linio}{Linioj}% + \if@cref@capitalise% + \crefname{equation}{Ekvacio}{Ekvacioj}% + \crefname{part}{Parto}{Partoj}% + \crefname{chapter}{\^Capitro}{\^Capitroj}% + \crefname{section}{Sekcio}{Sekcioj}% + \crefname{appendix}{Aldono}{Aldonoj}% + \crefname{enumi}{Punkto}{Punktoj}% + \crefname{footnote}{Piednoto}{Piednotoj}% + \crefname{figure}{Figuro}{Figuroj}% + \crefname{table}{Tabelo}{Tabeloj}% + \crefname{theorem}{Teoremo}{Teoremoj}% + \crefname{lemma}{Lemo}{Lemoj}% + \crefname{corollary}{Korolario}{Korolarioj}% + \crefname{proposition}{Propozicio}{Propozicioj}% + \crefname{definition}{Defino}{Definoj}% + \crefname{result}{Rezulto}{Rezultoj}% + \crefname{example}{Ekzemplo}{Ekzemploj}% + \crefname{remark}{Rimarko}{Rimarkoj}% + \crefname{note}{Noto}{Notoj}% + \crefname{algorithm}{Algoritmo}{Algoritmoj}% + \crefname{listing}{Listado}{Listadoj}% + \crefname{line}{Linio}{Linioj}% + \else% + \crefname{equation}{ekvacio}{ekvacioj}% + \crefname{part}{parto}{partoj}% + \crefname{chapter}{\^capitro}{\^capitroj}% + \crefname{section}{sekcio}{sekcioj}% + \crefname{appendix}{aldono}{aldonoj}% + \crefname{enumi}{punkto}{punktoj}% + \crefname{footnote}{piednoto}{piednotoj}% + \crefname{figure}{figuro}{figuroj}% + \crefname{table}{tabelo}{tabeloj}% + \crefname{theorem}{teoremo}{teoremoj}% + \crefname{lemma}{lemo}{lemoj}% + \crefname{corollary}{korolario}{korolarioj}% + \crefname{proposition}{propozicio}{propozicioj}% + \crefname{definition}{defino}{definoj}% + \crefname{result}{rezulto}{rezultoj}% + \crefname{example}{ekzemplo}{ekzemploj}% + \crefname{remark}{rimarko}{rimarkoj}% + \crefname{note}{noto}{notoj}% + \crefname{algorithm}{algoritmo}{algoritmoj}% + \crefname{listing}{listado}{listadoj}% + \crefname{line}{linio}{linioj}% + \fi}% end \cref@loadlanguagedefs +\DeclareOption{swedish}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ till\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ och\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ och\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ och\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{, och\nobreakspace}% + % + \Crefname@preamble{equation}{Ekvation}{Ekvation}% + \Crefname@preamble{figure}{Figur}{Figur}% + \Crefname@preamble{table}{Tabell}{Tabell}% + \Crefname@preamble{page}{Sida}{Sida}% + \Crefname@preamble{part}{Del}{Del}% + \Crefname@preamble{chapter}{Kapitel}{Kapitel}% + \Crefname@preamble{section}{Avsnitt}{Avsnitt}% + \Crefname@preamble{appendix}{Appendix}{Appendix}% + \Crefname@preamble{enumi}{Punkt}{Punkt}% + \Crefname@preamble{footnote}{Fotnot}{Fotnot}% + \Crefname@preamble{theorem}{Sats}{Sats}% + \Crefname@preamble{lemma}{Lemma}{Lemmas}% + \Crefname@preamble{corollary}{F\"oljdsats}{F\"oljdsats}% + \Crefname@preamble{proposition}{Proposition}{Proposition}% + \Crefname@preamble{definition}{Definition}{Definition}% + \Crefname@preamble{result}{Resultat}{Resultat}% + \Crefname@preamble{example}{Exempel}{Exempel}% + \Crefname@preamble{remark}{Anm\"arkning}{Anm\"arkning}% + \Crefname@preamble{note}{Notering}{Notering}% + \Crefname@preamble{algorithm}{Algoritm}{Algoritm}% + \Crefname@preamble{listing}{Kodlistning}{Kodlistning}% + \Crefname@preamble{line}{Rad}{Rad}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname@preamble{equation}{Ekv.}{Ekv.}% + \crefname@preamble{figure}{Fig.}{Fig.}% + \else% + \crefname@preamble{equation}{Ekvation}{Ekvation}% + \crefname@preamble{figure}{Figur}{Figur}% + \fi% + \crefname@preamble{page}{Sida}{Sida}% + \crefname@preamble{table}{Tabell}{Tabell}% + \crefname@preamble{part}{Del}{Del}% + \crefname@preamble{chapter}{Kapitel}{Kapitel}% + \crefname@preamble{section}{Avsnitt}{Avsnitt}% + \crefname@preamble{appendix}{Appendix}{Appendix}% + \crefname@preamble{enumi}{Punkt}{Punkt}% + \crefname@preamble{footnote}{Fotnot}{Fotnot}% + \crefname@preamble{theorem}{Sats}{Sats}% + \crefname@preamble{lemma}{Lemma}{Lemmas}% + \crefname@preamble{corollary}{F\"oljdsats}{F\"oljdsats}% + \crefname@preamble{proposition}{Proposition}{Proposition}% + \crefname@preamble{definition}{Definition}{Definition}% + \crefname@preamble{result}{Resultat}{Resultat}% + \crefname@preamble{example}{Exempel}{Exempel}% + \crefname@preamble{remark}{Anm\"arkning}{Anm\"arkning}% + \crefname@preamble{note}{Notering}{Notering}% + \crefname@preamble{algorithm}{Algoritm}{Algoritm}% + \crefname@preamble{listing}{Kodlistning}{Kodlistning}% + \crefname@preamble{line}{Rad}{Rad}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname@preamble{equation}{ekv.}{ekv.}% + \crefname@preamble{figure}{fig.}{fig.}% + \crefname@preamble{page}{s.}{ss.}% + \else% + \crefname@preamble{equation}{ekvation}{ekvation}% + \crefname@preamble{figure}{figur}{figur}% + \crefname@preamble{page}{sida}{sida}% + \fi% + \crefname@preamble{table}{tabell}{tabell}% + \crefname@preamble{part}{del}{del}% + \crefname@preamble{chapter}{kapitel}{kapitel}% + \crefname@preamble{section}{avsnitt}{avsnitt}% + \crefname@preamble{appendix}{appendix}{appendix}% + \crefname@preamble{enumi}{punkt}{punkt}% + \crefname@preamble{footnote}{fotnot}{fotnot}% + \crefname@preamble{theorem}{sats}{sats}% + \crefname@preamble{lemma}{lemma}{lemmas}% + \crefname@preamble{corollary}{f\"oljdsats}{f\"oljdsats}% + \crefname@preamble{proposition}{proposition}{proposition}% + \crefname@preamble{definition}{definition}{definition}% + \crefname@preamble{result}{resultat}{resultat}% + \crefname@preamble{example}{exempel}{exempel}% + \crefname@preamble{remark}{anm\"arkning}{anm\"arkning}% + \crefname@preamble{note}{notering}{notering}% + \crefname@preamble{algorithm}{algoritm}{algoritm}% + \crefname@preamble{listing}{kodlistning}{kodlistning}% + \crefname@preamble{line}{rad}{rad}% + \fi% + \def\cref@language{swedish}% + }}% end \AtBeginDocument and \DeclareOption +\cref@addlanguagedefs{swedish}{% + \PackageInfo{cleveref}{loaded `swedish' language definitions}% + \renewcommand{\crefrangeconjunction}{ till\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ och\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ och\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ and\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{, and\nobreakspace}% + % + \Crefname{equation}{Ekvation}{Ekvation}% + \Crefname{figure}{Figur}{Figur}% + \Crefname{subfigure}{Figur}{Figur}% + \Crefname{table}{Tabell}{Tabell}% + \Crefname{subtable}{Tabell}{Tabell}% + \Crefname{page}{Sida}{Sida}% + \Crefname{part}{Del}{Del}% + \Crefname{chapter}{Kapitel}{Kapitel}% + \Crefname{section}{Avsnitt}{Avsnitt}% + \Crefname{subsection}{Avsnitt}{Avsnitt}% + \Crefname{subsubsection}{Avsnitt}{Avsnitt}% + \Crefname{appendix}{Appendix}{Appendix}% + \Crefname{subappendix}{Appendix}{Appendix}% + \Crefname{subsubappendix}{Appendix}{Appendix}% + \Crefname{subsubsubappendix}{Appendix}{Appendix}% + \Crefname{enumi}{Punkt}{Punkt}% + \Crefname{enumii}{Punkt}{Punkt}% + \Crefname{enumiii}{Punkt}{Punkt}% + \Crefname{enumiv}{Punkt}{Punkt}% + \Crefname{enumv}{Punkt}{Punkt}% + \Crefname{footnote}{Fotnot}{Fotnot}% + \Crefname{theorem}{Sats}{Sats}% + \Crefname{lemma}{Lemma}{Lemmas}% + \Crefname{corollary}{F\"oljdsats}{F\"oljdsats}% + \Crefname{proposition}{Proposition}{Proposition}% + \Crefname{definition}{Definition}{Definition}% + \Crefname{result}{Resultat}{Resultat}% + \Crefname{example}{Exempel}{Exempel}% + \Crefname{remark}{Anm\"arkning}{Anm\"arkning}% + \Crefname{note}{Notering}{Notering}% + \Crefname{algorithm}{Algoritm}{Algoritm}% + \Crefname{listing}{Kodlistning}{Kodlistning}% + \Crefname{line}{Rad}{Rad}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname{equation}{Ekv.}{Ekv.}% + \crefname{figure}{Fig.}{Fig.}% + \crefname{subfigure}{Fig.}{Fig.}% + \else% + \crefname{equation}{Ekvation}{Ekvation}% + \crefname{figure}{Figur}{Figur}% + \crefname{subfigure}{Figur}{Figur}% + \fi% + \crefname{page}{Sida}{Sida}% + \crefname{table}{Tablell}{Tabell}% + \crefname{subtable}{Tabell}{Tabell}% + \crefname{part}{Del}{Del}% + \crefname{chapter}{Kapitel}{Kapitel}% + \crefname{section}{Avsnitt}{Avsnitt}% + \crefname{subsection}{Avsnitt}{Avsnitt}% + \crefname{subsubsection}{Avsnitt}{Avsnitt}% + \crefname{appendix}{Appendix}{Appendix}% + \crefname{subappendix}{Appendix}{Appendix}% + \crefname{subsubappendix}{Appendix}{Appendix}% + \crefname{subsubsubappendix}{Appendix}{Appendix}% + \crefname{enumi}{Punkt}{Punkt}% + \crefname{enumii}{Punkt}{Punkt}% + \crefname{enumiii}{Punkt}{Punkt}% + \crefname{enumiv}{Punkt}{Punkt}% + \crefname{enumv}{Punkt}{Punkt}% + \crefname{footnote}{Fotnot}{Fotnot}% + \crefname{theorem}{Sats}{Sats}% + \crefname{lemma}{Lemma}{Lemmas}% + \crefname{corollary}{F\"oljdsats}{F\"oljdsats}% + \crefname{proposition}{Proposition}{Proposition}% + \crefname{definition}{Definition}{Definition}% + \crefname{result}{Resultat}{Resultat}% + \crefname{example}{Exempel}{Exempel}% + \crefname{remark}{Anm\"arkning}{Anm\"arkning}% + \crefname{note}{Notering}{Notering}% + \crefname{algorithm}{Algoritm}{Algoritm}% + \crefname{listing}{Kodlistning}{Kodlistnings}% + \crefname{line}{Rad}{Rad}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname{equation}{ekv.}{ekv.}% + \crefname{figure}{fig.}{fig.}% + \crefname{subfigure}{fig.}{fig.}% + \crefname{page}{s.}{ss.}% + \else% + \crefname{equation}{ekvation}{ekvation}% + \crefname{figure}{figur}{figur}% + \crefname{subfigure}{figur}{figur}% + \crefname{page}{sida}{sida}% + \fi% + \crefname{table}{tablell}{tabell}% + \crefname{subtable}{tabell}{tabell}% + \crefname{part}{del}{del}% + \crefname{chapter}{kapitel}{kapitel}% + \crefname{section}{avsnitt}{avsnitt}% + \crefname{subsection}{avsnitt}{avsnitt}% + \crefname{subsubsection}{avsnitt}{avsnitt}% + \crefname{appendix}{appendix}{appendix}% + \crefname{subappendix}{appendix}{appendix}% + \crefname{subsubappendix}{appendix}{appendix}% + \crefname{subsubsubappendix}{appendix}{appendix}% + \crefname{enumi}{punkt}{punkt}% + \crefname{enumii}{punkt}{punkt}% + \crefname{enumiii}{punkt}{punkt}% + \crefname{enumiv}{punkt}{punkt}% + \crefname{enumv}{punkt}{punkt}% + \crefname{footnote}{fotnot}{fotnot}% + \crefname{theorem}{sats}{sats}% + \crefname{lemma}{lemma}{lemmas}% + \crefname{corollary}{f\"oljdsats}{f\"oljdsats}% + \crefname{proposition}{proposition}{proposition}% + \crefname{definition}{definition}{definition}% + \crefname{result}{resultat}{resultat}% + \crefname{example}{exempel}{exempel}% + \crefname{remark}{anm\"arkning}{anm\"arkning}% + \crefname{note}{notering}{notering}% + \crefname{algorithm}{algoritm}{algoritm}% + \crefname{listing}{kodlistning}{kodlistnings}% + \crefname{line}{rad}{rad}% + \fi}% end \cref@addlangagedefs +\DeclareOption{brazilian}{% + \AtBeginDocument{% + \def\crefrangeconjunction@preamble{ a\nobreakspace}% + \def\crefrangepreconjunction@preamble{}% + \def\crefrangepostconjunction@preamble{}% + \def\crefpairconjunction@preamble{ e\nobreakspace}% + \def\crefmiddleconjunction@preamble{, }% + \def\creflastconjunction@preamble{ e\nobreakspace}% + \def\crefpairgroupconjunction@preamble{ e\nobreakspace}% + \def\crefmiddlegroupconjunction@preamble{, }% + \def\creflastgroupconjunction@preamble{, e\nobreakspace}% + % + \Crefname@preamble{equation}{Equa\c c\~ao}{Equa\c c\~oes}% + \Crefname@preamble{figure}{Figura}{Figuras}% + \Crefname@preamble{table}{Tabela}{Tabelas}% + \Crefname@preamble{page}{P\'agina}{P\'aginas}% + \Crefname@preamble{part}{Parte}{Partes}% + \Crefname@preamble{chapter}{Cap\'itulo}{Cap\'itulos}% + \Crefname@preamble{section}{Se\c c\~ao}{Se\c c\~oes}% + \Crefname@preamble{appendix}{Ap\^endice}{Ap\^endices}% + \Crefname@preamble{enumi}{Item}{Itens}% + \Crefname@preamble{footnote}{Nota de rodap\'e}{Notas de rodap\'e}% + \Crefname@preamble{theorem}{Teorema}{Teoremas}% + \Crefname@preamble{lemma}{Lema}{Lemas}% + \Crefname@preamble{corollary}{Corol\'ario}{Corol\'arios}% + \Crefname@preamble{proposition}{Proposi\c c\~ao}{Proposi\c c\~oes}% + \Crefname@preamble{definition}{Defini\c c\~ao}{Defini\c c\~oes}% + \Crefname@preamble{result}{Resultado}{Resultados}% + \Crefname@preamble{example}{Exemplo}{Exemplos}% + \Crefname@preamble{remark}{Observa\c c\~ao}{Observa\c c\~oes}% + \Crefname@preamble{note}{Nota}{Notas}% + \Crefname@preamble{algorithm}{Algoritmo}{Algoritmos}% + \Crefname@preamble{listing}{Listagem}{Listagens}% + \Crefname@preamble{line}{Linha}{Linhas}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname@preamble{equation}{Eq.}{Eqs.}% + \crefname@preamble{figure}{Fig.}{Figs.}% + \else% + \crefname@preamble{equation}{Equa\c c\~ao}{Equa\c c\~oes}% + \crefname@preamble{figure}{Figura}{Figuras}% + \fi% + \crefname@preamble{page}{P\'agina}{P\'aginas}% + \crefname@preamble{table}{Tabela}{Tabelas}% + \crefname@preamble{part}{Parte}{Partes}% + \crefname@preamble{chapter}{Cap\'itulo}{Cap\'itulos}% + \crefname@preamble{section}{Se\c c\~ao}{Se\c c\~oes}% + \crefname@preamble{appendix}{Ap\^endice}{Ap\^endices}% + \crefname@preamble{enumi}{Item}{Itens}% + \crefname@preamble{footnote}{Nota de rodap\'e}{Notas de rodap\'e}% + \crefname@preamble{theorem}{Teorema}{Teoremas}% + \crefname@preamble{lemma}{Lema}{Lemas}% + \crefname@preamble{corollary}{Corol\'ario}{Corol\'arios}% + \crefname@preamble{proposition}{Proposi\c c\~ao}{Proposi\c c\~oes}% + \crefname@preamble{definition}{Defini\c c\~ao}{Defini\c c\~oes}% + \crefname@preamble{result}{Resultado}{Resultados}% + \crefname@preamble{example}{Exemplo}{Exemplos}% + \crefname@preamble{remark}{Observa\c c\~ao}{Observa\c c\~oes}% + \crefname@preamble{note}{Nota}{Notas}% + \crefname@preamble{algorithm}{Algoritmo}{Algoritmos}% + \crefname@preamble{listing}{Listagem}{Listagens}% + \crefname@preamble{line}{Linha}{Linhas}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname@preamble{equation}{eq.}{eqs.}% + \crefname@preamble{figure}{fig.}{figs.}% + \else% + \crefname@preamble{equation}{equa\c c\~ao}{equa\c c\~oes}% + \crefname@preamble{figure}{figura}{figuras}% + \fi% + \crefname@preamble{page}{p\'agina}{p\'aginas}% + \crefname@preamble{table}{tabela}{tabelas}% + \crefname@preamble{part}{parte}{partes}% + \crefname@preamble{chapter}{cap\'itulo}{cap\'itulos}% + \crefname@preamble{section}{se\c c\~ao}{se\c c\~oes}% + \crefname@preamble{appendix}{ap\^endice}{ap\^endices}% + \crefname@preamble{enumi}{item}{itens}% + \crefname@preamble{footnote}{nota de rodap\'e}{notas de rodap\'e}% + \crefname@preamble{theorem}{teorema}{teoremas}% + \crefname@preamble{lemma}{lema}{lemas}% + \crefname@preamble{corollary}{corol\'ario}{corol\'arios}% + \crefname@preamble{proposition}{proposi\c c\~ao}{proposi\c c\~oes}% + \crefname@preamble{definition}{defini\c c\~ao}{defini\c c\~oes}% + \crefname@preamble{result}{resultado}{resultados}% + \crefname@preamble{example}{exemplo}{exemplos}% + \crefname@preamble{remark}{observa\c c\~ao}{observa\c c\~oes}% + \crefname@preamble{note}{nota}{notas}% + \crefname@preamble{algorithm}{algoritmo}{algoritmos}% + \crefname@preamble{listing}{listagem}{listagens}% + \crefname@preamble{line}{linha}{linhas}% + \fi% + \def\cref@language{brazilian}% + }}% end \AtBeginDocument and \DeclareOption +\cref@addlanguagedefs{brazilian}{% + \PackageInfo{cleveref}{loaded `brazilian' language definitions}% + \renewcommand{\crefrangeconjunction}{ a\nobreakspace}% + \renewcommand\crefrangepreconjunction{}% + \renewcommand\crefrangepostconjunction{}% + \renewcommand{\crefpairconjunction}{ e\nobreakspace}% + \renewcommand{\crefmiddleconjunction}{, }% + \renewcommand{\creflastconjunction}{ e\nobreakspace}% + \renewcommand{\crefpairgroupconjunction}{ e\nobreakspace}% + \renewcommand{\crefmiddlegroupconjunction}{, }% + \renewcommand{\creflastgroupconjunction}{ e\nobreakspace}% + % + \Crefname{equation}{Equa\c c\~ao}{Equa\c c\~oes}% + \Crefname{figure}{Figura}{Figuras}% + \Crefname{subfigure}{Figura}{Figuras}% + \Crefname{table}{Tabela}{Tabelas}% + \Crefname{subtable}{Tabela}{Tabelas}% + \Crefname{page}{P\'agina}{P\'aginas}% + \Crefname{part}{Parte}{Partes}% + \Crefname{chapter}{Cap\'itulo}{Cap\'itulos}% + \Crefname{section}{Se\c c\~ao}{Se\c c\~oes}% + \Crefname{subsection}{Se\c c\~ao}{Se\c c\~oes}% + \Crefname{subsubsection}{Se\c c\~ao}{Se\c c\~oes}% + \Crefname{appendix}{Ap\^endice}{Ap\^endices}% + \Crefname{subappendix}{Ap\^endice}{Ap\^endices}% + \Crefname{subsubappendix}{Ap\^endice}{Ap\^endices}% + \Crefname{subsubsubappendix}{Ap\^endice}{Ap\^endices}% + \Crefname{enumi}{Item}{Itens}% + \Crefname{enumii}{Item}{Itens}% + \Crefname{enumiii}{Item}{Itens}% + \Crefname{enumiv}{Item}{Itens}% + \Crefname{enumv}{Item}{Itens}% + \Crefname{footnote}{Nota de rodap\'e}{Notas de rodap\'e}% + \Crefname{theorem}{Teorema}{Teoremas}% + \Crefname{lemma}{Lema}{Lemas}% + \Crefname{corollary}{Corol\'ario}{Corol\'arios}% + \Crefname{proposition}{Proposi\c c\~ao}{Proposi\c c\~oes}% + \Crefname{definition}{Defini\c c\~ao}{Defini\c c\~oes}% + \Crefname{result}{Resultado}{Resultados}% + \Crefname{example}{Exemplo}{Exemplos}% + \Crefname{remark}{Observa\c c\~ao}{Observa\c c\~oes}% + \Crefname{note}{Nota}{Notas}% + \Crefname{algorithm}{Algoritmo}{Algoritmos}% + \Crefname{listing}{Listagem}{Listagens}% + \Crefname{line}{Linha}{Linhas}% + % + \if@cref@capitalise% capitalise set + \if@cref@abbrev% + \crefname{equation}{Eq.}{Eqs.}% + \crefname{figure}{Fig.}{Figs.}% + \crefname{subfigure}{Fig.}{Figs.}% + \else% + \crefname{equation}{Equa\c c\~ao}{Equa\c c\~oes}% + \crefname{figure}{Figura}{Figuras}% + \crefname{subfigure}{Figura}{Figuras}% + \fi% + \crefname{page}{P\'agina}{P\'aginas}% + \crefname{table}{Tabela}{Tabelas}% + \crefname{subtable}{Tabela}{Tabelas}% + \crefname{part}{Parte}{Partes}% + \crefname{chapter}{Cap\'itulo}{Cap\'itulos}% + \crefname{section}{Se\c c\~ao}{Se\c c\~oes}% + \crefname{subsection}{Se\c c\~ao}{Se\c c\~oes}% + \crefname{subsubsection}{Se\c c\~ao}{Se\c c\~oes}% + \crefname{appendix}{Ap\^endice}{Ap\^endices}% + \crefname{subappendix}{Ap\^endice}{Ap\^endices}% + \crefname{subsubappendix}{Ap\^endice}{Ap\^endices}% + \crefname{subsubsubappendix}{Ap\^endice}{Ap\^endices}% + \crefname{enumi}{Item}{Itens}% + \crefname{enumii}{Item}{Itens}% + \crefname{enumiii}{Item}{Itens}% + \crefname{enumiv}{Item}{Itens}% + \crefname{enumv}{Item}{Itens}% + \crefname{footnote}{Nota de rodap\'e}{Notas de rodap\'e}% + \crefname{theorem}{Teorema}{Teoremas}% + \crefname{lemma}{Lema}{Lemas}% + \crefname{corollary}{Corol\'ario}{Corol\'arios}% + \crefname{proposition}{Proposi\c c\~ao}{Proposi\c c\~oes}% + \crefname{definition}{Defini\c c\~ao}{Defini\c c\~oes}% + \crefname{result}{Resultado}{Resultados}% + \crefname{example}{Exemplo}{Exemplos}% + \crefname{remark}{Observa\c c\~ao}{Observa\c c\~oes}% + \crefname{note}{Nota}{Notas}% + \crefname{algorithm}{Algoritmo}{Algoritmos}% + \crefname{listing}{Listagem}{Listagens}% + \crefname{line}{Linha}{Linhas}% + % + \else% capitalise unset + \if@cref@abbrev% + \crefname{equation}{eq.}{eqs.}% + \crefname{figure}{fig.}{figs.}% + \crefname{subfigure}{fig.}{figs.}% + \else% + \crefname{equation}{equa\c c\~ao}{equa\c c\~oes}% + \crefname{figure}{figura}{figuras}% + \crefname{subfigure}{figura}{figuras}% + \fi% + \crefname{table}{tabela}{tabelas}% + \crefname{subtable}{tabela}{tabelas}% + \crefname{page}{p\'agina}{p\'aginas}% + \crefname{part}{parte}{partes}% + \crefname{chapter}{cap\'itulo}{cap\'itulos}% + \crefname{section}{se\c c\~ao}{se\c c\~oes}% + \crefname{subsection}{se\c c\~ao}{se\c c\~oes}% + \crefname{subsubsection}{se\c c\~ao}{se\c c\~oes}% + \crefname{appendix}{ap\^endice}{ap\^endices}% + \crefname{subappendix}{ap\^endice}{ap\^endices}% + \crefname{subsubappendix}{ap\^endice}{ap\^endices}% + \crefname{subsubsubappendix}{ap\^endice}{ap\^endices}% + \crefname{enumi}{item}{itens}% + \crefname{enumii}{item}{itens}% + \crefname{enumiii}{item}{itens}% + \crefname{enumiv}{item}{itens}% + \crefname{enumv}{item}{itens}% + \crefname{footnote}{nota de rodap\'e}{notas de rodap\'e}% + \crefname{theorem}{teorema}{teoremas}% + \crefname{lemma}{lema}{lemas}% + \crefname{corollary}{corol\'ario}{corol\'arios}% + \crefname{proposition}{proposi\c c\~ao}{proposi\c c\~oes}% + \crefname{definition}{defini\c c\~ao}{defini\c c\~oes}% + \crefname{result}{resultado}{resultados}% + \crefname{example}{exemplo}{exemplos}% + \crefname{remark}{observa\c c\~ao}{observa\c c\~oes}% + \crefname{note}{nota}{notas}% + \crefname{algorithm}{algoritmo}{algoritmos}% + \crefname{listing}{listagem}{listagens}% + \crefname{line}{linha}{linhas}% + \fi}% end \cref@addlangagedefs +\edef\@curroptions{\@ptionlist{\@currname.\@currext}}% +\@expandtwoargs\in@{,capitalise,}{% + ,\@classoptionslist,\@curroptions,}% +\ifin@% + \ExecuteOptions{capitalise}% +\else% + \@expandtwoargs\in@{,capitalize,}{% + ,\@classoptionslist,\@curroptions,}% + \ifin@% + \ExecuteOptions{capitalise}% + \fi% +\fi% +\@expandtwoargs\in@{,nameinlink,}{% + ,\@classoptionslist,\@curroptions,}% +\ifin@% + \ExecuteOptions{nameinlink}% +\fi% +\crefdefaultlabelformat{#2#1#3}% +\if@cref@nameinlink% + \creflabelformat{equation}{#2\textup{(#1)}#3}% +\else% + \creflabelformat{equation}{\textup{(#2#1#3)}}% +\fi% +\@labelcrefdefinedefaultformats% +\@ifpackageloaded{polyglossia}% + {\ifcsdef{languagename}% + {\ExecuteOptions{\languagename}}% + {\PackageWarning{cleveref}% + {`polyglossia' loaded but default language not set + - defaulting to english}% + \ExecuteOptions{english}}}% + {\ExecuteOptions{english}}% +\ProcessOptions*\relax% +\AtBeginDocument{% + \edef\@tempa{% + \expandafter\noexpand\csname extras\cref@language\endcsname}% + \@ifundefined{crefrangeconjunction}{% + \let\crefrangeconjunction\crefrangeconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefrangeconjunction\expandafter}% + \expandafter{\crefrangeconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + }% + \@ifundefined{crefrangepreconjunction}{% + \let\crefrangepreconjunction\crefrangepreconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefrangepreconjunction\expandafter}% + \expandafter{\crefrangepreconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + }% + \@ifundefined{crefrangepostconjunction}{% + \let\crefrangepostconjunction\crefrangepostconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefrangepostconjunction\expandafter}% + \expandafter{\crefrangepostconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + }% + \@ifundefined{crefpairconjunction}{% + \let\crefpairconjunction\crefpairconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefpairconjunction\expandafter}% + \expandafter{\crefpairconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + \@ifundefined{crefpairgroupconjunction}{% + \let\crefpairgroupconjunction\crefpairconjunction}{}% + }% + \@ifundefined{crefmiddleconjunction}{% + \let\crefmiddleconjunction\crefmiddleconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefmiddleconjunction\expandafter}% + \expandafter{\crefmiddleconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + \@ifundefined{crefmiddlegroupconjunction}{% + \let\crefmiddlegroupconjunction\crefmiddleconjunction}{}% + }% + \@ifundefined{creflastconjunction}{% + \let\creflastconjunction\creflastconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\creflastconjunction\expandafter}% + \expandafter{\creflastconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + \@ifundefined{creflastgroupconjunction}{% + \edef\creflastgroupconjunction{, \creflastconjunction}}{}% + }% + \@ifundefined{crefpairgroupconjunction}{% + \let\crefpairgroupconjunction% + \crefpairgroupconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefpairgroupconjunction\expandafter}% + \expandafter{\crefpairgroupconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + }% + \@ifundefined{crefmiddlegroupconjunction}{% + \let\crefmiddlegroupconjunction% + \crefmiddlegroupconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\crefmiddlegroupconjunction\expandafter}% + \expandafter{\crefmiddlegroupconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + }% + \@ifundefined{creflastgroupconjunction}{% + \let\creflastgroupconjunction% + \creflastgroupconjunction@preamble% + }{% + \expandafter\def\expandafter\@tempb\expandafter{% + \expandafter\renewcommand\expandafter% + {\expandafter\creflastgroupconjunction\expandafter}% + \expandafter{\creflastgroupconjunction}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempa\expandafter{\@tempb}% + }% + \let\@tempstack\cref@label@types% + \cref@isstackfull{\@tempstack}% + \@whilesw\if@cref@stackfull\fi{% + \edef\@tempa{\cref@stack@top{\@tempstack}}% + \@ifundefined{cref@\@tempa @name}{% + \expandafter\def\expandafter\@tempb\expandafter{% + \csname cref@\@tempa @name\endcsname}% + \expandafter\def\expandafter\@tempc\expandafter{% + \csname cref@\@tempa @name@preamble\endcsname}% + \expandafter\expandafter\expandafter% + \let\expandafter\@tempb\@tempc% + \expandafter\def\expandafter\@tempb\expandafter{% + \csname cref@\@tempa @name@plural\endcsname}% + \expandafter\def\expandafter\@tempc\expandafter{% + \csname cref@\@tempa @name@plural@preamble\endcsname}% + \expandafter\expandafter\expandafter% + \let\expandafter\@tempb\@tempc% + }{% + \edef\@tempb{% + \expandafter\noexpand\csname extras\cref@language\endcsname}% + \expandafter\def\expandafter\@tempc\expandafter{% + \expandafter\crefname\expandafter{\@tempa}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\expandafter\expandafter\@tempc% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter{% + \csname cref@\@tempa @name\endcsname}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\expandafter\expandafter\@tempc% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter{% + \csname cref@\@tempa @name@plural\endcsname}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempb\expandafter{\@tempc}% + }% + \@ifundefined{Cref@\@tempa @name}{% + \expandafter\def\expandafter\@tempb\expandafter{% + \csname Cref@\@tempa @name\endcsname}% + \expandafter\def\expandafter\@tempc\expandafter{% + \csname Cref@\@tempa @name@preamble\endcsname}% + \expandafter\expandafter\expandafter% + \let\expandafter\@tempb\@tempc% + \expandafter\def\expandafter\@tempb\expandafter{% + \csname Cref@\@tempa @name@plural\endcsname}% + \expandafter\def\expandafter\@tempc\expandafter{% + \csname Cref@\@tempa @name@plural@preamble\endcsname}% + \expandafter\expandafter\expandafter% + \let\expandafter\@tempb\@tempc% + }{% + \edef\@tempb{% + \expandafter\noexpand\csname extras\cref@language\endcsname}% + \expandafter\def\expandafter\@tempc\expandafter{% + \expandafter\Crefname\expandafter{\@tempa}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\expandafter\expandafter\@tempc% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter{% + \csname Cref@\@tempa @name\endcsname}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\expandafter\expandafter\@tempc% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter{% + \csname Cref@\@tempa @name@plural\endcsname}}% + \expandafter\expandafter\expandafter\cref@addto% + \expandafter\@tempb\expandafter{\@tempc}% + }% + \@ifundefined{cref@\@tempa @format}{% + \@ifundefined{cref@\@tempa @name}{}{% + \expandafter\@crefdefineformat\expandafter{\@tempa}}}{}% + \@ifundefined{crefrange@\@tempa @format}{% + \@ifundefined{cref@\@tempa @name@plural}{}{% + \expandafter\@crefrangedefineformat\expandafter{\@tempa}}}{}% + \@ifundefined{cref@\@tempa @format@first}{% + \@ifundefined{cref@\@tempa @name@plural}{}{% + \expandafter\@crefdefinemultiformat\expandafter{\@tempa}}}{}% + \@ifundefined{crefrange@\@tempa @format@first}{% + \@ifundefined{cref@\@tempa @name@plural}{}{% + \expandafter\@crefrangedefinemultiformat% + \expandafter{\@tempa}}}{}% + \cref@stack@pop{\@tempstack}% + \cref@isstackfull{\@tempstack}}% + \@ifundefined{cref@subsection@name}{% + \let\cref@subsection@name\cref@section@name% + \let\cref@subsection@name@plural\cref@section@name@plural}{}% + \@ifundefined{Cref@subsection@name}{% + \let\Cref@subsection@name\Cref@section@name% + \let\Cref@subsection@name@plural\Cref@section@name@plural}{}% + \@ifundefined{cref@subsection@format}{% + \let\cref@subsection@format\cref@section@format}{}% + \@ifundefined{Cref@subsection@format}{% + \let\Cref@subsection@format\Cref@section@format}{}% + \@ifundefined{crefrange@subsection@format}{% + \let\crefrange@subsection@format% + \crefrange@section@format}{}% + \@ifundefined{Crefrange@subsection@format}{% + \let\Crefrange@subsection@format% + \Crefrange@section@format}{}% + \@ifundefined{cref@subsection@format@first}{% + \let\cref@subsection@format@first% + \cref@section@format@first}{}% + \@ifundefined{Cref@subsection@format@first}{% + \let\Cref@subsection@format@first% + \Cref@section@format@first}{}% + \@ifundefined{cref@subsection@format@second}{% + \let\cref@subsection@format@second% + \cref@section@format@second}{}% + \@ifundefined{Cref@subsection@format@second}{% + \let\Cref@subsection@format@second% + \Cref@section@format@second}{}% + \@ifundefined{cref@subsection@format@middle}{% + \let\cref@subsection@format@middle% + \cref@section@format@middle}{}% + \@ifundefined{Cref@subsection@format@middle}{% + \let\Cref@subsection@format@middle% + \Cref@section@format@middle}{}% + \@ifundefined{cref@subsection@format@last}{% + \let\cref@subsection@format@last% + \cref@section@format@last}{}% + \@ifundefined{Cref@subsection@format@last}{% + \let\Cref@subsection@format@last% + \Cref@section@format@last}{}% + \@ifundefined{crefrange@subsection@format@first}{% + \let\crefrange@subsection@format@first% + \crefrange@section@format@first}{}% + \@ifundefined{Crefrange@subsection@format@first}{% + \let\Crefrange@subsection@format@first% + \Crefrange@section@format@first}{}% + \@ifundefined{crefrange@subsection@format@second}{% + \let\crefrange@subsection@format@second% + \crefrange@section@format@second}{}% + \@ifundefined{Crefrange@subsection@format@second}{% + \let\Crefrange@subsection@format@second% + \Crefrange@section@format@second}{}% + \@ifundefined{crefrange@subsection@format@middle}{% + \let\crefrange@subsection@format@middle% + \crefrange@section@format@middle}{}% + \@ifundefined{Crefrange@subsection@format@middle}{% + \let\Crefrange@subsection@format@middle% + \Crefrange@section@format@middle}{}% + \@ifundefined{crefrange@subsection@format@last}{% + \let\crefrange@subsection@format@last% + \crefrange@section@format@last}{}% + \@ifundefined{Crefrange@subsection@format@last}{% + \let\Crefrange@subsection@format@last% + \Crefrange@section@format@last}{}% + \@ifundefined{cref@subsubsection@name}{% + \let\cref@subsubsection@name\cref@section@name% + \let\cref@subsubsection@name@plural\cref@section@name@plural}{}% + \@ifundefined{Cref@subsection@name}{% + \let\Cref@subsection@name\Cref@section@name% + \let\Cref@subsection@name@plural\Cref@section@name@plural}{}% + \@ifundefined{cref@subsubsection@format}{% + \let\cref@subsubsection@format% + \cref@subsection@format}{}% + \@ifundefined{Cref@subsubsection@format}{% + \let\Cref@subsubsection@format% + \Cref@subsection@format}{}% + \@ifundefined{crefrange@subsubsection@format}{% + \let\crefrange@subsubsection@format% + \crefrange@subsection@format}{}% + \@ifundefined{Crefrange@subsubsection@format}{% + \let\Crefrange@subsubsection@format% + \Crefrange@subsection@format}{}% + \@ifundefined{cref@subsubsection@format@first}{% + \let\cref@subsubsection@format@first% + \cref@subsection@format@first}{}% + \@ifundefined{Cref@subsubsection@format@first}{% + \let\Cref@subsubsection@format@first% + \Cref@subsection@format@first}{}% + \@ifundefined{cref@subsubsection@format@second}{% + \let\cref@subsubsection@format@second% + \cref@subsection@format@second}{}% + \@ifundefined{Cref@subsubsection@format@second}{% + \let\Cref@subsubsection@format@second% + \Cref@subsection@format@second}{}% + \@ifundefined{cref@subsubsection@format@middle}{% + \let\cref@subsubsection@format@middle% + \cref@subsection@format@middle}{}% + \@ifundefined{Cref@subsubsection@format@middle}{% + \let\Cref@subsubsection@format@middle% + \Cref@subsection@format@middle}{}% + \@ifundefined{cref@subsubsection@format@last}{% + \let\cref@subsubsection@format@last% + \cref@subsection@format@last}{}% + \@ifundefined{Cref@subsubsection@format@last}{% + \let\Cref@subsubsection@format@last% + \Cref@subsection@format@last}{}% + \@ifundefined{crefrange@subsubsection@format@first}{% + \let\crefrange@subsubsection@format@first% + \crefrange@subsection@format@first}{}% + \@ifundefined{Crefrange@subsubsection@format@first}{% + \let\Crefrange@subsubsection@format@first% + \Crefrange@subsection@format@first}{}% + \@ifundefined{crefrange@subsubsection@format@second}{% + \let\crefrange@subsubsection@format@second% + \crefrange@subsection@format@second}{}% + \@ifundefined{Crefrange@subsubsection@format@second}{% + \let\Crefrange@subsubsection@format@second% + \Crefrange@subsection@format@second}{}% + \@ifundefined{crefrange@subsubsection@format@middle}{% + \let\crefrange@subsubsection@format@middle% + \crefrange@subsection@format@middle}{}% + \@ifundefined{Crefrange@subsubsection@format@middle}{% + \let\Crefrange@subsubsection@format@middle% + \Crefrange@subsection@format@middle}{}% + \@ifundefined{crefrange@subsubsection@format@last}{% + \let\crefrange@subsubsection@format@last% + \crefrange@subsection@format@last}{}% + \@ifundefined{Crefrange@subsubsection@format@last}{% + \let\Crefrange@subsubsection@format@last% + \Crefrange@subsection@format@last}{}% + \@ifundefined{cref@subappendix@name}{% + \let\cref@subappendix@name\cref@appendix@name% + \let\cref@subappendix@name@plural% + \cref@appendix@name@plural}{}% + \@ifundefined{Cref@subappendix@name}{% + \let\Cref@subappendix@name\Cref@section@name% + \let\Cref@subappendixsection@name@plural% + \Cref@appendix@name@plural}{}% + \@ifundefined{cref@subappendix@format}{% + \let\cref@subappendix@format\cref@appendix@format}{}% + \@ifundefined{Cref@subappendix@format}{% + \let\Cref@subappendix@format\Cref@appendix@format}{}% + \@ifundefined{crefrange@subappendix@format}{% + \let\crefrange@subappendix@format% + \crefrange@appendix@format}{}% + \@ifundefined{Crefrange@subappendix@format}{% + \let\Crefrange@subappendix@format% + \Crefrange@appendix@format}{}% + \@ifundefined{cref@subappendix@format@first}{% + \let\cref@subappendix@format@first% + \cref@appendix@format@first}{}% + \@ifundefined{Cref@subappendix@format@first}{% + \let\Cref@subappendix@format@first% + \Cref@appendix@format@first}{}% + \@ifundefined{cref@subappendix@format@second}{% + \let\cref@subappendix@format@second% + \cref@appendix@format@second}{}% + \@ifundefined{Cref@subappendix@format@second}{% + \let\Cref@subappendix@format@second% + \Cref@appendix@format@second}{}% + \@ifundefined{cref@subappendix@format@middle}{% + \let\cref@subappendix@format@middle% + \cref@appendix@format@middle}{}% + \@ifundefined{Cref@subappendix@format@middle}{% + \let\Cref@subappendix@format@middle% + \Cref@appendix@format@middle}{}% + \@ifundefined{cref@subappendix@format@last}{% + \let\cref@subappendix@format@last% + \cref@appendix@format@last}{}% + \@ifundefined{Cref@subappendix@format@last}{% + \let\Cref@subappendix@format@last% + \Cref@appendix@format@last}{}% + \@ifundefined{crefrange@subappendix@format@first}{% + \let\crefrange@subappendix@format@first% + \crefrange@appendix@format@first}{}% + \@ifundefined{Crefrange@subappendix@format@first}{% + \let\Crefrange@subappendix@format@first% + \Crefrange@appendix@format@first}{}% + \@ifundefined{crefrange@subappendix@format@second}{% + \let\crefrange@subappendix@format@second% + \crefrange@appendix@format@second}{}% + \@ifundefined{Crefrange@subappendix@format@second}{% + \let\Crefrange@subappendix@format@second% + \Crefrange@appendix@format@second}{}% + \@ifundefined{crefrange@subappendix@format@middle}{% + \let\crefrange@subappendix@format@middle% + \crefrange@appendix@format@middle}{}% + \@ifundefined{Crefrange@subappendix@format@middle}{% + \let\Crefrange@subappendix@format@middle% + \Crefrange@appendix@format@middle}{}% + \@ifundefined{crefrange@subappendix@format@last}{% + \let\crefrange@subappendix@format@last% + \crefrange@appendix@format@last}{}% + \@ifundefined{Crefrange@subappendix@format@last}{% + \let\Crefrange@subappendix@format@last% + \Crefrange@appendix@format@last}{}% + \@ifundefined{cref@subsubappendix@name}{% + \let\cref@subsubappendix@name\cref@appendix@name% + \let\cref@subsubappendix@name@plural% + \cref@appendix@name@plural}{}% + \@ifundefined{Cref@subsubappendix@name}{% + \let\Cref@subsubappendix@name\Cref@section@name% + \let\Cref@subsubappendixsection@name@plural% + \Cref@appendix@name@plural}{}% + \@ifundefined{cref@subsubappendix@format}{% + \let\cref@subsubappendix@format% + \cref@subappendix@format}{}% + \@ifundefined{Cref@subsubappendix@format}{% + \let\Cref@subsubappendix@format% + \Cref@subappendix@format}{}% + \@ifundefined{crefrange@subsubappendix@format}{% + \let\crefrange@subsubappendix@format% + \crefrange@subappendix@format}{}% + \@ifundefined{Crefrange@subsubappendix@format}{% + \let\Crefrange@subsubappendix@format% + \Crefrange@subappendix@format}{}% + \@ifundefined{cref@subsubappendix@format@first}{% + \let\cref@subsubappendix@format@first% + \cref@subappendix@format@first}{}% + \@ifundefined{Cref@subsubappendix@format@first}{% + \let\Cref@subsubappendix@format@first% + \Cref@subappendix@format@first}{}% + \@ifundefined{cref@subsubappendix@format@second}{% + \let\cref@subsubappendix@format@second% + \cref@subappendix@format@second}{}% + \@ifundefined{Cref@subsubappendix@format@second}{% + \let\Cref@subsubappendix@format@second% + \Cref@subappendix@format@second}{}% + \@ifundefined{cref@subsubappendix@format@middle}{% + \let\cref@subsubappendix@format@middle% + \cref@subappendix@format@middle}{}% + \@ifundefined{Cref@subsubappendix@format@middle}{% + \let\Cref@subsubappendix@format@middle% + \Cref@subappendix@format@middle}{}% + \@ifundefined{cref@subsubappendix@format@last}{% + \let\cref@subsubappendix@format@last% + \cref@subappendix@format@last}{}% + \@ifundefined{Cref@subsubappendix@format@last}{% + \let\Cref@subsubappendix@format@last% + \Cref@subappendix@format@last}{}% + \@ifundefined{crefrange@subsubappendix@format@first}{% + \let\crefrange@subsubappendix@format@first% + \crefrange@subappendix@format@first}{}% + \@ifundefined{Crefrange@subsubappendix@format@first}{% + \let\Crefrange@subsubappendix@format@first% + \Crefrange@subappendix@format@first}{}% + \@ifundefined{crefrange@subsubappendix@format@second}{% + \let\crefrange@subsubappendix@format@second% + \crefrange@subappendix@format@second}{}% + \@ifundefined{Crefrange@subsubappendix@format@second}{% + \let\Crefrange@subsubappendix@format@second% + \Crefrange@subappendix@format@second}{}% + \@ifundefined{crefrange@subsubappendix@format@middle}{% + \let\crefrange@subsubappendix@format@middle% + \crefrange@subappendix@format@middle}{}% + \@ifundefined{Crefrange@subsubappendix@format@middle}{% + \let\Crefrange@subsubappendix@format@middle% + \Crefrange@subappendix@format@middle}{}% + \@ifundefined{crefrange@subsubappendix@format@last}{% + \let\crefrange@subsubappendix@format@last% + \crefrange@subappendix@format@last}{}% + \@ifundefined{Crefrange@subsubappendix@format@last}{% + \let\Crefrange@subsubappendix@format@last% + \Crefrange@subappendix@format@last}{}% + \@ifundefined{cref@subsubsubappendix@format}{% + \let\cref@subsubsubappendix@format% + \cref@subsubappendix@format}{}% + \@ifundefined{Cref@subsubsubappendix@format}{% + \let\Cref@subsubsubappendix@format% + \Cref@subsubappendix@format}{}% + \@ifundefined{crefrange@subsubsubappendix@format}{% + \let\crefrange@subsubsubappendix@format% + \crefrange@subsubappendix@format}{}% + \@ifundefined{Crefrange@subsubsubappendix@format}{% + \let\Crefrange@subsubsubappendix@format% + \Crefrange@subsubappendix@format}{}% + \@ifundefined{cref@subsubsubappendix@format@first}{% + \let\cref@subsubsubappendix@format@first% + \cref@subsubappendix@format@first}{}% + \@ifundefined{Cref@subsubsubappendix@format@first}{% + \let\Cref@subsubsubappendix@format@first% + \Cref@subsubappendix@format@first}{}% + \@ifundefined{cref@subsubsubappendix@format@second}{% + \let\cref@subsubsubappendix@format@second% + \cref@subsubappendix@format@second}{}% + \@ifundefined{Cref@subsubsubappendix@format@second}{% + \let\Cref@subsubsubappendix@format@second% + \Cref@subsubappendix@format@second}{}% + \@ifundefined{cref@subsubsubappendix@format@middle}{% + \let\cref@subsubsubappendix@format@middle% + \cref@subsubappendix@format@middle}{}% + \@ifundefined{Cref@subsubsubappendix@format@middle}{% + \let\Cref@subsubsubappendix@format@middle% + \Cref@subsubappendix@format@middle}{}% + \@ifundefined{cref@subsubsubappendix@format@last}{% + \let\cref@subsubsubappendix@format@last% + \cref@subsubappendix@format@last}{}% + \@ifundefined{Cref@subsubsubappendix@format@last}{% + \let\Cref@subsubsubappendix@format@last% + \Cref@subsubappendix@format@last}{}% + \@ifundefined{crefrange@subsubsubappendix@format@first}{% + \let\crefrange@subsubsubappendix@format@first% + \crefrange@subsubappendix@format@first}{}% + \@ifundefined{Crefrange@subsubsubappendix@format@first}{% + \let\Crefrange@subsubsubappendix@format@first% + \Crefrange@subsubappendix@format@first}{}% + \@ifundefined{crefrange@subsubsubappendix@format@second}{% + \let\crefrange@subsubsubappendix@format@second% + \crefrange@subsubappendix@format@second}{}% + \@ifundefined{Crefrange@subsubsubappendix@format@second}{% + \let\Crefrange@subsubsubappendix@format@second% + \Crefrange@subsubappendix@format@second}{}% + \@ifundefined{crefrange@subsubsubappendix@format@middle}{% + \let\crefrange@subsubsubappendix@format@middle% + \crefrange@subsubappendix@format@middle}{}% + \@ifundefined{Crefrange@subsubsubappendix@format@middle}{% + \let\Crefrange@subsubsubappendix@format@middle% + \Crefrange@subsubappendix@format@middle}{}% + \@ifundefined{crefrange@subsubsubappendix@format@last}{% + \let\crefrange@subsubsubappendix@format@last% + \crefrange@subsubappendix@format@last}{}% + \@ifundefined{Crefrange@subsubsubappendix@format@last}{% + \let\Crefrange@subsubsubappendix@format@last% + \Crefrange@subsubappendix@format@last}{}% + \@ifundefined{cref@subfigure@format}{% + \let\cref@subfigure@format% + \cref@figure@format}{}% + \@ifundefined{Cref@subfigure@format}{% + \let\Cref@subfigure@format% + \Cref@figure@format}{}% + \@ifundefined{crefrange@subfigure@format}{% + \let\crefrange@subfigure@format% + \crefrange@figure@format}{}% + \@ifundefined{Crefrange@subfigure@format}{% + \let\Crefrange@subfigure@format% + \Crefrange@figure@format}{}% + \@ifundefined{cref@subfigure@format@first}{% + \let\cref@subfigure@format@first% + \cref@figure@format@first}{}% + \@ifundefined{Cref@subfigure@format@first}{% + \let\Cref@subfigure@format@first% + \Cref@figure@format@first}{}% + \@ifundefined{cref@subfigure@format@second}{% + \let\cref@subfigure@format@second% + \cref@figure@format@second}{}% + \@ifundefined{Cref@subfigure@format@second}{% + \let\Cref@subfigure@format@second% + \Cref@figure@format@second}{}% + \@ifundefined{cref@subfigure@format@middle}{% + \let\cref@subfigure@format@middle% + \cref@figure@format@middle}{}% + \@ifundefined{Cref@subfigure@format@middle}{% + \let\Cref@subfigure@format@middle% + \Cref@figure@format@middle}{}% + \@ifundefined{cref@subfigure@format@last}{% + \let\cref@subfigure@format@last% + \cref@figure@format@last}{}% + \@ifundefined{Cref@subfigure@format@last}{% + \let\Cref@subfigure@format@last% + \Cref@figure@format@last}{}% + \@ifundefined{crefrange@subfigure@format@first}{% + \let\crefrange@subfigure@format@first% + \crefrange@figure@format@first}{}% + \@ifundefined{Crefrange@subfigure@format@first}{% + \let\Crefrange@subfigure@format@first% + \Crefrange@figure@format@first}{}% + \@ifundefined{crefrange@subfigure@format@second}{% + \let\crefrange@subfigure@format@second% + \crefrange@figure@format@second}{}% + \@ifundefined{Crefrange@subfigure@format@second}{% + \let\Crefrange@subfigure@format@second% + \Crefrange@figure@format@second}{}% + \@ifundefined{crefrange@subfigure@format@middle}{% + \let\crefrange@subfigure@format@middle% + \crefrange@figure@format@middle}{}% + \@ifundefined{Crefrange@subfigure@format@middle}{% + \let\Crefrange@subfigure@format@middle% + \Crefrange@figure@format@middle}{}% + \@ifundefined{crefrange@subfigure@format@last}{% + \let\crefrange@subfigure@format@last% + \crefrange@figure@format@last}{}% + \@ifundefined{Crefrange@subfigure@format@last}{% + \let\Crefrange@subfigure@format@last% + \Crefrange@figure@format@last}{}% + \@ifundefined{cref@subtable@format}{% + \let\cref@subtable@format% + \cref@table@format}{}% + \@ifundefined{Cref@subtable@format}{% + \let\Cref@subtable@format% + \Cref@table@format}{}% + \@ifundefined{crefrange@subtable@format}{% + \let\crefrange@subtable@format% + \crefrange@table@format}{}% + \@ifundefined{Crefrange@subtable@format}{% + \let\Crefrange@subtable@format% + \Crefrange@table@format}{}% + \@ifundefined{cref@subtable@format@first}{% + \let\cref@subtable@format@first% + \cref@table@format@first}{}% + \@ifundefined{Cref@subtable@format@first}{% + \let\Cref@subtable@format@first% + \Cref@table@format@first}{}% + \@ifundefined{cref@subtable@format@second}{% + \let\cref@subtable@format@second% + \cref@table@format@second}{}% + \@ifundefined{Cref@subtable@format@second}{% + \let\Cref@subtable@format@second% + \Cref@table@format@second}{}% + \@ifundefined{cref@subtable@format@middle}{% + \let\cref@subtable@format@middle% + \cref@table@format@middle}{}% + \@ifundefined{Cref@subtable@format@middle}{% + \let\Cref@subtable@format@middle% + \Cref@table@format@middle}{}% + \@ifundefined{cref@subtable@format@last}{% + \let\cref@subtable@format@last% + \cref@table@format@last}{}% + \@ifundefined{Cref@subtable@format@last}{% + \let\Cref@subtable@format@last% + \Cref@table@format@last}{}% + \@ifundefined{crefrange@subtable@format@first}{% + \let\crefrange@subtable@format@first% + \crefrange@table@format@first}{}% + \@ifundefined{Crefrange@subtable@format@first}{% + \let\Crefrange@subtable@format@first% + \Crefrange@table@format@first}{}% + \@ifundefined{crefrange@subtable@format@second}{% + \let\crefrange@subtable@format@second% + \crefrange@table@format@second}{}% + \@ifundefined{Crefrange@subtable@format@second}{% + \let\Crefrange@subtable@format@second% + \Crefrange@table@format@second}{}% + \@ifundefined{crefrange@subtable@format@middle}{% + \let\crefrange@subtable@format@middle% + \crefrange@table@format@middle}{}% + \@ifundefined{Crefrange@subtable@format@middle}{% + \let\Crefrange@subtable@format@middle% + \Crefrange@table@format@middle}{}% + \@ifundefined{crefrange@subtable@format@last}{% + \let\crefrange@subtable@format@last% + \crefrange@table@format@last}{}% + \@ifundefined{Crefrange@subtable@format@last}{% + \let\Crefrange@subtable@format@last% + \Crefrange@table@format@last}{}% + \@ifundefined{cref@subequation@format}{% + \let\cref@subequation@format% + \cref@equation@format}{}% + \@ifundefined{Cref@subequation@format}{% + \let\Cref@subequation@format% + \Cref@equation@format}{}% + \@ifundefined{crefrange@subequation@format}{% + \let\crefrange@subequation@format% + \crefrange@equation@format}{}% + \@ifundefined{Crefrange@subequation@format}{% + \let\Crefrange@subequation@format% + \Crefrange@equation@format}{}% + \@ifundefined{cref@subequation@format@first}{% + \let\cref@subequation@format@first% + \cref@equation@format@first}{}% + \@ifundefined{Cref@subequation@format@first}{% + \let\Cref@subequation@format@first% + \Cref@equation@format@first}{}% + \@ifundefined{cref@subequation@format@second}{% + \let\cref@subequation@format@second% + \cref@equation@format@second}{}% + \@ifundefined{Cref@subequation@format@second}{% + \let\Cref@subequation@format@second% + \Cref@equation@format@second}{}% + \@ifundefined{cref@subequation@format@middle}{% + \let\cref@subequation@format@middle% + \cref@equation@format@middle}{}% + \@ifundefined{Cref@subequation@format@middle}{% + \let\Cref@subequation@format@middle% + \Cref@equation@format@middle}{}% + \@ifundefined{cref@subequation@format@last}{% + \let\cref@subequation@format@last% + \cref@equation@format@last}{}% + \@ifundefined{Cref@subequation@format@last}{% + \let\Cref@subequation@format@last% + \Cref@equation@format@last}{}% + \@ifundefined{crefrange@subequation@format@first}{% + \let\crefrange@subequation@format@first% + \crefrange@equation@format@first}{}% + \@ifundefined{Crefrange@subequation@format@first}{% + \let\Crefrange@subequation@format@first% + \Crefrange@equation@format@first}{}% + \@ifundefined{crefrange@subequation@format@second}{% + \let\crefrange@subequation@format@second% + \crefrange@equation@format@second}{}% + \@ifundefined{Crefrange@subequation@format@second}{% + \let\Crefrange@subequation@format@second% + \Crefrange@equation@format@second}{}% + \@ifundefined{crefrange@subequation@format@middle}{% + \let\crefrange@subequation@format@middle% + \crefrange@equation@format@middle}{}% + \@ifundefined{Crefrange@subequation@format@middle}{% + \let\Crefrange@subequation@format@middle% + \Crefrange@equation@format@middle}{}% + \@ifundefined{crefrange@subequation@format@last}{% + \let\crefrange@subequation@format@last% + \crefrange@equation@format@last}{}% + \@ifundefined{Crefrange@subequation@format@last}{% + \let\Crefrange@subequation@format@last% + \Crefrange@equation@format@last}{}% + \@ifundefined{cref@enumii@format}{% + \let\cref@enumii@format% + \cref@enumi@format}{}% + \@ifundefined{Cref@enumii@format}{% + \let\Cref@enumii@format% + \Cref@enumi@format}{}% + \@ifundefined{crefrange@enumii@format}{% + \let\crefrange@enumii@format% + \crefrange@enumi@format}{}% + \@ifundefined{Crefrange@enumii@format}{% + \let\Crefrange@enumii@format% + \Crefrange@enumi@format}{}% + \@ifundefined{cref@enumii@format@first}{% + \let\cref@enumii@format@first% + \cref@enumi@format@first}{}% + \@ifundefined{Cref@enumii@format@first}{% + \let\Cref@enumii@format@first% + \Cref@enumi@format@first}{}% + \@ifundefined{cref@enumii@format@second}{% + \let\cref@enumii@format@second% + \cref@enumi@format@second}{}% + \@ifundefined{Cref@enumii@format@second}{% + \let\Cref@enumii@format@second% + \Cref@enumi@format@second}{}% + \@ifundefined{cref@enumii@format@middle}{% + \let\cref@enumii@format@middle% + \cref@enumi@format@middle}{}% + \@ifundefined{Cref@enumii@format@middle}{% + \let\Cref@enumii@format@middle% + \Cref@enumi@format@middle}{}% + \@ifundefined{cref@enumii@format@last}{% + \let\cref@enumii@format@last% + \cref@enumi@format@last}{}% + \@ifundefined{Cref@enumii@format@last}{% + \let\Cref@enumii@format@last% + \Cref@enumi@format@last}{}% + \@ifundefined{crefrange@enumii@format@first}{% + \let\crefrange@enumii@format@first% + \crefrange@enumi@format@first}{}% + \@ifundefined{Crefrange@enumii@format@first}{% + \let\Crefrange@enumii@format@first% + \Crefrange@enumi@format@first}{}% + \@ifundefined{crefrange@enumii@format@second}{% + \let\crefrange@enumii@format@second% + \crefrange@enumi@format@second}{}% + \@ifundefined{Crefrange@enumii@format@second}{% + \let\Crefrange@enumii@format@second% + \Crefrange@enumi@format@second}{}% + \@ifundefined{crefrange@enumii@format@middle}{% + \let\crefrange@enumii@format@middle% + \crefrange@enumi@format@middle}{}% + \@ifundefined{Crefrange@enumii@format@middle}{% + \let\Crefrange@enumii@format@middle% + \Crefrange@enumi@format@middle}{}% + \@ifundefined{crefrange@enumii@format@last}{% + \let\crefrange@enumii@format@last% + \crefrange@enumi@format@last}{}% + \@ifundefined{Crefrange@enumii@format@last}{% + \let\Crefrange@enumii@format@last% + \Crefrange@enumi@format@last}{}% + \@ifundefined{cref@enumiii@format}{% + \let\cref@enumiii@format% + \cref@enumii@format}{}% + \@ifundefined{Cref@enumiii@format}{% + \let\Cref@enumiii@format% + \Cref@enumii@format}{}% + \@ifundefined{crefrange@enumiii@format}{% + \let\crefrange@enumiii@format% + \crefrange@enumii@format}{}% + \@ifundefined{Crefrange@enumiii@format}{% + \let\Crefrange@enumiii@format% + \Crefrange@enumii@format}{}% + \@ifundefined{cref@enumiii@format@first}{% + \let\cref@enumiii@format@first% + \cref@enumii@format@first}{}% + \@ifundefined{Cref@enumiii@format@first}{% + \let\Cref@enumiii@format@first% + \Cref@enumii@format@first}{}% + \@ifundefined{cref@enumiii@format@second}{% + \let\cref@enumiii@format@second% + \cref@enumii@format@second}{}% + \@ifundefined{Cref@enumiii@format@second}{% + \let\Cref@enumiii@format@second% + \Cref@enumii@format@second}{}% + \@ifundefined{cref@enumiii@format@middle}{% + \let\cref@enumiii@format@middle% + \cref@enumii@format@middle}{}% + \@ifundefined{Cref@enumiii@format@middle}{% + \let\Cref@enumiii@format@middle% + \Cref@enumii@format@middle}{}% + \@ifundefined{cref@enumiii@format@last}{% + \let\cref@enumiii@format@last% + \cref@enumii@format@last}{}% + \@ifundefined{Cref@enumiii@format@last}{% + \let\Cref@enumiii@format@last% + \Cref@enumii@format@last}{}% + \@ifundefined{crefrange@enumiii@format@first}{% + \let\crefrange@enumiii@format@first% + \crefrange@enumii@format@first}{}% + \@ifundefined{Crefrange@enumiii@format@first}{% + \let\Crefrange@enumiii@format@first% + \Crefrange@enumii@format@first}{}% + \@ifundefined{crefrange@enumiii@format@second}{% + \let\crefrange@enumiii@format@second% + \crefrange@enumii@format@second}{}% + \@ifundefined{Crefrange@enumiii@format@second}{% + \let\Crefrange@enumiii@format@second% + \Crefrange@enumii@format@second}{}% + \@ifundefined{crefrange@enumiii@format@middle}{% + \let\crefrange@enumiii@format@middle% + \crefrange@enumii@format@middle}{}% + \@ifundefined{Crefrange@enumiii@format@middle}{% + \let\Crefrange@enumiii@format@middle% + \Crefrange@enumii@format@middle}{}% + \@ifundefined{crefrange@enumiii@format@last}{% + \let\crefrange@enumiii@format@last% + \crefrange@enumii@format@last}{}% + \@ifundefined{Crefrange@enumiii@format@last}{% + \let\Crefrange@enumiii@format@last% + \Crefrange@enumii@format@last}{}% + \@ifundefined{cref@enumiv@format}{% + \let\cref@enumiv@format% + \cref@enumiii@format}{}% + \@ifundefined{Cref@enumiv@format}{% + \let\Cref@enumiv@format% + \Cref@enumiii@format}{}% + \@ifundefined{crefrange@enumiv@format}{% + \let\crefrange@enumiv@format% + \crefrange@enumiii@format}{}% + \@ifundefined{Crefrange@enumiv@format}{% + \let\Crefrange@enumiv@format% + \Crefrange@enumiii@format}{}% + \@ifundefined{cref@enumiv@format@first}{% + \let\cref@enumiv@format@first% + \cref@enumiii@format@first}{}% + \@ifundefined{Cref@enumiv@format@first}{% + \let\Cref@enumiv@format@first% + \Cref@enumiii@format@first}{}% + \@ifundefined{cref@enumiv@format@second}{% + \let\cref@enumiv@format@second% + \cref@enumiii@format@second}{}% + \@ifundefined{Cref@enumiv@format@second}{% + \let\Cref@enumiv@format@second% + \Cref@enumiii@format@second}{}% + \@ifundefined{cref@enumiv@format@middle}{% + \let\cref@enumiv@format@middle% + \cref@enumiii@format@middle}{}% + \@ifundefined{Cref@enumiv@format@middle}{% + \let\Cref@enumiv@format@middle% + \Cref@enumiii@format@middle}{}% + \@ifundefined{cref@enumiv@format@last}{% + \let\cref@enumiv@format@last% + \cref@enumiii@format@last}{}% + \@ifundefined{Cref@enumiv@format@last}{% + \let\Cref@enumiv@format@last% + \Cref@enumiii@format@last}{}% + \@ifundefined{crefrange@enumiv@format@first}{% + \let\crefrange@enumiv@format@first% + \crefrange@enumiii@format@first}{}% + \@ifundefined{Crefrange@enumiv@format@first}{% + \let\Crefrange@enumiv@format@first% + \Crefrange@enumiii@format@first}{}% + \@ifundefined{crefrange@enumiv@format@second}{% + \let\crefrange@enumiv@format@second% + \crefrange@enumiii@format@second}{}% + \@ifundefined{Crefrange@enumiv@format@second}{% + \let\Crefrange@enumiv@format@second% + \Crefrange@enumiii@format@second}{}% + \@ifundefined{crefrange@enumiv@format@middle}{% + \let\crefrange@enumiv@format@middle% + \crefrange@enumiii@format@middle}{}% + \@ifundefined{Crefrange@enumiv@format@middle}{% + \let\Crefrange@enumiv@format@middle% + \Crefrange@enumiii@format@middle}{}% + \@ifundefined{crefrange@enumiv@format@last}{% + \let\crefrange@enumiv@format@last% + \crefrange@enumiii@format@last}{}% + \@ifundefined{Crefrange@enumiv@format@last}{% + \let\Crefrange@enumiv@format@last% + \Crefrange@enumiii@format@last}{}% + \@ifundefined{cref@enumv@format}{% + \let\cref@enumv@format% + \cref@enumiv@format}{}% + \@ifundefined{Cref@enumv@format}{% + \let\Cref@enumv@format% + \Cref@enumiv@format}{}% + \@ifundefined{crefrange@enumv@format}{% + \let\crefrange@enumv@format% + \crefrange@enumiv@format}{}% + \@ifundefined{Crefrange@enumv@format}{% + \let\Crefrange@enumv@format% + \Crefrange@enumiv@format}{}% + \@ifundefined{cref@enumv@format@first}{% + \let\cref@enumv@format@first% + \cref@enumiv@format@first}{}% + \@ifundefined{Cref@enumv@format@first}{% + \let\Cref@enumv@format@first% + \Cref@enumiv@format@first}{}% + \@ifundefined{cref@enumv@format@second}{% + \let\cref@enumv@format@second% + \cref@enumiv@format@second}{}% + \@ifundefined{Cref@enumv@format@second}{% + \let\Cref@enumv@format@second% + \Cref@enumiv@format@second}{}% + \@ifundefined{cref@enumv@format@middle}{% + \let\cref@enumv@format@middle% + \cref@enumiv@format@middle}{}% + \@ifundefined{Cref@enumv@format@middle}{% + \let\Cref@enumv@format@middle% + \Cref@enumiv@format@middle}{}% + \@ifundefined{cref@enumv@format@last}{% + \let\cref@enumv@format@last% + \cref@enumiv@format@last}{}% + \@ifundefined{Cref@enumv@format@last}{% + \let\Cref@enumv@format@last% + \Cref@enumiv@format@last}{}% + \@ifundefined{crefrange@enumv@format@first}{% + \let\crefrange@enumv@format@first% + \crefrange@enumiv@format@first}{}% + \@ifundefined{Crefrange@enumv@format@first}{% + \let\Crefrange@enumv@format@first% + \Crefrange@enumiv@format@first}{}% + \@ifundefined{crefrange@enumv@format@second}{% + \let\crefrange@enumv@format@second% + \crefrange@enumiv@format@second}{}% + \@ifundefined{Crefrange@enumv@format@second}{% + \let\Crefrange@enumv@format@second% + \Crefrange@enumiv@format@second}{}% + \@ifundefined{crefrange@enumv@format@middle}{% + \let\crefrange@enumv@format@middle% + \crefrange@enumiv@format@middle}{}% + \@ifundefined{Crefrange@enumv@format@middle}{% + \let\Crefrange@enumv@format@middle% + \Crefrange@enumiv@format@middle}{}% + \@ifundefined{crefrange@enumv@format@last}{% + \let\crefrange@enumv@format@last% + \crefrange@enumiv@format@last}{}% + \@ifundefined{Crefrange@enumv@format@last}{% + \let\Crefrange@enumv@format@last% + \Crefrange@enumiv@format@last}{}% + \let\cref@language\relax% +}% end of \AtBeginDocument +\InputIfFileExists{cleveref.cfg}% + {\PackageInfo{cleveref}{reading definitions from cleveref.cfg}}{}% +\endinput +%% +%% End of file `cleveref.sty'. diff --git a/publications/activation-functions/content.tex b/publications/activation-functions/content.tex new file mode 100644 index 0000000..cf34b82 --- /dev/null +++ b/publications/activation-functions/content.tex @@ -0,0 +1,176 @@ +%!TEX root = main.tex +\section{Introduction} +TODO\cite{Thoma:2014} + +\section{Terminology} +TODO + + +\section{Activation Functions} +Nonlinear, differentiable activation functions are important for neural +networks to allow them to learn nonlinear decision boundaries. One of the +simplest and most widely used activation functions for \glspl{CNN} is +\gls{ReLU}~\cite{AlexNet-2012}, but others such as +\gls{ELU}~\cite{clevert2015fast}, \gls{PReLU}~\cite{he2015delving}, softplus~\cite{7280459} +and softsign~\cite{bergstra2009quadratic} have been proposed. The baseline uses +\gls{ELU}. + +Activation functions differ in the range of values and the derivative. The +definitions and other comparisons of eleven activation functions are given +in~\cref{table:activation-functions-overview}. + +Theoretical explanations why one activation function is preferable to another +in some scenarios are the following: +\begin{itemize} + \item \textbf{Vanishing Gradient}: Activation functions like tanh and the + logistic function saturate outside of the interval $[-5, 5]$. This + means weight updates are very small for preceding neurons, which is + especially a problem for very deep or recurrent networks as described + in~\cite{bengio1994learning}. Even if the neurons learn eventually, + learning is slower~\cite{AlexNet-2012}. + \item \textbf{Dying ReLU}: The dying \gls{ReLU} problem is similar to the + vanishing gradient problem. The gradient of the \gls{ReLU} function + is~0 for all non-positive values. This means if all elements of the + training set lead to a negative input for one neuron at any point in + the training process, this neuron does not get any update and hence + does not participate in the training process. This problem is + addressed in~\cite{maas2013rectifier}. + \item \textbf{Mean unit activation}: Some publications + like~\cite{clevert2015fast,BatchNormalization-2015} claim that mean + unit activations close to 0 are desirable. They claim that this + speeds up learning by reducing the bias shift effect. The speedup + of learning is supported by many experiments. Hence the possibility + of negative activations is desirable. +\end{itemize} + +Those considerations are listed +in~\cref{table:properties-of-activation-functions} for 11~activation functions. +Besides the theoretical properties, empiric results are provided +in~\cref{table:CIFAR-100-accuracies-activation-functions,table:CIFAR-100-timing-activation-functions}. +The baseline network was adjusted so that every activation function except the +one of the output layer was replaced by one of the 11~activation functions. + +As expected, \gls{PReLU} and \gls{ELU} performed best. Unexpected was that the +logistic function, tanh and softplus performed worse than the identity and it +is unclear why the pure-softmax network performed so much better than the +logistic function. +One hypothesis why the logistic function performs so bad is that it cannot +produce negative outputs. Hence the logistic$^-$ function was developed: +\[\text{logistic}^{-}(x) = \frac{1}{1+ e^{-x}} - 0.5\] +The logistic$^-$ function has the same derivative as the logistic function and +hence still suffers from the vanishing gradient problem. +The network with the logistic$^-$ function achieves an accuracy which is +\SI{11.30}{\percent} better than the network with the logistic function, but is +still \SI{5.54}{\percent} worse than the \gls{ELU}. + +Similarly, \gls{ReLU} was adjusted to have a negative output: +\[\text{ReLU}^{-}(x) = \max(-1, x) = \text{ReLU}(x+1) - 1\] +The results of \gls{ReLU}$^-$ are much worse on the training set, but perform +similar on the test set. The result indicates that the possibility of hard zero +and thus a sparse representation is either not important or similar important as +the possibility to produce negative outputs. This +contradicts~\cite{glorot2011deep,srivastava2014understanding}. + +A key difference between the logistic$^-$ function and \gls{ELU} is that +\gls{ELU} does neither suffers from the vanishing gradient problem nor is its +range of values bound. For this reason, the S2ReLU activation function, defined +as +\begin{align*} + \StwoReLU(x) &= \ReLU \left (\frac{x}{2} + 1 \right ) - \ReLU \left (-\frac{x}{2} + 1 \right)\\ + &= + \begin{cases}-\frac{x}{2} + 1 &\text{if } x \le -2\\ + x &\text{if } -2\le x \le 2\\ + \frac{x}{2} + 1&\text{if } x > -2\end{cases} +\end{align*} +This function is similar to SReLUs as introduced in~\cite{jin2016deep}. The +difference is that S2ReLU does not introduce learnable parameters. The S2ReLU +was designed to be symmetric, be the identity close to zero and have a smaller +absolute value than the identity farther away. It is easy to compute and easy to +implement. + +Those results --- not only the absolute values, but also the relative +comparison --- might depend on the network architecture, the training +algorithm, the initialization and the dataset. Results for MNIST can be found +in~\cref{table:MNIST-accuracies-activation-functions} and for HASYv2 +in~\cref{table:HASYv2-accuracies-activation-functions}. For both datasets, the +logistic function has a much shorter training time and a noticeably lower test +accuracy. + +\begin{table}[H] + \centering + \begin{tabular}{lccc} + \toprule + \multirow{2}{*}{Function} & Vanishing & Negative Activation & Bound \\ + & Gradient & possible & activation \\\midrule + Identity & \cellcolor{green!25}No & \cellcolor{green!25} Yes & \cellcolor{green!25}No \\ + Logistic & \cellcolor{red!25} Yes & \cellcolor{red!25} No & \cellcolor{red!25} Yes \\ + Logistic$^-$ & \cellcolor{red!25} Yes & \cellcolor{green!25} Yes & \cellcolor{red!25} Yes \\ + Softmax & \cellcolor{red!25} Yes & \cellcolor{green!25} Yes & \cellcolor{red!25} Yes \\ + tanh & \cellcolor{red!25} Yes & \cellcolor{green!25} Yes & \cellcolor{red!25} Yes \\ + Softsign & \cellcolor{red!25} Yes & \cellcolor{green!25}Yes & \cellcolor{red!25} Yes \\ + ReLU & \cellcolor{yellow!25}Yes\footnotemark & \cellcolor{red!25} No & \cellcolor{yellow!25}Half-sided \\ + Softplus & \cellcolor{green!25}No & \cellcolor{red!25} No & \cellcolor{yellow!25}Half-sided \\ + S2ReLU & \cellcolor{green!25}No & \cellcolor{green!25}Yes & \cellcolor{green!25} No \\ + LReLU/PReLU & \cellcolor{green!25}No & \cellcolor{green!25}Yes & \cellcolor{green!25} No \\ + ELU & \cellcolor{green!25}No & \cellcolor{green!25}Yes & \cellcolor{green!25} No \\ + \bottomrule + \end{tabular} + \caption[Activation function properties]{Properties of activation functions.} + \label{table:properties-of-activation-functions} +\end{table} +\footnotetext{The dying ReLU problem is similar to the vanishing gradient problem.} + +\glsunset{LReLU} + +\begin{table}[H] + \centering + \begin{tabular}{lccclllll} + \toprule + \multirow{2}{*}{Function} & \multicolumn{2}{c}{Inference per} & Training & \multirow{2}{*}{Epochs} & Mean total \\\cline{2-3} + & 1 Image & 128 & time & & training time \\\midrule + Identity & \SI{8}{\milli\second} & \SI{42}{\milli\second} & \SI{31}{\second\per\epoch} & 108 -- \textbf{148} &\SI{3629}{\second} \\ + Logistic & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \SI{24}{\second\per\epoch} & \textbf{101} -- 167 &\textbf{\SI{2234}{\second}} \\ + Logistic$^-$ & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \textbf{\SI{22}{\second\per\epoch}} & 133 -- 255 &\SI{3421}{\second} \\ + Softmax & \SI{7}{\milli\second} & \SI{37}{\milli\second} & \SI{33}{\second\per\epoch} & 127 -- 248 &\SI{5250}{\second} \\ + Tanh & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \SI{23}{\second\per\epoch} & 125 -- 211 &\SI{3141}{\second} \\ + Softsign & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \SI{23}{\second\per\epoch} & 122 -- 205 &\SI{3505}{\second} \\ + \gls{ReLU} & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \SI{23}{\second\per\epoch} & 118 -- 192 &\SI{3449}{\second} \\ + Softplus & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \SI{24}{\second\per\epoch} & \textbf{101} -- 165 &\SI{2718}{\second} \\ + S2ReLU & \textbf{\SI{5}{\milli\second}} & \SI{32}{\milli\second} & \SI{26}{\second\per\epoch} & 108 -- 209 &\SI{3231}{\second} \\ + \gls{LReLU} & \SI{7}{\milli\second} & \SI{34}{\milli\second} & \SI{25}{\second\per\epoch} & 109 -- 198 &\SI{3388}{\second} \\ + \gls{PReLU} & \SI{7}{\milli\second} & \SI{34}{\milli\second} & \SI{28}{\second\per\epoch} & 131 -- 215 &\SI{3970}{\second} \\ + \gls{ELU} & \SI{6}{\milli\second} & \textbf{\SI{31}{\milli\second}} & \SI{23}{\second\per\epoch} & 146 -- 232 &\SI{3692}{\second} \\ + \bottomrule + \end{tabular} + \caption[Activation function timing results on CIFAR-100]{Training time and + inference time of adjusted baseline models trained with different + activation functions on GTX~970 \glspl{GPU} on CIFAR-100. It was + expected that the identity is the fastest function. This result is + likely an implementation specific problem of Keras~2.0.4 or + Tensorflow~1.1.0.} + \label{table:CIFAR-100-timing-activation-functions} +\end{table} + +\begin{table}[H] + \centering + \begin{tabular}{lccccc} + \toprule + \multirow{2}{*}{Function} & \multicolumn{2}{c}{Single model} & Ensemble & \multicolumn{2}{c}{Epochs}\\\cline{2-3}\cline{5-6} + & Accuracy & std & Accuracy & Range & Mean \\\midrule + Identity & \SI{99.45}{\percent} & $\sigma=0.09$ & \SI{99.63}{\percent} & 55 -- \hphantom{0}77 & 62.2\\%TODO: Really? + Logistic & \SI{97.27}{\percent} & $\sigma=2.10$ & \SI{99.48}{\percent} & \textbf{37} -- \hphantom{0}76 & \textbf{54.5}\\ + Softmax & \SI{99.60}{\percent} & $\boldsymbol{\sigma=0.03}$& \SI{99.63}{\percent} & 44 -- \hphantom{0}73 & 55.6\\ + Tanh & \SI{99.40}{\percent} & $\sigma=0.09$ & \SI{99.57}{\percent} & 56 -- \hphantom{0}80 & 67.6\\ + Softsign & \SI{99.40}{\percent} & $\sigma=0.08$ & \SI{99.57}{\percent} & 72 -- 101 & 84.0\\ + \gls{ReLU} & \textbf{\SI{99.62}{\percent}} & \textbf{$\sigma=0.04$} & \textbf{\SI{99.73}{\percent}} & 51 -- \hphantom{0}94 & 71.7\\ + Softplus & \SI{99.52}{\percent} & $\sigma=0.05$ & \SI{99.62}{\percent} & 62 -- \hphantom{0}\textbf{70} & 68.9\\ + \gls{PReLU} & \SI{99.57}{\percent} & $\sigma=0.07$ & \textbf{\SI{99.73}{\percent}} & 44 -- \hphantom{0}89 & 71.2\\ + \gls{ELU} & \SI{99.53}{\percent} & $\sigma=0.06$ & \SI{99.58}{\percent} & 45 -- 111 & 72.5\\ + \bottomrule + \end{tabular} + \caption[Activation function evaluation results on MNIST]{Test accuracy of + adjusted baseline models trained with different activation + functions on MNIST.} + \label{table:MNIST-accuracies-activation-functions} +\end{table} +\glsreset{LReLU} \ No newline at end of file diff --git a/publications/activation-functions/figures/sample-images.png b/publications/activation-functions/figures/sample-images.png new file mode 100644 index 0000000..d710506 Binary files /dev/null and b/publications/activation-functions/figures/sample-images.png differ diff --git a/publications/activation-functions/glossary.tex b/publications/activation-functions/glossary.tex new file mode 100644 index 0000000..62454ad --- /dev/null +++ b/publications/activation-functions/glossary.tex @@ -0,0 +1,43 @@ +%!TEX root = booka4.tex +%Term definitions +\newacronym{ANN}{ANN}{artificial neural network} +\newacronym{ANOVA}{ANOVA}{analysis of variance} +\newacronym{ASO}{ASO}{Automatic Structure Optimization} +\newacronym{CMO}{CMO}{Confusion Matrix Ordering} +\newacronym{CE}{CE}{cross entropy} +\newacronym{CUDA}{CUDA}{Compute Unified Device Architecture} +\newacronym{CNN}{CNN}{Convolutional Neural Network} +\newacronym{CSR}{CSR}{cursive script recognition} +\newacronym{CFM}{CFM}{classification figure of merit} +\newacronym{DTW}{DTW}{dynamic time warping} +\newacronym{ELU}{ELU}{Exponential Linear Unit} +\newacronym{ES}{ES}{early stopping} +\newacronym{FLOP}{FLOP}{floating point operation} +\newacronym{FC}{FC}{Fully Connected} +\newacronym{GA}{GA}{genetic algorithm} +\newacronym{GPU}{GPU}{graphics processing unit} +\newacronym{GAN}{GAN}{Generative Adverserial Network} +\newacronym{GMM}{GMM}{Gaussian mixture model} +\newacronym{GTW}{GTW}{greedy time warping} +\newacronym{HMM}{HMM}{hidden Markov model} +\newacronym{HWR}{HWR}{handwriting recognition} +\newacronym{HWRT}{HWRT}{handwriting recognition toolkit} +\newacronym{HSV}{HSV}{hue, saturation, value} +\newacronym{LReLU}{LReLU}{leaky rectified linear unit} +\newacronym{LDA}{LDA}{linear discriminant analysis} +\newacronym{LCN}{LCN}{Local Contrast Normalization} +\newacronym{MLP}{MLP}{multilayer perceptron} +\newacronym{MSE}{MSE}{mean squared error} +\newacronym{NAG}{NAG}{Nesterov Accellerated Momentum} +\newacronym{NEAT}{NEAT}{NeuroEvolution of Augmenting Topologies} +\newacronym{OBD}{OBD}{Optimal Brain Damage} +\newacronym{OOV}{OOV}{out of vocabulary} +\newacronym{PCA}{PCA}{principal component analysis} +\newacronym{PyPI}{PyPI}{Python Package Index} +\newacronym{PReLU}{PReLU}{parametrized rectified linear unit} +\newacronym{SGD}{SGD}{stochastic gradient descent} +\newacronym{TDNN}{TDNN}{time delay neural network} +\newacronym{SVM}{SVM}{support vector machine} +\newacronym{SLP}{SLP}{supervised layer-wise pretraining} +\newacronym{ReLU}{ReLU}{rectified linear unit} +\newacronym{ZCA}{ZCA}{Zero Components Analysis} diff --git a/publications/activation-functions/main.tex b/publications/activation-functions/main.tex new file mode 100644 index 0000000..70f0c22 --- /dev/null +++ b/publications/activation-functions/main.tex @@ -0,0 +1,99 @@ +\documentclass[technote,a4paper,leqno]{IEEEtran} +\pdfoutput=1 + +\usepackage[utf8]{inputenc} % this is needed for umlauts +\usepackage[USenglish]{babel} % this is needed for umlauts +\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf +\usepackage{amsmath,amssymb} +\usepackage[table]{xcolor} +\usepackage[absolute,overlay]{textpos} +\usepackage{tikz} +\usepackage{csquotes} +\usepackage[binary-units,group-separator={,}]{siunitx} +\sisetup{per-mode=fraction, + binary-units=true, + group-separator = {\,}, + range-phrase=-, + detect-weight=true, + detect-family=true} +\DeclareSIUnit\pixel{px} +\DeclareSIUnit\epoch{epoch} +\DeclareSIUnit\float{float} +\DeclareSIUnit\floats{floats} +\usepackage{caption} % nicer captions + +\usepackage{url} +\usepackage{breakurl} +\usepackage[raiselinks=true, + bookmarks=true, + bookmarksopenlevel=1, + bookmarksopen=true, + bookmarksnumbered=true, + breaklinks, + hyperindex=true, + plainpages=false, + pdfpagelabels=true, + pdfborder={0 0 0.5}]{hyperref} +\def\UrlBreaks{\do\/\do-} + +\usepackage{xspace} +\newcommand*\elide{\textup{[\,\dots]}\xspace} + +\usepackage[nameinlink, noabbrev,capitalise]{cleveref} + +\title{A review of activation functions for convolutional neural networks} +\author{% + \IEEEauthorblockN{Martin Thoma}\\ + \IEEEauthorblockA{E-Mail: info@martin-thoma.de} % ORCID: http://orcid.org/0000-0002-6517-1690 +} + +\hypersetup{ + pdfauthor = {Martin Thoma}, + pdfkeywords = {activation functions, review}, + pdfsubject = {activation functions}, + pdftitle = {A review of activation functions for convolutional neural networks}, +} +\usepackage[inline]{enumitem} +\usepackage{longtable} +\usepackage{booktabs} % \toprule +\usepackage{braket} % needed for \Set +\usepackage{algorithm,algpseudocode} + +\usepackage[xindy,toc,section=chapter,numberedsection=autolabel]{glossaries} + +% Make document nicer +\DeclareMathOperator*{\argmin}{arg\,min} +\DeclareMathOperator*{\sech}{sech} +\DeclareMathOperator*{\conv}{conv} +\DeclareMathOperator*{\ReLU}{ReLU} +\DeclareMathOperator*{\StwoReLU}{S2ReLU} +\DeclareMathOperator*{\logistic}{logistic} +\newcommand*\diff{\mathop{}\!\mathrm{d}} +\usepackage{tensor} + +\usepackage{parskip} +\usepackage{multirow} +\usepackage{microtype} +\loadglsentries[main]{glossary} +\makeglossaries + +% % Variables +% \newcommand{\dbTotalClasses}{369} +% \newcommand{\dbTotalInstances}{\num{168233}} +% \newcommand{\dbName}{HASY} +% \newcommand{\dbNameVersion}{HASYv2} +% \newcommand{\dbSizeMB}{34.6} +% \newcommand{\dbDownloadURL}{\url{https://doi.org/10.5281/zenodo.259444}} +% \newcommand{\dbMDfivesum}{fddf23f36e24b5236f6b3a0880c778e3} + +% Start +\begin{document} +\maketitle +\input{abstract} +\input{content} +\bibliographystyle{IEEEtranSA} +\bibliography{bibliography} +\input{appendix} + + +\end{document}