]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap-bytype.module
Fix grammar
[lyx.git] / lib / layouts / theorems-chap-bytype.module
1 #\DeclareLyXModule{Standard Theorems (Numbered by Type within Chapters)}
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 chapter start.
9 #DescriptionEnd
10 #Requires: theorems-bytype | theorems-ams-bytype
11 #Excludes: theorems-std | theorems-ams | theorems-starred | theorems-sec | theorems-sec-bytype
12
13 # Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
14
15 Format 74
16
17 # We need separate counters for each theorem-like style.
18 Counter theorem
19         Within         chapter
20 End
21 Counter corollary
22         Within         chapter
23 End
24 Counter lemma
25         Within         chapter
26 End
27 Counter proposition
28         Within         chapter
29 End
30 Counter conjecture
31         Within         chapter
32 End
33 Counter fact
34         Within         chapter
35 End
36 Counter definition
37         Within         chapter
38 End
39 Counter example
40         Within         chapter
41 End
42 Counter problem
43         Within         chapter
44 End
45 Counter exercise
46         Within         chapter
47 End
48 Counter remark
49         Within         chapter
50 End
51 Counter claim
52         Within         chapter
53 End
54
55 Style Theorem
56         Preamble
57           \theoremstyle{plain}
58           \ifx\thechapter\undefined
59             \newtheorem{thm}{\protect\theoremname}
60           \else
61             \newtheorem{thm}{\protect\theoremname}[chapter]
62           \fi
63         EndPreamble
64 End
65
66
67 Style Corollary
68         Preamble
69           \theoremstyle{plain}
70           \ifx\thechapter\undefined
71             \newtheorem{cor}{\protect\corollaryname}
72           \else
73             \newtheorem{cor}{\protect\corollaryname}[chapter]
74           \fi
75         EndPreamble
76 End
77
78
79 Style Lemma
80         Preamble
81           \theoremstyle{plain}
82           \ifx\thechapter\undefined
83             \newtheorem{lem}{\protect\lemmaname}
84           \else
85             \newtheorem{lem}{\protect\lemmaname}[chapter]
86           \fi
87         EndPreamble
88 End
89
90
91 Style Proposition
92         Preamble
93           \theoremstyle{plain}
94           \ifx\thechapter\undefined
95             \newtheorem{prop}{\protect\propositionname}
96           \else
97             \newtheorem{prop}{\protect\propositionname}[chapter]
98           \fi
99         EndPreamble
100 End
101
102
103 Style Conjecture
104         Preamble
105           \theoremstyle{plain}
106           \ifx\thechapter\undefined
107             \newtheorem{conjecture}{\protect\conjecturename}
108           \else
109             \newtheorem{conjecture}{\protect\conjecturename}[chapter]
110           \fi
111         EndPreamble
112 End
113
114
115 Style Fact
116         Preamble
117           \theoremstyle{plain}
118           \ifx\thechapter\undefined
119             \newtheorem{fact}{\protect\factname}
120           \else
121             \newtheorem{fact}{\protect\factname}[chapter]
122           \fi
123         EndPreamble
124 End
125
126
127 Style Definition
128         Preamble
129           \theoremstyle{definition}
130           \ifx\thechapter\undefined
131             \newtheorem{defn}{\protect\definitionname}
132           \else
133             \newtheorem{defn}{\protect\definitionname}[chapter]
134           \fi
135         EndPreamble
136 End
137
138
139 Style Example
140         Preamble
141           \theoremstyle{definition}
142           \ifx\thechapter\undefined
143             \newtheorem{example}{\protect\examplename}
144           \else
145             \newtheorem{example}{\protect\examplename}[chapter]
146           \fi
147         EndPreamble
148 End
149
150
151 Style Problem
152         Preamble
153           \theoremstyle{definition}
154           \ifx\thechapter\undefined
155             \newtheorem{problem}{\protect\problemname}
156           \else
157             \newtheorem{problem}{\protect\problemname}[chapter]
158           \fi
159         EndPreamble
160 End
161
162
163 Style Exercise
164         Preamble
165           \theoremstyle{definition}
166           \ifx\thechapter\undefined
167             \newtheorem{xca}{\protect\exercisename}
168           \else
169             \newtheorem{xca}{\protect\exercisename}[chapter]
170           \fi
171         EndPreamble
172 End
173
174
175 Style Remark
176         Preamble
177           \theoremstyle{remark}
178           \ifx\thechapter\undefined
179             \newtheorem{rem}{\protect\remarkname}
180           \else
181             \newtheorem{rem}{\protect\remarkname}[chapter]
182           \fi
183         EndPreamble
184 End
185
186
187 Style Claim
188         Preamble
189           \theoremstyle{remark}
190           \ifx\thechapter\undefined
191             \newtheorem{claim}{\protect\claimname}
192           \else
193             \newtheorem{claim}{\protect\claimname}[chapter]
194           \fi
195         EndPreamble
196 End