1 #\DeclareLyXModule{Theorems (By Chapter)}
3 #Numbers theorems and the like by chapter. Use this module only with
4 #layouts that provide a chapter environment.
6 #Requires: theorems-std | theorems-ams
8 # Author: Richard Heck <rgheck@comcast.net>
18 \ifx\thechapter\undefined
19 \newtheorem{thm}{Theorem}
21 \newtheorem{thm}{Theorem}[chapter]