-#\DeclareLyXModule{Theorems (Order By Section)}
+#\DeclareLyXModule{Theorems (Numbered by Section)}
#DescriptionBegin
-#Numbers theorems and the like by section.
+#Numbers theorems and the like by section (i.e., the counter is reset at
+#each section start).
#DescriptionEnd
#Requires: theorems-std | theorems-ams
+#Excludes: theorems-chap
+#Category: theorems
# Author: Richard Heck <rgheck@comcast.net>
-Format 9
+Format 19
-Counter
- Name theorem
+Counter theorem
Within section
End
Style Theorem
Preamble
- \newtheorem{thm}{Theorem}[section]
+ \theoremstyle{plain}
+ \newtheorem{thm}{\protect\theoremname}[section]
EndPreamble
+ LangPreamble
+ \providecommand{\theoremname}{_(Theorem)}
+ EndLangPreamble
+ BabelPreamble
+ \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
+ EndBabelPreamble
End