| 1 |
%% |
| 2 |
%% This is file `lwarp-algorithm2e.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `algorithm2e') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\LWR@ProvidesPackagePass{algorithm2e}[2017/07/18] |
| 20 |
|
| 21 |
\renewcommand{\l@algocf}[2]{\hypertocfloat{1}{algocf}{loa}{#1}{#2}} |
| 22 |
\newcommand*{\LWR@floatstyle@algocf}{ruled} |
| 23 |
|
| 24 |
\ifdefstring{\algocf@style}{boxed}{% |
| 25 |
\renewcommand*{\LWR@floatstyle@algocf}{boxed} |
| 26 |
}{} |
| 27 |
|
| 28 |
\ifdefstring{\algocf@style}{boxruled}{% |
| 29 |
\renewcommand*{\LWR@floatstyle@algocf}{boxruled} |
| 30 |
}{} |
| 31 |
|
| 32 |
\ifdefstring{\algocf@style}{plain}{% |
| 33 |
\renewcommand*{\LWR@floatstyle@algocf}{plain} |
| 34 |
}{} |
| 35 |
\renewcommand{\algocf@everypar}{% |
| 36 |
\ifbool{LWR@algocf@dopars}{% |
| 37 |
\ifbool{LWR@doingstartpars}{% |
| 38 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 39 |
{}% |
| 40 |
{% |
| 41 |
\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline% |
| 42 |
\algocf@everyparnl\algocf@everyparhanging% |
| 43 |
}% |
| 44 |
}{}% |
| 45 |
}{}% |
| 46 |
} |
| 47 |
\renewcommand{\algocf@makecaption}[2]{% |
| 48 |
\LWR@HTML@caption@begin{algocf}% |
| 49 |
\LWR@isolate{\algocf@captiontext{#1}{#2}}% |
| 50 |
\LWR@HTML@caption@end% |
| 51 |
} |
| 52 |
\renewcommand{\algocf@makecaption@plain}[2]{% |
| 53 |
\LWR@HTML@caption@begin{algocf}% |
| 54 |
\LWR@isolate{\algocf@captiontext{#1}{#2}}% |
| 55 |
\LWR@HTML@caption@end% |
| 56 |
} |
| 57 |
|
| 58 |
\renewcommand{\algocf@makecaption@boxed}[2]{% |
| 59 |
\LWR@HTML@caption@begin{algocf}% |
| 60 |
\LWR@isolate{\algocf@captiontext{#1}{#2}}% |
| 61 |
\LWR@HTML@caption@end% |
| 62 |
} |
| 63 |
|
| 64 |
\renewcommand{\algocf@makecaption@ruled}[2]{% |
| 65 |
\LWR@HTML@caption@begin{algocf}% |
| 66 |
\LWR@isolate{\algocf@captiontext{#1}{#2}}% |
| 67 |
\LWR@HTML@caption@end% |
| 68 |
} |
| 69 |
\long\def\algocf@latexcaption#1[#2]#3{% original definition of caption |
| 70 |
\boolfalse{LWR@algocf@dopars}% lwarp |
| 71 |
\par% |
| 72 |
\addcontentsline{\csname ext@#1\endcsname}{#1}% |
| 73 |
{\protect\numberline{\csname the#1\endcsname}{\ignorespaces \LWR@isolate{#2}}}% |
| 74 |
\begingroup% |
| 75 |
\@parboxrestore% |
| 76 |
\if@minipage% |
| 77 |
\@setminipage% |
| 78 |
\fi% |
| 79 |
\normalsize% |
| 80 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par% |
| 81 |
\endgroup% |
| 82 |
\booltrue{LWR@algocf@dopars}% lwarp |
| 83 |
} |
| 84 |
\renewcommand{\algocf@printnl}[1]{% |
| 85 |
\InlineClass{alg2elinenumber}{\NlSty{#1}}~% |
| 86 |
}% |
| 87 |
\preto\@algocf@init{% |
| 88 |
\edef\LWR@floatstyle@figure{\LWR@floatstyle@algocf}% |
| 89 |
} |
| 90 |
\renewcommand{\@algocf@start}{% |
| 91 |
\let\@mathsemicolon=\;\def\;{\ifmmode\@mathsemicolon\else\@endalgoln\fi}% |
| 92 |
\AlFnt{}% |
| 93 |
\booltrue{LWR@algocf@dopars}% lwarp |
| 94 |
} |
| 95 |
|
| 96 |
\renewcommand{\@algocf@finish}{% |
| 97 |
\boolfalse{LWR@algocf@dopars}% lwarp |
| 98 |
\lineskip\normallineskip\setlength{\skiptotal}{\@defaultskiptotal}% |
| 99 |
\let\;=\@mathsemicolon% |
| 100 |
\let\]=\@emathdisplay% |
| 101 |
} |
| 102 |
\renewcommand{\BlankLine}{% |
| 103 |
\LWR@stoppars% |
| 104 |
\LWR@htmltagc{br /}% |
| 105 |
\LWR@startpars% |
| 106 |
} |
| 107 |
\renewcommand{\SetKwInOut}[2]{% |
| 108 |
\algocf@newcommand{#1}[1]{% |
| 109 |
\ifthenelse{\boolean{algocf@hanginginout}}% |
| 110 |
{\relax}% |
| 111 |
{\algocf@seteveryparhanging{\relax}}% |
| 112 |
\ifthenelse{\boolean{algocf@inoutnumbered}}% |
| 113 |
{\relax}% |
| 114 |
{\algocf@seteveryparnl{\relax}}% |
| 115 |
{% |
| 116 |
\KwSty{#2\algocf@typo:}% |
| 117 |
~##1\par% |
| 118 |
}% |
| 119 |
\algocf@linesnumbered% reset the numbering of the lines |
| 120 |
\ifthenelse{\boolean{algocf@hanginginout}}% |
| 121 |
{\relax}% |
| 122 |
{\algocf@reseteveryparhanging}% |
| 123 |
}% |
| 124 |
}% |
| 125 |
|
| 126 |
\renewcommand{\ResetInOut}[1]{}% |
| 127 |
\renewcommand{\algocf@Vline}[1]{% |
| 128 |
\boolfalse{LWR@algocf@dopars}% |
| 129 |
\begin{BlockClass}{alg2evline} |
| 130 |
\booltrue{LWR@algocf@dopars}% |
| 131 |
#1 |
| 132 |
\boolfalse{LWR@algocf@dopars}% |
| 133 |
\end{BlockClass} |
| 134 |
\booltrue{LWR@algocf@dopars}% |
| 135 |
} |
| 136 |
\renewcommand{\algocf@Vsline}[1]{% |
| 137 |
\boolfalse{LWR@algocf@dopars}% |
| 138 |
\begin{BlockClass}{alg2evsline} |
| 139 |
\booltrue{LWR@algocf@dopars}% |
| 140 |
#1 |
| 141 |
\boolfalse{LWR@algocf@dopars}% |
| 142 |
\end{BlockClass} |
| 143 |
\booltrue{LWR@algocf@dopars}% |
| 144 |
} |
| 145 |
\renewcommand{\algocf@Noline}[1]{% |
| 146 |
\boolfalse{LWR@algocf@dopars}% |
| 147 |
\begin{BlockClass}{alg2enoline} |
| 148 |
\booltrue{LWR@algocf@dopars}% |
| 149 |
#1 |
| 150 |
\boolfalse{LWR@algocf@dopars}% |
| 151 |
\end{BlockClass} |
| 152 |
\booltrue{LWR@algocf@dopars}% |
| 153 |
} |
| 154 |
\LetLtxMacro\algocf@Here\algocf |
| 155 |
\LetLtxMacro\endalgocf@Here\endalgocf |
| 156 |
|
| 157 |
|
| 158 |
\endinput |
| 159 |
%% |
| 160 |
%% End of file `lwarp-algorithm2e.sty'. |