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