1 #\DeclareLyXModule{Standard Theorems (Numbered by Type within Chapters)}
2 #\DeclareCategory{Maths}
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 chapter start.
10 #Requires: theorems-bytype | theorems-ams-bytype
11 #Excludes: theorems-std | theorems-ams | theorems-starred | theorems-sec | theorems-sec-bytype
13 # Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Kimberly Heck's various modules)
17 # We need separate counters for each theorem-like style.
76 \ifx\thechapter\undefined
77 \newtheorem{thm}{\protect\theoremname}
79 \newtheorem{thm}{\protect\theoremname}[chapter]
88 \ifx\thechapter\undefined
89 \newtheorem{cor}{\protect\corollaryname}
91 \newtheorem{cor}{\protect\corollaryname}[chapter]
100 \ifx\thechapter\undefined
101 \newtheorem{lem}{\protect\lemmaname}
103 \newtheorem{lem}{\protect\lemmaname}[chapter]
112 \ifx\thechapter\undefined
113 \newtheorem{prop}{\protect\propositionname}
115 \newtheorem{prop}{\protect\propositionname}[chapter]
124 \ifx\thechapter\undefined
125 \newtheorem{conjecture}{\protect\conjecturename}
127 \newtheorem{conjecture}{\protect\conjecturename}[chapter]
136 \ifx\thechapter\undefined
137 \newtheorem{fact}{\protect\factname}
139 \newtheorem{fact}{\protect\factname}[chapter]
147 \theoremstyle{definition}
148 \ifx\thechapter\undefined
149 \newtheorem{defn}{\protect\definitionname}
151 \newtheorem{defn}{\protect\definitionname}[chapter]
159 \theoremstyle{definition}
160 \ifx\thechapter\undefined
161 \newtheorem{example}{\protect\examplename}
163 \newtheorem{example}{\protect\examplename}[chapter]
171 \theoremstyle{definition}
172 \ifx\thechapter\undefined
173 \newtheorem{problem}{\protect\problemname}
175 \newtheorem{problem}{\protect\problemname}[chapter]
183 \theoremstyle{definition}
184 \ifx\thechapter\undefined
185 \newtheorem{xca}{\protect\exercisename}
187 \newtheorem{xca}{\protect\exercisename}[chapter]
195 \theoremstyle{remark}
196 \ifx\thechapter\undefined
197 \newtheorem{rem}{\protect\remarkname}
199 \newtheorem{rem}{\protect\remarkname}[chapter]
207 \theoremstyle{remark}
208 \ifx\thechapter\undefined
209 \newtheorem{claim}{\protect\claimname}
211 \newtheorem{claim}{\protect\claimname}[chapter]