]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-sec-bytype.module
Update branch inset inversion explanation
[lyx.git] / lib / layouts / theorems-sec-bytype.module
index 38c8b4ad872131ca65c913de199e63f67adb2809..6efa866f05d4cb3910f7a877bd82286394296f7c 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
 #Requires: theorems-bytype | theorems-ams-bytype
 #Excludes: theorems-std | theorems-ams | theorems-starred | theorems-chap | theorems-chap-bytype
 
-# Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
+# Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Kimberly Heck's various modules)
 
-Format 33
+Format 95
+
+Input theorems-counters-bytype.inc
 
-# We need separate counters for each theorem-like style.
 Counter theorem
-       Within         section
+       Within section
 End
 Counter corollary
-       Within         section
+       Within section
 End
 Counter lemma
-       Within         section
+       Within section
 End
 Counter proposition
-       Within         section
+       Within section
 End
 Counter conjecture
-       Within         section
+       Within section
 End
 Counter fact
-       Within         section
+       Within section
 End
 Counter definition
-       Within         section
+       Within section
 End
 Counter example
-       Within         section
+       Within section
 End
 Counter problem
-       Within         section
+       Within section
 End
 Counter exercise
-       Within         section
+       Within section
 End
 Counter remark
-       Within         section
+       Within section
 End
 Counter claim
-       Within         section
+       Within section
 End
 
 Style Theorem
        Preamble
          \theoremstyle{plain}
-         \newtheorem{thm}{Theorem}[section]
+         \newtheorem{thm}{\protect\theoremname}[section]
        EndPreamble
 End
 
@@ -62,7 +64,7 @@ End
 Style Corollary
        Preamble
          \theoremstyle{plain}
-         \newtheorem{cor}{Corollary}[section]
+         \newtheorem{cor}{\protect\corollaryname}[section]
        EndPreamble
 End
 
@@ -70,7 +72,7 @@ End
 Style Lemma
        Preamble
          \theoremstyle{plain}
-         \newtheorem{lem}{Lemma}[section]
+         \newtheorem{lem}{\protect\lemmaname}[section]
        EndPreamble
 End
 
@@ -78,7 +80,7 @@ End
 Style Proposition
        Preamble
          \theoremstyle{plain}
-         \newtheorem{prop}{Proposition}[section]
+         \newtheorem{prop}{\protect\propositionname}[section]
        EndPreamble
 End
 
@@ -86,7 +88,7 @@ End
 Style Conjecture
        Preamble
          \theoremstyle{plain}
-         \newtheorem{conjecture}{Conjecture}[section]
+         \newtheorem{conjecture}{\protect\conjecturename}[section]
        EndPreamble
 End
 
@@ -94,7 +96,7 @@ End
 Style Fact
        Preamble
          \theoremstyle{plain}
-         \newtheorem{fact}{Fact}[section]
+         \newtheorem{fact}{\protect\factname}[section]
        EndPreamble
 End
 
@@ -102,7 +104,7 @@ End
 Style Definition
        Preamble
          \theoremstyle{definition}
-         \newtheorem{defn}{Definition}[section]
+         \newtheorem{defn}{\protect\definitionname}[section]
        EndPreamble
 End
 
@@ -110,7 +112,7 @@ End
 Style Example
        Preamble
          \theoremstyle{definition}
-         \newtheorem{example}{Example}[section]
+         \newtheorem{example}{\protect\examplename}[section]
        EndPreamble
 End
 
@@ -118,7 +120,7 @@ End
 Style Problem
        Preamble
          \theoremstyle{definition}
-         \newtheorem{problem}{Problem}[section]
+         \newtheorem{problem}{\protect\problemname}[section]
        EndPreamble
 End
 
@@ -126,7 +128,7 @@ End
 Style Exercise
        Preamble
          \theoremstyle{definition}
-         \newtheorem{xca}{Exercise}[section]
+         \newtheorem{xca}{\protect\exercisename}[section]
        EndPreamble
 End
 
@@ -134,7 +136,7 @@ End
 Style Remark
        Preamble
          \theoremstyle{remark}
-         \newtheorem{rem}{Remark}[section]
+         \newtheorem{rem}{\protect\remarkname}[section]
        EndPreamble
 End
 
@@ -142,6 +144,6 @@ End
 Style Claim
        Preamble
          \theoremstyle{remark}
-         \newtheorem{claim}{Claim}[section]
+         \newtheorem{claim}{\protect\claimname}[section]
        EndPreamble
 End