]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams-extended-chap-bytype.module
Amend e6de6c2b
[lyx.git] / lib / layouts / theorems-ams-extended-chap-bytype.module
index 9d6b9e0964af99622861adeda03f3dd6af85cbfa..435eb65ab3468a4107b6ef2e406e7f03564c183f 100644 (file)
@@ -1,4 +1,5 @@
-#\DeclareLyXModule{Theorems (AMS-Extended, Numbered by Type within Chapters)}
+#\DeclareLyXModule{AMS Theorems (Extended, Numbered by Type within Chapters)}
+#\DeclareCategory{Maths}
 #DescriptionBegin
 #Defines some additional theorem environments for use with the
 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
@@ -19,7 +20,7 @@
 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
 # Chapter dependence added Oct '16 by Andrew Parsloe <aparsloe@clear.net.nz>
 
-Format 62
+Format 82
 
 Requires       amsmath
 
@@ -38,26 +39,48 @@ Requires    amsmath
 
 # We need separate counters for each theorem-like style.
 Counter criterion
+       GuiName Criterion
+       Within         chapter
 End
 Counter algorithm
+       GuiName Algorithm
+       Within         chapter
 End
 Counter axiom
+       GuiName Axiom
+       Within         chapter
 End
 Counter condition
+       GuiName Condition
+       Within         chapter
 End
 Counter note
+       GuiName Note
+       Within         chapter
 End
 Counter notation
+       GuiName Notation
+       Within         chapter
 End
 Counter summary
+       GuiName Summary
+       Within         chapter
 End
 Counter acknowledgement
+       GuiName Acknowledgement
+       Within         chapter
 End
 Counter conclusion
+       GuiName Conclusion
+       Within         chapter
 End
 Counter assumption
+       GuiName Assumption
+       Within         chapter
 End
 Counter question
+       GuiName Question
+       Within         chapter
 End
 
 
@@ -66,7 +89,7 @@ End
 Style Criterion
        CopyStyle             Theorem
        LatexName             criterion
-       LabelString           "Criterion \thechapter.\thecriterion."
+       LabelString           "Criterion \thecriterion."
        Preamble
          \theoremstyle{plain}
     \ifx\thechapter\undefined
@@ -105,7 +128,7 @@ End
 Style Algorithm
        CopyStyle             Theorem
        LatexName             lyxalgorithm
-       LabelString           "Algorithm \thechapter.\thealgorithm."
+       LabelString           "Algorithm \thealgorithm."
        Preamble
          \theoremstyle{plain}
     \ifx\thechapter\undefined
@@ -144,7 +167,7 @@ End
 Style Axiom
        CopyStyle             Theorem
        LatexName             ax
-       LabelString           "Axiom \thechapter.\theaxiom."
+       LabelString           "Axiom \theaxiom."
        Preamble
          \theoremstyle{plain}
     \ifx\thechapter\undefined
@@ -183,7 +206,7 @@ End
 Style Condition
        CopyStyle             Definition
        LatexName             condition
-       LabelString           "Condition \thechapter.\thecondition."
+       LabelString           "Condition \thecondition."
        Preamble
          \theoremstyle{definition}
     \ifx\thechapter\undefined
@@ -222,7 +245,7 @@ End
 Style Note
        CopyStyle             Remark
        LatexName             note
-       LabelString           "Note \thechapter.\thenote."
+       LabelString           "Note \thenote."
        Preamble
          \theoremstyle{remark}
     \ifx\thechapter\undefined
@@ -261,7 +284,7 @@ End
 Style Notation
        CopyStyle             Remark
        LatexName             notation
-       LabelString           "Notation \thechapter.\thenotation."
+       LabelString           "Notation \thenotation."
        Preamble
          \theoremstyle{remark}
     \ifx\thechapter\undefined
@@ -300,7 +323,7 @@ End
 Style Summary
        CopyStyle             Remark
        LatexName             summary
-       LabelString           "Summary \thechapter.\thesummary."
+       LabelString           "Summary \thesummary."
        Preamble
          \theoremstyle{remark}
     \ifx\thechapter\undefined
@@ -340,7 +363,7 @@ End
 Style Acknowledgement
        CopyStyle             Remark
        LatexName             acknowledgement
-       LabelString           "Acknowledgement \thechapter.\theacknowledgement."
+       LabelString           "Acknowledgement \theacknowledgement."
        Preamble
          \theoremstyle{remark}
     \ifx\thechapter\undefined
@@ -379,7 +402,7 @@ End
 Style Conclusion
        CopyStyle             Remark
        LatexName             conclusion
-       LabelString           "Conclusion \thechapter.\theconclusion."
+       LabelString           "Conclusion \theconclusion."
        Preamble
          \theoremstyle{remark}
     \ifx\thechapter\undefined
@@ -418,7 +441,7 @@ End
 Style Assumption
        CopyStyle             Theorem
        LatexName             assumption
-       LabelString           "Assumption \thechapter.\theassumption."
+       LabelString           "Assumption \theassumption."
        Preamble
          \theoremstyle{plain}
     \ifx\thechapter\undefined
@@ -457,7 +480,7 @@ Style Question
        CopyStyle             Theorem
        DependsOn             Theorem
        LatexName             question
-       LabelString           "Question \thechapter.\thequestion."
+       LabelString           "Question \thequestion."
        Preamble
          \theoremstyle{plain}
     \ifx\thechapter\undefined