]> git.lyx.org Git - features.git/blob - lib/layouts/theorems-sec-bytype.module
d8b539275b07d4d57ac4cb37178ebc7936c8e730
[features.git] / lib / layouts / theorems-sec-bytype.module
1 #\DeclareLyXModule{Standard Theorems (Numbered by Type within Sections)}
2 #\DeclareCategory{Maths}
3 #DescriptionBegin
4 #Defines some theorem environments for use with non-AMS classes. Contrary to the
5 #plain Theorem module, the different theorem types provided here each have a separate
6 #counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma 2, ...,
7 #as opposed to theorem 1, theorem 2, lemma 3, proposition 4, ...). The numbering is reset
8 #at each section start.
9 #DescriptionEnd
10 #Requires: theorems-bytype | theorems-ams-bytype
11 #Excludes: theorems-std | theorems-ams | theorems-starred | theorems-chap | theorems-chap-bytype
12
13 # Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
14
15 Format 89
16
17 # We need separate counters for each theorem-like style.
18 Counter theorem
19         GuiName Theorem
20         Within section
21         LaTeXName thm
22 End
23 Counter corollary
24         GuiName Corollary
25         Within section
26         LaTeXName cor
27 End
28 Counter lemma
29         GuiName Lemma
30         Within section
31         LaTeXName lem
32 End
33 Counter proposition
34         GuiName Proposition
35         Within section
36         LaTeXName prop
37 End
38 Counter conjecture
39         GuiName Conjecture
40         Within section
41 End
42 Counter fact
43         GuiName Fact
44         Within section
45 End
46 Counter definition
47         GuiName Definition
48         Within section
49         LaTeXName defn
50 End
51 Counter example
52         GuiName Example
53         Within section
54 End
55 Counter problem
56         GuiName Problem
57         Within section
58 End
59 Counter exercise
60         GuiName Exercise
61         Within section
62         LaTeXName sca
63 End
64 Counter remark
65         GuiName Remark
66         Within section
67 End
68 Counter claim
69         GuiName Claim
70         Within section
71 End
72
73 Style Theorem
74         Preamble
75           \theoremstyle{plain}
76           \newtheorem{thm}{\protect\theoremname}[section]
77         EndPreamble
78 End
79
80
81 Style Corollary
82         Preamble
83           \theoremstyle{plain}
84           \newtheorem{cor}{\protect\corollaryname}[section]
85         EndPreamble
86 End
87
88
89 Style Lemma
90         Preamble
91           \theoremstyle{plain}
92           \newtheorem{lem}{\protect\lemmaname}[section]
93         EndPreamble
94 End
95
96
97 Style Proposition
98         Preamble
99           \theoremstyle{plain}
100           \newtheorem{prop}{\protect\propositionname}[section]
101         EndPreamble
102 End
103
104
105 Style Conjecture
106         Preamble
107           \theoremstyle{plain}
108           \newtheorem{conjecture}{\protect\conjecturename}[section]
109         EndPreamble
110 End
111
112
113 Style Fact
114         Preamble
115           \theoremstyle{plain}
116           \newtheorem{fact}{\protect\factname}[section]
117         EndPreamble
118 End
119
120
121 Style Definition
122         Preamble
123           \theoremstyle{definition}
124           \newtheorem{defn}{\protect\definitionname}[section]
125         EndPreamble
126 End
127
128
129 Style Example
130         Preamble
131           \theoremstyle{definition}
132           \newtheorem{example}{\protect\examplename}[section]
133         EndPreamble
134 End
135
136
137 Style Problem
138         Preamble
139           \theoremstyle{definition}
140           \newtheorem{problem}{\protect\problemname}[section]
141         EndPreamble
142 End
143
144
145 Style Exercise
146         Preamble
147           \theoremstyle{definition}
148           \newtheorem{xca}{\protect\exercisename}[section]
149         EndPreamble
150 End
151
152
153 Style Remark
154         Preamble
155           \theoremstyle{remark}
156           \newtheorem{rem}{\protect\remarkname}[section]
157         EndPreamble
158 End
159
160
161 Style Claim
162         Preamble
163           \theoremstyle{remark}
164           \newtheorem{claim}{\protect\claimname}[section]
165         EndPreamble
166 End