1 #\DeclareLyXModule{Theorems (Numbered by Chapter)}
3 #Numbers theorems and the like by chapter (i.e., the counter is reset at
4 #each chapter start). Use this module only with document classes that provide a chapter
7 #Requires: theorems-std | theorems-ams
8 #Excludes: theorems-sec
11 # Author: Richard Heck <rgheck@comcast.net>
22 \ifx\thechapter\undefined
23 \newtheorem{thm}{\protect\theoremname}
25 \newtheorem{thm}{\protect\theoremname}[chapter]