1 #\DeclareLyXModule{Standard Theorems (Numbered by Chapter)}
2 #\DeclareCategory{Maths}
4 #Numbers theorems and the like by chapter (i.e., the counter is reset at
5 #each chapter start). Use this module only with document classes that provide a chapter
8 #Requires: theorems-std | theorems-ams
9 #Excludes: theorems-sec
11 # Author: Richard Kimberly Heck <rikiheck@lyx.org>
19 RefFormat thm "Theorem \thechapter.\arabic{theorem}"
20 RefFormat cor "Corollary \thechapter.\arabic{theorem}"
21 RefFormat lem "Lemma \thechapter.\arabic{theorem}"
22 RefFormat prop "Lemma \thechapter.\arabic{theorem}"
23 RefFormat conj "Conjecture \thechapter.\arabic{theorem}"
24 RefFormat def "Definition \thechapter.\arabic{theorem}"
25 RefFormat exa "Example \thechapter.\arabic{theorem}"
26 RefFormat prob "Problem \thechapter.\arabic{theorem}"
27 RefFormat exer "Exercise \thechapter.\arabic{theorem}"
28 RefFormat solu "Solution \thechapter.\arabic{theorem}"
29 RefFormat rem "Remark \thechapter.\arabic{theorem}"
30 RefFormat claim "Claim \thechapter.\arabic{theorem}"
31 RefFormat fact "Fact \thechapter.\arabic{theorem}"
32 RefFormat cri "Criterion \thechapter.\arabic{theorem}"
33 RefFormat alg "Algorithm \thechapter.\arabic{theorem}"
39 \ifx\thechapter\undefined
40 \newtheorem{thm}{\protect\theoremname}
42 \newtheorem{thm}{\protect\theoremname}[chapter]