| 1 |
%% |
| 2 |
%% This is file `lwarp-theorem.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `theorem') |
| 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 |
|
| 20 |
\LWR@ProvidesPackagePass{theorem}[2023/07/05] |
| 21 |
|
| 22 |
|
| 23 |
\newcommand{\LWR@newtheoremstyle}{plain} |
| 24 |
|
| 25 |
\VerifyCommand[lwarp][theorem]{\theoremstyle}{B805673118A2EA934449A9B7D25A5D33} |
| 26 |
|
| 27 |
\gdef\theoremstyle#1{% |
| 28 |
\@ifundefined{th@#1}{\@warning |
| 29 |
{Unknown theoremstyle `#1'. Using `plain'}% |
| 30 |
\theorem@style{plain}% |
| 31 |
\renewcommand{\LWR@newtheoremstyle}{plain}% lwarp |
| 32 |
}% |
| 33 |
{% |
| 34 |
\theorem@style{#1}% |
| 35 |
\renewcommand{\LWR@newtheoremstyle}{#1}% lwarp |
| 36 |
}% |
| 37 |
\begingroup |
| 38 |
\csname th@\the\theorem@style \endcsname |
| 39 |
\endgroup} |
| 40 |
|
| 41 |
\VerifyCommand[lwarp][theorem]{\@xnthm}{D6164703589C684059381DB798F89158} |
| 42 |
|
| 43 |
\gdef\@xnthm#1#2[#3]{% |
| 44 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 45 |
{% |
| 46 |
\csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% lwarp |
| 47 |
\@definecounter{#1}\@newctr{#1}[#3]% |
| 48 |
\expandafter\xdef\csname the#1\endcsname |
| 49 |
{\expandafter \noexpand \csname the#3\endcsname |
| 50 |
\@thmcountersep \@thmcounter{#1}}% |
| 51 |
\def\@tempa{\global\@namedef{#1}}% |
| 52 |
\expandafter \@tempa \expandafter{% |
| 53 |
\csname th@\the \theorem@style |
| 54 |
\expandafter \endcsname \the \theorem@bodyfont |
| 55 |
\@thm{#1}{#2}}% |
| 56 |
\global \expandafter \let \csname end#1\endcsname \@endtheorem |
| 57 |
\AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\@nameuse{LWR@thmstyle#1}}}% lwarp |
| 58 |
}} |
| 59 |
|
| 60 |
\VerifyCommand[lwarp][theorem]{\@ynthm}{C5A12EBEFDBCD5C5628C65B16A01DFB4} |
| 61 |
|
| 62 |
\gdef\@ynthm#1#2{% |
| 63 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 64 |
{ |
| 65 |
\csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% lwarp |
| 66 |
\@definecounter{#1}% |
| 67 |
\expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}% |
| 68 |
\def\@tempa{\global\@namedef{#1}}\expandafter \@tempa |
| 69 |
\expandafter{\csname th@\the \theorem@style \expandafter |
| 70 |
\endcsname \the\theorem@bodyfont \@thm{#1}{#2}}% |
| 71 |
\global \expandafter \let \csname end#1\endcsname \@endtheorem |
| 72 |
\AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\@nameuse{LWR@thmstyle#1}}}% lwarp |
| 73 |
}} |
| 74 |
|
| 75 |
\VerifyCommand[lwarp][theorem]{\@othm}{93B7CCDCEFDF36BEEF31477D6D390AC3} |
| 76 |
|
| 77 |
\gdef\@othm#1[#2]#3{% |
| 78 |
\expandafter\ifx\csname c@#2\endcsname\relax |
| 79 |
\@nocounterr{#2}% |
| 80 |
\else |
| 81 |
\expandafter\@ifdefinable\csname #1\endcsname |
| 82 |
{ |
| 83 |
\csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% lwarp |
| 84 |
\expandafter \xdef \csname the#1\endcsname |
| 85 |
{\expandafter \noexpand \csname the#2\endcsname}% |
| 86 |
\def\@tempa{\global\@namedef{#1}}\expandafter \@tempa |
| 87 |
\expandafter{\csname th@\the \theorem@style \expandafter |
| 88 |
\endcsname \the\theorem@bodyfont \@thm{#2}{#3}}% |
| 89 |
\global \expandafter \let \csname end#1\endcsname \@endtheorem |
| 90 |
\AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\@nameuse{LWR@thmstyle#1}}}% lwarp |
| 91 |
}% |
| 92 |
\fi} |
| 93 |
\gdef\th@plain{% |
| 94 |
\def\@begintheorem##1##2{% |
| 95 |
\item[ |
| 96 |
\InlineClass{theoremheader}{##1\ ##2} |
| 97 |
] |
| 98 |
}% |
| 99 |
\def\@opargbegintheorem##1##2##3{% |
| 100 |
\item[ |
| 101 |
\InlineClass{theoremheader}{##1\ ##2\ (##3)} |
| 102 |
] |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
\gdef\th@break{% |
| 107 |
\def\@begintheorem##1##2{% |
| 108 |
\item[ |
| 109 |
\InlineClass{theoremheader}{##1\ ##2}\newline% |
| 110 |
] |
| 111 |
}% |
| 112 |
\def\@opargbegintheorem##1##2##3{% |
| 113 |
\item[ |
| 114 |
\InlineClass{theoremheader}{##1\ ##2\ (##3)}\newline |
| 115 |
] |
| 116 |
} |
| 117 |
} |
| 118 |
|
| 119 |
\gdef\th@marginbreak{% |
| 120 |
\def\@begintheorem##1##2{ |
| 121 |
\item[ |
| 122 |
\InlineClass{theoremheader}{##2 \qquad ##1}\newline |
| 123 |
] |
| 124 |
}% |
| 125 |
\def\@opargbegintheorem##1##2##3{% |
| 126 |
\item[ |
| 127 |
\InlineClass{theoremheader}{##2 \qquad ##1\ % |
| 128 |
(##3)}\newline |
| 129 |
] |
| 130 |
} |
| 131 |
} |
| 132 |
|
| 133 |
\gdef\th@changebreak{% |
| 134 |
\def\@begintheorem##1##2{ |
| 135 |
\item[ |
| 136 |
\InlineClass{theoremheader}{##2\ ##1}\newline |
| 137 |
] |
| 138 |
}% |
| 139 |
\def\@opargbegintheorem##1##2##3{% |
| 140 |
\item[ |
| 141 |
\InlineClass{theoremheader}{ ##2\ ##1\ % |
| 142 |
(##3)}\newline |
| 143 |
] |
| 144 |
} |
| 145 |
} |
| 146 |
|
| 147 |
\gdef\th@change{% |
| 148 |
\def\@begintheorem##1##2{ |
| 149 |
\item[ |
| 150 |
\InlineClass{theoremheader}{##2\ ##1} |
| 151 |
] |
| 152 |
}% |
| 153 |
\def\@opargbegintheorem##1##2##3{% |
| 154 |
\item[ |
| 155 |
\InlineClass{theoremheader}{##2\ ##1\ (##3)} |
| 156 |
] |
| 157 |
} |
| 158 |
} |
| 159 |
|
| 160 |
\gdef\th@margin{% |
| 161 |
\def\@begintheorem##1##2{ |
| 162 |
\item[ |
| 163 |
\InlineClass{theoremheader}{##2 \qquad ##1} |
| 164 |
] |
| 165 |
}% |
| 166 |
\def\@opargbegintheorem##1##2##3{% |
| 167 |
\item[ |
| 168 |
\InlineClass{theoremheader}{##2 \qquad ##1\ (##3)} |
| 169 |
] |
| 170 |
} |
| 171 |
} |
| 172 |
\VerifyCommand[lwarp][theorem]{\@thm}{4632915C52ABB4DB5D462AA58A80BAF2} |
| 173 |
|
| 174 |
\gdef\@thm#1#2{\refstepcounter{#1}% |
| 175 |
\LWR@forcenewpage% lwarp |
| 176 |
\LWR@printpendingfootnotes% lwarp |
| 177 |
\BlockClass{theorembody\LWR@thisthmstyle}% lwarp |
| 178 |
\trivlist |
| 179 |
\@topsep \theorempreskipamount % used by first \item |
| 180 |
\@topsepadd \theorempostskipamount % used by \@endparenv |
| 181 |
\@ifnextchar [% |
| 182 |
{\@ythm{#1}{#2}}% |
| 183 |
{\@begintheorem{#2}{\csname the#1\endcsname}\ignorespaces}} |
| 184 |
|
| 185 |
\VerifyCommand[lwarp][theorem]{\@endtheorem} |
| 186 |
{9798301819F2CA2E46673F8937BABE99} |
| 187 |
\gdef\@endtheorem{% |
| 188 |
\endtrivlist |
| 189 |
\LWR@printpendingfootnotes% lwarp |
| 190 |
\endBlockClass |
| 191 |
} |
| 192 |
\endinput |
| 193 |
%% |
| 194 |
%% End of file `lwarp-theorem.sty'. |