]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-sec.module
fix typos.
[lyx.git] / lib / layouts / theorems-sec.module
index b6461556fb0bc42a4d4034662f6ef1a588243e5b..c838960af17587a26550e5c46c39ec8d41fbedb3 100644 (file)
@@ -1,21 +1,29 @@
-#\DeclareLyXModule{Theorems (Order By Section)}
+#\DeclareLyXModule{Theorems (Numbered by Section)}
 #DescriptionBegin
-#Order theorems by section.
+#Numbers theorems and the like by section (i.e., the counter is reset at
+#each section start).
 #DescriptionEnd
-#Requires: Theorems | Theorems (AMS)
+#Requires: theorems-std | theorems-ams
+#Excludes: theorems-chap
+#Category: theorems
 
 # Author: Richard Heck <rgheck@comcast.net>
-# Adapted from amsmaths.inc
 
-Format 6
+Format 14
 
-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