]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-sec-bytype.module
Fix grammar
[lyx.git] / lib / layouts / theorems-sec-bytype.module
index d6800eaee051ef05722a819144733a914e903524..0d46c631be0758e15ce696dbafb46479d4ed573b 100644 (file)
@@ -1,4 +1,5 @@
-#\DeclareLyXModule{Theorems (Numbered by Type within Sections)}
+#\DeclareLyXModule{Standard Theorems (Numbered by Type within Sections)}
+#\DeclareCategory{Maths}
 #DescriptionBegin
 #Defines some theorem environments for use with non-AMS classes. Contrary to the
 #plain Theorem module, the different theorem types provided here each have a separate
@@ -11,7 +12,7 @@
 
 # Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
 
-Format 21
+Format 74
 
 # We need separate counters for each theorem-like style.
 Counter theorem
@@ -54,7 +55,7 @@ End
 Style Theorem
        Preamble
          \theoremstyle{plain}
-         \newtheorem{thm}{Theorem}[section]
+         \newtheorem{thm}{\protect\theoremname}[section]
        EndPreamble
 End
 
@@ -62,7 +63,7 @@ End
 Style Corollary
        Preamble
          \theoremstyle{plain}
-         \newtheorem{cor}{Corollary}[section]
+         \newtheorem{cor}{\protect\corollaryname}[section]
        EndPreamble
 End
 
@@ -70,7 +71,7 @@ End
 Style Lemma
        Preamble
          \theoremstyle{plain}
-         \newtheorem{lem}{Lemma}[section]
+         \newtheorem{lem}{\protect\lemmaname}[section]
        EndPreamble
 End
 
@@ -78,7 +79,7 @@ End
 Style Proposition
        Preamble
          \theoremstyle{plain}
-         \newtheorem{prop}{Proposition}[section]
+         \newtheorem{prop}{\protect\propositionname}[section]
        EndPreamble
 End
 
@@ -86,7 +87,7 @@ End
 Style Conjecture
        Preamble
          \theoremstyle{plain}
-         \newtheorem{conjecture}{Conjecture}[section]
+         \newtheorem{conjecture}{\protect\conjecturename}[section]
        EndPreamble
 End
 
@@ -94,7 +95,7 @@ End
 Style Fact
        Preamble
          \theoremstyle{plain}
-         \newtheorem{fact}{Fact}[section]
+         \newtheorem{fact}{\protect\factname}[section]
        EndPreamble
 End
 
@@ -102,7 +103,7 @@ End
 Style Definition
        Preamble
          \theoremstyle{definition}
-         \newtheorem{defn}{Definition}[section]
+         \newtheorem{defn}{\protect\definitionname}[section]
        EndPreamble
 End
 
@@ -110,7 +111,7 @@ End
 Style Example
        Preamble
          \theoremstyle{definition}
-         \newtheorem{example}{Example}[section]
+         \newtheorem{example}{\protect\examplename}[section]
        EndPreamble
 End
 
@@ -118,7 +119,7 @@ End
 Style Problem
        Preamble
          \theoremstyle{definition}
-         \newtheorem{problem}{Problem}[section]
+         \newtheorem{problem}{\protect\problemname}[section]
        EndPreamble
 End
 
@@ -126,7 +127,7 @@ End
 Style Exercise
        Preamble
          \theoremstyle{definition}
-         \newtheorem{xca}{Exercise}[section]
+         \newtheorem{xca}{\protect\exercisename}[section]
        EndPreamble
 End
 
@@ -134,7 +135,7 @@ End
 Style Remark
        Preamble
          \theoremstyle{remark}
-         \newtheorem{rem}{Remark}[section]
+         \newtheorem{rem}{\protect\remarkname}[section]
        EndPreamble
 End
 
@@ -142,6 +143,6 @@ End
 Style Claim
        Preamble
          \theoremstyle{remark}
-         \newtheorem{claim}{Claim}[section]
+         \newtheorem{claim}{\protect\claimname}[section]
        EndPreamble
 End