]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-sec.module
Enumerate isn't always defined when the case stuff is included.
[lyx.git] / lib / layouts / theorems-sec.module
index 3be1c57af8a1997142551e4e2a072e040f36435c..2ddffc569b9a90b6289b0a218362f0e8132dd3b3 100644 (file)
@@ -1,13 +1,15 @@
-#\DeclareLyXModule{Theorems (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 14
+Format 45
 
 Counter theorem
        Within         section
@@ -15,12 +17,7 @@ End
 
 Style Theorem
        Preamble
+               \theoremstyle{plain}
                \newtheorem{thm}{\protect\theoremname}[section]
        EndPreamble
-       LangPreamble
-               \providecommand{\theoremname}{_(Theorem)}
-       EndLangPreamble
-       BabelPreamble
-               \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
-       EndBabelPreamble
 End