]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-sec-bytype.module
Module categories: join math related stuff
[lyx.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 74
16
17 # We need separate counters for each theorem-like style.
18 Counter theorem
19         Within         section
20 End
21 Counter corollary
22         Within         section
23 End
24 Counter lemma
25         Within         section
26 End
27 Counter proposition
28         Within         section
29 End
30 Counter conjecture
31         Within         section
32 End
33 Counter fact
34         Within         section
35 End
36 Counter definition
37         Within         section
38 End
39 Counter example
40         Within         section
41 End
42 Counter problem
43         Within         section
44 End
45 Counter exercise
46         Within         section
47 End
48 Counter remark
49         Within         section
50 End
51 Counter claim
52         Within         section
53 End
54
55 Style Theorem
56         Preamble
57           \theoremstyle{plain}
58           \newtheorem{thm}{\protect\theoremname}[section]
59         EndPreamble
60 End
61
62
63 Style Corollary
64         Preamble
65           \theoremstyle{plain}
66           \newtheorem{cor}{\protect\corollaryname}[section]
67         EndPreamble
68 End
69
70
71 Style Lemma
72         Preamble
73           \theoremstyle{plain}
74           \newtheorem{lem}{\protect\lemmaname}[section]
75         EndPreamble
76 End
77
78
79 Style Proposition
80         Preamble
81           \theoremstyle{plain}
82           \newtheorem{prop}{\protect\propositionname}[section]
83         EndPreamble
84 End
85
86
87 Style Conjecture
88         Preamble
89           \theoremstyle{plain}
90           \newtheorem{conjecture}{\protect\conjecturename}[section]
91         EndPreamble
92 End
93
94
95 Style Fact
96         Preamble
97           \theoremstyle{plain}
98           \newtheorem{fact}{\protect\factname}[section]
99         EndPreamble
100 End
101
102
103 Style Definition
104         Preamble
105           \theoremstyle{definition}
106           \newtheorem{defn}{\protect\definitionname}[section]
107         EndPreamble
108 End
109
110
111 Style Example
112         Preamble
113           \theoremstyle{definition}
114           \newtheorem{example}{\protect\examplename}[section]
115         EndPreamble
116 End
117
118
119 Style Problem
120         Preamble
121           \theoremstyle{definition}
122           \newtheorem{problem}{\protect\problemname}[section]
123         EndPreamble
124 End
125
126
127 Style Exercise
128         Preamble
129           \theoremstyle{definition}
130           \newtheorem{xca}{\protect\exercisename}[section]
131         EndPreamble
132 End
133
134
135 Style Remark
136         Preamble
137           \theoremstyle{remark}
138           \newtheorem{rem}{\protect\remarkname}[section]
139         EndPreamble
140 End
141
142
143 Style Claim
144         Preamble
145           \theoremstyle{remark}
146           \newtheorem{claim}{\protect\claimname}[section]
147         EndPreamble
148 End