diff options
author | Karl Berry <karl@freefriends.org> | 2018-06-06 20:52:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-06-06 20:52:12 +0000 |
commit | 0287311bafc0bdd253df0c8d6df3ef85f804d263 (patch) | |
tree | 151b584accf0b823a70c9bb86673bb0ad79f2991 /Master/texmf-dist/tex/latex/lwarp/lwarp-algorithm2e.sty | |
parent | e0b44a591ea65a8c11f15d8e4c0cfb50a6058782 (diff) |
lwarp (6jun18)
git-svn-id: svn://tug.org/texlive/trunk@47944 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-algorithm2e.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-algorithm2e.sty | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-algorithm2e.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-algorithm2e.sty new file mode 100644 index 00000000000..8ecc6b19b70 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-algorithm2e.sty @@ -0,0 +1,161 @@ +%% +%% This is file `lwarp-algorithm2e.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `algorithm2e') +%% This is a generated file. +%% Copyright 2016-2018 Brian Dunn +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% 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.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. + +\LWR@ProvidesPackagePass{algorithm2e} + +\renewcommand{\l@algocf}[2]{\hypertocfloat{1}{algocf}{loa}{#1}{#2}} +\newcommand*{\LWR@floatstyle@algocf}{ruled} + +\ifdefstring{\algocf@style}{boxed}{% +\renewcommand*{\LWR@floatstyle@algocf}{boxed} +}{} + +\ifdefstring{\algocf@style}{boxruled}{% +\renewcommand*{\LWR@floatstyle@algocf}{boxruled} +}{} + +\ifdefstring{\algocf@style}{plain}{% +\renewcommand*{\LWR@floatstyle@algocf}{plain} +}{} +\newbool{LWR@algocf@dopars} +\booltrue{LWR@algocf@dopars} + +\renewcommand{\algocf@everypar}{% +\ifbool{LWR@algocf@dopars}{% + \ifbool{LWR@doingstartpars}{% + \ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% + {}% + {% + \algocf@everyparnl\algocf@everyparhanging% + }% + }{}% +}{}% +} +\renewcommand{\algocf@makecaption}[2]{% +\LWR@caption@begin{algocf}% +\algocf@captiontext{#1}{#2}% +\LWR@caption@end% +} +\renewcommand{\algocf@makecaption@plain}[2]{% + \LWR@caption@begin{algocf}% + \algocf@captiontext{#1}{#2}% + \LWR@caption@end% +} + +\renewcommand{\algocf@makecaption@boxed}[2]{% + \LWR@caption@begin{algocf}% + \algocf@captiontext{#1}{#2}% + \LWR@caption@end% +} + +\renewcommand{\algocf@makecaption@ruled}[2]{% + \LWR@caption@begin{algocf}% + \algocf@captiontext{#1}{#2}% + \LWR@caption@end% +} +\long\def\algocf@latexcaption#1[#2]#3{% original definition of caption +\boolfalse{LWR@algocf@dopars}% lwarp + \par% + \addcontentsline{\csname ext@#1\endcsname}{#1}% + {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}% + \begingroup% + \@parboxrestore% + \if@minipage% + \@setminipage% + \fi% + \normalsize% + \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par% + \endgroup% +\booltrue{LWR@algocf@dopars}% lwarp +} +\renewcommand{\algocf@printnl}[1]{% + \InlineClass{alg2elinenumber}{\NlSty{#1}}~% +}% +\preto\@algocf@init{% + \edef\LWR@floatstyle@figure{\LWR@floatstyle@algocf}% +} +\renewcommand{\@algocf@start}{% + \let\@mathsemicolon=\;\def\;{\ifmmode\@mathsemicolon\else\@endalgoln\fi}% + \AlFnt{}% + \booltrue{LWR@algocf@dopars}% lwarp +} + +\renewcommand{\@algocf@finish}{% + \boolfalse{LWR@algocf@dopars}% lwarp + \lineskip\normallineskip\setlength{\skiptotal}{\@defaultskiptotal}% + \let\;=\@mathsemicolon% + \let\]=\@emathdisplay% +} +\renewcommand{\BlankLine}{% +\LWR@stoppars% +\LWR@htmltagc{br /}% +\LWR@startpars% +} +\renewcommand{\SetKwInOut}[2]{% + \algocf@newcommand{#1}[1]{% + \ifthenelse{\boolean{algocf@hanginginout}}% + {\relax}% + {\algocf@seteveryparhanging{\relax}}% + \ifthenelse{\boolean{algocf@inoutnumbered}}% + {\relax}% + {\algocf@seteveryparnl{\relax}}% + {% + \KwSty{#2\algocf@typo:}% + ~##1\par% + }% + \algocf@linesnumbered% reset the numbering of the lines + \ifthenelse{\boolean{algocf@hanginginout}}% + {\relax}% + {\algocf@reseteveryparhanging}% + }% +}% + +\renewcommand{\ResetInOut}[1]{}% +\renewcommand{\algocf@Vline}[1]{% +\boolfalse{LWR@algocf@dopars}% +\begin{BlockClass}{alg2evline} +\booltrue{LWR@algocf@dopars}% +#1 +\boolfalse{LWR@algocf@dopars}% +\end{BlockClass} +\booltrue{LWR@algocf@dopars}% +} +\renewcommand{\algocf@Vsline}[1]{% +\boolfalse{LWR@algocf@dopars}% +\begin{BlockClass}{alg2evsline} +\booltrue{LWR@algocf@dopars}% +#1 +\boolfalse{LWR@algocf@dopars}% +\end{BlockClass} +\booltrue{LWR@algocf@dopars}% +} +\renewcommand{\algocf@Noline}[1]{% +\boolfalse{LWR@algocf@dopars}% +\begin{BlockClass}{alg2enoline} +\booltrue{LWR@algocf@dopars}% +#1 +\boolfalse{LWR@algocf@dopars}% +\end{BlockClass} +\booltrue{LWR@algocf@dopars}% +} +\LetLtxMacro\algocf@Here\algocf +\LetLtxMacro\endalgocf@Here\endalgocf + +\endinput +%% +%% End of file `lwarp-algorithm2e.sty'. |