]> git.lyx.org Git - features.git/blob - lib/layouts/theorems-withinsec.module
This is one of a series of patches that will merge the layout modules development...
[features.git] / lib / layouts / theorems-withinsec.module
1 #\DeclareLyXModule{Defines some theorem environments for use with non-AMS classes. The theorems are numbered within sections of the document.}{Theorems (By Section)}
2
3 # Author: Richard Heck <rgheck@comcast.net>
4 # Adapted from amsmaths.inc
5
6 # The environnements defined are :
7 # - Theorem
8 # - Corollary
9 # - Lemma
10 # - Proposition
11 # - Conjecture
12 # - Definition
13 # - Example
14 # - Exercise
15 # - Remark
16 # - Note
17 # - Claim
18 # - Case
19 # - Conclusion
20 # - Fact
21
22 Format 5
23
24 Counter
25         Name           theorem
26         Within         section
27 End
28
29
30 Style Theorem
31         Margin                First_Dynamic
32         LatexType             Environment
33         LatexName             thm
34         NextNoIndent          1
35         LabelSep              xx
36         ParIndent             MMM
37         ParSkip               0.4
38         ItemSep               0.2
39         TopSep                0.7
40         BottomSep             0.7
41         ParSep                0.3
42         Align                 Block
43         AlignPossible         Block, Left
44         LabelType             Counter
45         LabelCounter          theorem
46         LabelString           "Theorem \thetheorem."
47         Font
48           Shape               Italic
49           Size                Normal
50         EndFont
51         LabelFont
52           Shape               Up
53           Series              Bold
54         EndFont
55         Preamble
56                 \newtheorem{thm}{Theorem}[section]
57         EndPreamble
58 End
59
60 Style Corollary
61         CopyStyle             Theorem
62         LatexName             cor
63         LabelString           "Corollary \thetheorem."
64         Preamble
65           \newtheorem{cor}[thm]{Corollary}
66         EndPreamble
67 End
68
69 Style Lemma
70         CopyStyle             Theorem
71         LatexName             lem
72         LabelString           "Lemma \thetheorem."
73         Preamble
74           \newtheorem{lem}[thm]{Lemma}
75         EndPreamble
76 End
77
78 Style Proposition
79         CopyStyle             Theorem
80         LatexName             prop
81         LabelString           "Proposition \thetheorem."
82         Preamble
83           \newtheorem{prop}[thm]{Proposition}
84         EndPreamble
85 End
86
87 Style Conjecture
88         CopyStyle             Theorem
89         LatexName             conjecture
90         LabelString           "Conjecture \thetheorem."
91         Preamble
92           \newtheorem{conjecture}[thm]{Conjecture}
93         EndPreamble
94 End
95
96 Style Fact
97         CopyStyle             Theorem
98         LatexName             fact
99         LabelString           "Fact \thetheorem."
100         Preamble
101           \newtheorem{fact}[thm]{Fact}
102         EndPreamble
103 End
104
105 Style Definition
106         CopyStyle             Theorem
107         LatexName             defn
108         LabelString           "Definition \thetheorem."
109         Font
110           Shape               Up
111         EndFont
112         LabelFont
113           Shape               Up
114           Series              Bold
115         EndFont
116         Preamble
117           \newtheorem{defn}[thm]{Definition}
118         EndPreamble
119 End
120
121
122 Style Example
123         CopyStyle             Definition
124         LatexName             example
125         LabelString           "Example \thetheorem."
126         Preamble
127           \newtheorem{example}[thm]{Example}
128         EndPreamble
129 End
130
131
132 Style Exercise
133         CopyStyle             Definition
134         LatexName             xca
135         LabelString           "Exercise \thetheorem."
136         Preamble
137           \newtheorem{xca}{Exercise}
138         EndPreamble
139 End
140
141
142 Style Remark
143         CopyStyle             Theorem
144         LatexName             rem
145         LabelString           "Remark \thetheorem."
146         Font
147           Shape               Up
148           Size                Normal
149         EndFont
150         LabelFont
151           Series              Medium
152           Shape               Italic
153         EndFont
154         Preamble
155           \newtheorem{rem}[thm]{Remark}
156         EndPreamble
157 End
158
159
160 Style Claim
161         CopyStyle             Remark
162         LatexName             claim
163         LabelString           "Claim \thetheorem."
164         Preamble
165           \newtheorem{claim}[thm]{Claim}
166         EndPreamble
167 End
168
169 Style Case
170         CopyStyle             Remark
171         LatexName             case
172         LabelString           "Case \thetheorem."
173         Preamble
174           \newtheorem{case}[thm]{Case}
175         EndPreamble
176 End
177
178
179 Style Conclusion
180         CopyStyle             Remark
181         LatexName             conclusion
182         LabelString           "Conclusion \thetheorem."
183         Preamble
184           \newtheorem{conclusion}[thm]{Conclusion}
185         EndPreamble
186 End
187