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
|
% Maintained by Matthew Bertucci, 2024-present
% Please report all issues and feature requests at https://github.com/mbertucci47/keytheorems
% This work is licensed under the LPPL version 1.3c or later: https://www.latex-project.org/lppl.txt
\ProvidesExplFile{keythms-amsart-support}{\@keythms@date}{\@keythms@version}
{keytheorems~support~for~the~amsart~class}
\__keythms_support_AMSshared_code:
\keys_define:nn { keytheorems/thmstyle }
{
inherit-style / remark .meta:n =
{
bodyfont = \normalfont,
headfont = \itshape,
}
}
\bool_case:nF
{
{ \__keythms_if_classloaded_p:n { acmart } }
{
\keytheoremset{overload} % since acmart predefines several theorems at begindocument
\prop_gput_from_keyval:Nn \g__keythms_thmstyle_defaultkeys_prop
{
bodyfont = \@acmplainbodyfont,
headfont = \@acmplainheadfont,
headindent = \@acmplainindent,
notefont = \@acmplainnotefont,
postheadspace = .5em,
spaceabove =
.5\baselineskip plus .2\baselineskip minus .2\baselineskip,
spacebelow =
.5\baselineskip plus .2\baselineskip minus .2\baselineskip,
}
\keys_define:nn { keytheorems/thmstyle }
{
inherit-style / acmplain .meta:n = {},
inherit-style / acmdefinition .meta:n =
{
bodyfont = \@acmdefinitionbodyfont,
headindent = \@acmdefinitionindent,
headfont = \@acmdefinitionheadfont,
notefont = \@acmdefinitionnotefont,
},
}
}
{ \__keythms_if_classloaded_p:n { aomart } }
{
\prop_gput_from_keyval:Nn \g__keythms_thmstyle_defaultkeys_prop
{
bodyfont = \sishape,
headfont = \scshape,
headindent = \parindent,
notefont = \normalfont,
postheadspace = 0.5em,
spaceabove = 0.5\linespacing,
spacebelow = 0.5\linespacing,
}
\keys_define:nn { keytheorems/thmstyle }
{
inherit-style / definition .meta:n =
{
bodyfont = \upshape,
headfont = \sishape,
headindent = \parindent,
notefont = \normalfont,
postheadspace = 0.5em,
spaceabove = 0.5\linespacing,
spacebelow = 0.5\linespacing,
},
inherit-style / remark .meta:n =
{
bodyfont = \upshape,
headfont = \sishape,
headindent = \parindent,
notefont = \normalfont,
postheadspace = 0.5em,
spaceabove = 0.5\linespacing,
spacebelow = 0.5\linespacing,
},
}
}
}
{ % the amsart defaults
\prop_gput_from_keyval:Nn \g__keythms_thmstyle_defaultkeys_prop
{
spaceabove = .5\baselineskip plus .2\baselineskip minus .2\baselineskip,
spacebelow = .5\baselineskip plus .2\baselineskip minus .2\baselineskip,
}
}
\file_input_stop:
|