1 #\DeclareLyXModule{Theorems (Numbered by Type within Chapters)}
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 chapter start.
9 #Requires: theorems-bytype | theorems-ams-bytype
10 #Excludes: theorems-std | theorems-ams | theorems-starred | theorems-sec | theorems-sec-bytype
12 # Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
16 # We need separate counters for each theorem-like style.
57 \ifx\thechapter\undefined
58 \newtheorem{thm}{Theorem}
60 \newtheorem{thm}{Theorem}[chapter]
69 \ifx\thechapter\undefined
70 \newtheorem{cor}{Corollary}
72 \newtheorem{cor}{Corollary}[chapter]
81 \ifx\thechapter\undefined
82 \newtheorem{lem}{Lemma}
84 \newtheorem{lem}{Lemma}[chapter]
93 \ifx\thechapter\undefined
94 \newtheorem{prop}{Proposition}
96 \newtheorem{prop}{Proposition}[chapter]
105 \ifx\thechapter\undefined
106 \newtheorem{conjecture}{Conjecture}
108 \newtheorem{conjecture}{Conjecture}[chapter]
117 \ifx\thechapter\undefined
118 \newtheorem{fact}{Fact}
120 \newtheorem{fact}{Fact}[chapter]
128 \theoremstyle{definition}
129 \ifx\thechapter\undefined
130 \newtheorem{defn}{Definition}
132 \newtheorem{defn}{Definition}[chapter]
140 \theoremstyle{definition}
141 \ifx\thechapter\undefined
142 \newtheorem{example}{Example}
144 \newtheorem{example}{Example}[chapter]
152 \theoremstyle{definition}
153 \ifx\thechapter\undefined
154 \newtheorem{problem}{Problem}
156 \newtheorem{problem}{Problem}[chapter]
164 \theoremstyle{definition}
165 \ifx\thechapter\undefined
166 \newtheorem{xca}{Exercise}
168 \newtheorem{xca}{Exercise}[chapter]
176 \theoremstyle{remark}
177 \ifx\thechapter\undefined
178 \newtheorem{rem}{Remark}
180 \newtheorem{rem}{Remark}[chapter]
188 \theoremstyle{remark}
189 \ifx\thechapter\undefined
190 \newtheorem{claim}{Claim}
192 \newtheorem{claim}{Claim}[chapter]