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 Heck's various modules)
17 # We need separate counters for each theorem-like style.
58 \ifx\thechapter\undefined
59 \newtheorem{thm}{\protect\theoremname}
61 \newtheorem{thm}{\protect\theoremname}[chapter]
70 \ifx\thechapter\undefined
71 \newtheorem{cor}{\protect\corollaryname}
73 \newtheorem{cor}{\protect\corollaryname}[chapter]
82 \ifx\thechapter\undefined
83 \newtheorem{lem}{\protect\lemmaname}
85 \newtheorem{lem}{\protect\lemmaname}[chapter]
94 \ifx\thechapter\undefined
95 \newtheorem{prop}{\protect\propositionname}
97 \newtheorem{prop}{\protect\propositionname}[chapter]
106 \ifx\thechapter\undefined
107 \newtheorem{conjecture}{\protect\conjecturename}
109 \newtheorem{conjecture}{\protect\conjecturename}[chapter]
118 \ifx\thechapter\undefined
119 \newtheorem{fact}{\protect\factname}
121 \newtheorem{fact}{\protect\factname}[chapter]
129 \theoremstyle{definition}
130 \ifx\thechapter\undefined
131 \newtheorem{defn}{\protect\definitionname}
133 \newtheorem{defn}{\protect\definitionname}[chapter]
141 \theoremstyle{definition}
142 \ifx\thechapter\undefined
143 \newtheorem{example}{\protect\examplename}
145 \newtheorem{example}{\protect\examplename}[chapter]
153 \theoremstyle{definition}
154 \ifx\thechapter\undefined
155 \newtheorem{problem}{\protect\problemname}
157 \newtheorem{problem}{\protect\problemname}[chapter]
165 \theoremstyle{definition}
166 \ifx\thechapter\undefined
167 \newtheorem{xca}{\protect\exercisename}
169 \newtheorem{xca}{\protect\exercisename}[chapter]
177 \theoremstyle{remark}
178 \ifx\thechapter\undefined
179 \newtheorem{rem}{\protect\remarkname}
181 \newtheorem{rem}{\protect\remarkname}[chapter]
189 \theoremstyle{remark}
190 \ifx\thechapter\undefined
191 \newtheorem{claim}{\protect\claimname}
193 \newtheorem{claim}{\protect\claimname}[chapter]