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
7 #Excludes: theorems-sec
9 # Author: Richard Heck <rgheck@comcast.net>
19 \ifx\thechapter\undefined
20 \newtheorem{thm}{Theorem}
22 \newtheorem{thm}{Theorem}[chapter]