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