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 Input theorem-counters-bytype.inc
59 \ifx\thechapter\undefined
60 \newtheorem{thm}{\protect\theoremname}
62 \newtheorem{thm}{\protect\theoremname}[chapter]
71 \ifx\thechapter\undefined
72 \newtheorem{cor}{\protect\corollaryname}
74 \newtheorem{cor}{\protect\corollaryname}[chapter]
83 \ifx\thechapter\undefined
84 \newtheorem{lem}{\protect\lemmaname}
86 \newtheorem{lem}{\protect\lemmaname}[chapter]
95 \ifx\thechapter\undefined
96 \newtheorem{prop}{\protect\propositionname}
98 \newtheorem{prop}{\protect\propositionname}[chapter]
107 \ifx\thechapter\undefined
108 \newtheorem{conjecture}{\protect\conjecturename}
110 \newtheorem{conjecture}{\protect\conjecturename}[chapter]
119 \ifx\thechapter\undefined
120 \newtheorem{fact}{\protect\factname}
122 \newtheorem{fact}{\protect\factname}[chapter]
130 \theoremstyle{definition}
131 \ifx\thechapter\undefined
132 \newtheorem{defn}{\protect\definitionname}
134 \newtheorem{defn}{\protect\definitionname}[chapter]
142 \theoremstyle{definition}
143 \ifx\thechapter\undefined
144 \newtheorem{example}{\protect\examplename}
146 \newtheorem{example}{\protect\examplename}[chapter]
154 \theoremstyle{definition}
155 \ifx\thechapter\undefined
156 \newtheorem{problem}{\protect\problemname}
158 \newtheorem{problem}{\protect\problemname}[chapter]
166 \theoremstyle{definition}
167 \ifx\thechapter\undefined
168 \newtheorem{xca}{\protect\exercisename}
170 \newtheorem{xca}{\protect\exercisename}[chapter]
178 \theoremstyle{remark}
179 \ifx\thechapter\undefined
180 \newtheorem{rem}{\protect\remarkname}
182 \newtheorem{rem}{\protect\remarkname}[chapter]
190 \theoremstyle{remark}
191 \ifx\thechapter\undefined
192 \newtheorem{claim}{\protect\claimname}
194 \newtheorem{claim}{\protect\claimname}[chapter]