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}{\protect\theoremname}
22 \newtheorem{thm}{\protect\theoremname}[chapter]
26 \providecommand{\theoremname}{_(Theorem)}
29 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}