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