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