]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-sec-bytype.module
DocBook: new logic to handle the new lines, only used in output_docbook for now.
[lyx.git] / lib / layouts / theorems-sec-bytype.module
index ebcd927d5ab0ce49e8651f00834113f9d16e16e4..8e29028f341f626c28f12e33d247738b04fcc5ec 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
 
 # Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
 
-Format 29
+Format 82
 
 # We need separate counters for each theorem-like style.
 Counter theorem
+       GuiName Theorem
        Within         section
 End
 Counter corollary
+       GuiName Corollary
        Within         section
 End
 Counter lemma
+       GuiName Lemma
        Within         section
 End
 Counter proposition
+       GuiName Proposition
        Within         section
 End
 Counter conjecture
+       GuiName Conjecture
        Within         section
 End
 Counter fact
+       GuiName Fact
        Within         section
 End
 Counter definition
+       GuiName Definition
        Within         section
 End
 Counter example
+       GuiName Example
        Within         section
 End
 Counter problem
+       GuiName Problem
        Within         section
 End
 Counter exercise
+       GuiName Exercise
        Within         section
 End
 Counter remark
+       GuiName Remark
        Within         section
 End
 Counter claim
+       GuiName Claim
        Within         section
 End
 
 Style Theorem
        Preamble
          \theoremstyle{plain}
-         \newtheorem{thm}{Theorem}[section]
+         \newtheorem{thm}{\protect\theoremname}[section]
        EndPreamble
 End
 
@@ -62,7 +75,7 @@ End
 Style Corollary
        Preamble
          \theoremstyle{plain}
-         \newtheorem{cor}{Corollary}[section]
+         \newtheorem{cor}{\protect\corollaryname}[section]
        EndPreamble
 End
 
@@ -70,7 +83,7 @@ End
 Style Lemma
        Preamble
          \theoremstyle{plain}
-         \newtheorem{lem}{Lemma}[section]
+         \newtheorem{lem}{\protect\lemmaname}[section]
        EndPreamble
 End
 
@@ -78,7 +91,7 @@ End
 Style Proposition
        Preamble
          \theoremstyle{plain}
-         \newtheorem{prop}{Proposition}[section]
+         \newtheorem{prop}{\protect\propositionname}[section]
        EndPreamble
 End
 
@@ -86,7 +99,7 @@ End
 Style Conjecture
        Preamble
          \theoremstyle{plain}
-         \newtheorem{conjecture}{Conjecture}[section]
+         \newtheorem{conjecture}{\protect\conjecturename}[section]
        EndPreamble
 End
 
@@ -94,7 +107,7 @@ End
 Style Fact
        Preamble
          \theoremstyle{plain}
-         \newtheorem{fact}{Fact}[section]
+         \newtheorem{fact}{\protect\factname}[section]
        EndPreamble
 End
 
@@ -102,7 +115,7 @@ End
 Style Definition
        Preamble
          \theoremstyle{definition}
-         \newtheorem{defn}{Definition}[section]
+         \newtheorem{defn}{\protect\definitionname}[section]
        EndPreamble
 End
 
@@ -110,7 +123,7 @@ End
 Style Example
        Preamble
          \theoremstyle{definition}
-         \newtheorem{example}{Example}[section]
+         \newtheorem{example}{\protect\examplename}[section]
        EndPreamble
 End
 
@@ -118,7 +131,7 @@ End
 Style Problem
        Preamble
          \theoremstyle{definition}
-         \newtheorem{problem}{Problem}[section]
+         \newtheorem{problem}{\protect\problemname}[section]
        EndPreamble
 End
 
@@ -126,7 +139,7 @@ End
 Style Exercise
        Preamble
          \theoremstyle{definition}
-         \newtheorem{xca}{Exercise}[section]
+         \newtheorem{xca}{\protect\exercisename}[section]
        EndPreamble
 End
 
@@ -134,7 +147,7 @@ End
 Style Remark
        Preamble
          \theoremstyle{remark}
-         \newtheorem{rem}{Remark}[section]
+         \newtheorem{rem}{\protect\remarkname}[section]
        EndPreamble
 End
 
@@ -142,6 +155,6 @@ End
 Style Claim
        Preamble
          \theoremstyle{remark}
-         \newtheorem{claim}{Claim}[section]
+         \newtheorem{claim}{\protect\claimname}[section]
        EndPreamble
 End