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