]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams-extended-bytype.module
DocBook: fix margin notes.
[lyx.git] / lib / layouts / theorems-ams-extended-bytype.module
index 1046d0129292100131221251b097b4f713a2cfe5..e031a74362f2aaed83efa1cfcd9ec30c8f4a2aa2 100644 (file)
@@ -1,4 +1,5 @@
-#\DeclareLyXModule{Theorems (AMS-Extended, Numbered by Type)}
+#\DeclareLyXModule{AMS Theorems (Extended, Numbered by Type)}
+#\DeclareCategory{Maths}
 #DescriptionBegin
 #Defines some additional theorem environments for use with the
 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
@@ -18,7 +19,7 @@
 # Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
 
-Format 53
+Format 82
 
 Requires       amsmath
 
@@ -33,27 +34,41 @@ Requires    amsmath
 # - Acknowledgement
 # - Conclusion
 # - Assumption
+# - Question
 
 # We need separate counters for each theorem-like style.
 Counter criterion
+       GuiName Criterion
 End
 Counter algorithm
+       GuiName Algorithm
 End
 Counter axiom
+       GuiName Axiom
 End
 Counter condition
+       GuiName Condition
 End
 Counter note
+       GuiName Note
 End
 Counter notation
+       GuiName Notation
 End
 Counter summary
+       GuiName Summary
 End
 Counter acknowledgement
+       GuiName Acknowledgement
 End
 Counter conclusion
+       GuiName Conclusion
 End
 Counter assumption
+       GuiName Assumption
+End
+Counter question
+       GuiName Question
 End
 
 
@@ -405,4 +420,38 @@ Style Assumption*
        EndBabelPreamble
 End
 
+Style Question
+       CopyStyle             Theorem
+       DependsOn             Theorem
+       LatexName             question
+       LabelString           "Question \thequestion."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem{question}{\protect\questionname}
+       EndPreamble
+       LangPreamble
+         \providecommand{\questionname}{_(Question)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
+       EndBabelPreamble
+       LabelCounter          question
+End
+
+Style Question*
+       CopyStyle             Theorem*
+       LatexName             question*
+       LabelString           "Question."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem*{question*}{\protect\questionname}
+       EndPreamble
+       LangPreamble
+         \providecommand{\questionname}{_(Question)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
+       EndBabelPreamble
+End
+
 Input theorems-refprefix.inc