blob: e233534306a1962d8e0d52c167f785202263d0f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
%%
%% This is file `lwarp-amsthm.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `amsthm')
%% This is a generated file.
%% Copyright 2016-2017 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{amsthm}
\newcommand{\LWR@newtheoremstyle}{plain}
\renewcommand{\theoremstyle}[1]{%
\@ifundefined{th@#1}{%
\PackageWarning{amsthm}{Unknown theoremstyle `#1'}%
\thm@style{plain}%
\renewcommand{\LWR@newtheoremstyle}{plain}% new
}{%
\thm@style{#1}%
\renewcommand{\LWR@newtheoremstyle}{#1}% new
}%
}
\def\@xnthm#1#2{%
\csedef{LWR@thmstyle#2}{\LWR@newtheoremstyle}% new
\let\@tempa\relax
\@xp\@ifdefinable\csname #2\endcsname{%
\global\@xp\let\csname end#2\endcsname\@endtheorem
\ifx *#1% unnumbered, need to get one more mandatory arg
\edef\@tempa##1{%
\gdef\@xp\@nx\csname#2\endcsname{%
\@nx\@thm{\@xp\@nx\csname th@\the\thm@style\endcsname}%
{}{##1}}}%
\else % numbered theorem, need to check for optional arg
\def\@tempa{\@oparg{\@ynthm{#2}}[]}%
\fi
\AtBeginEnvironment{#2}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#2}}}% new
}%
\@tempa
}
\newcommand{\LWR@haveamsthmname}{
\renewcommand{\thmname}[1]{\InlineClass{amsthmname\LWR@thisthmstyle}{##1}}
}
\newcommand{\LWR@haveamsthmnumber}{
\renewcommand{\thmnumber}[1]{\InlineClass{amsthmnumber\LWR@thisthmstyle}{##1}}
}
\newcommand{\LWR@haveamsthmnote}{
\renewcommand{\thmnote}[1]{\InlineClass{amsthmnote\LWR@thisthmstyle}{##1}}
}
\LWR@haveamsthmname
\LWR@haveamsthmnumber
\LWR@haveamsthmnote
\def\@begintheorem#1#2[#3]{%
\BlockClass{amsthmbody\LWR@thisthmstyle}% new
\deferred@thm@head{
\the\thm@headfont \thm@indent
\@ifempty{#1}{\let\thmname\@gobble}{\LWR@haveamsthmname}% new
\@ifempty{#2}{\let\thmnumber\@gobble}{\LWR@haveamsthmnumber}% new
\@ifempty{#3}{\let\thmnote\@gobble}{\LWR@haveamsthmnote}% new
\thm@swap\swappedhead\thmhead{#1}{#2}{#3}%
\the\thm@headpunct~
\thmheadnl % possibly a newline.
\hskip\thm@headsep
}%
\ignorespaces}
\def\@endtheorem{\endBlockClass\endtrivlist\@endpefalse }
\AtBeginDocument{
\def\openbox{\text{\HTMLunicode{25A1}}}% UTF-8 white box
\def\blacksquare{\text{\HTMLunicode{220E}}}% UTF-8 end-of-proof
\def\Box{\text{\HTMLunicode{25A1}}}% UTF-8 white box
}
\renewenvironment{proof}[1][\proofname]{\par
\BlockClass{amsthmproof}% new
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@\relax
\trivlist
\item[\hskip\labelsep
\InlineClass{amsthmproofname}{#1\@addpunct{.}}]\ignorespaces% changes
}{%
\InlineClass{theoremendmark}{\popQED}\endtrivlist%
\endBlockClass% new
\@endpefalse
}
\endinput
%%
%% End of file `lwarp-amsthm.sty'.
|