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
10 # Author: Richard Heck <rgheck@comcast.net>
21 \ifx\thechapter\undefined
22 \newtheorem{thm}{\protect\theoremname}
24 \newtheorem{thm}{\protect\theoremname}[chapter]
28 \providecommand{\theoremname}{_(Theorem)}
31 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}