-#\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,
# Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
# Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
-Format 34
+Format 82
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
Style Algorithm
CopyStyle Theorem
- LatexName algorithm
+ LatexName lyxalgorithm
LabelString "Algorithm \thealgorithm."
Preamble
\theoremstyle{plain}
- \newtheorem{algorithm}{\protect\algorithmname}
+ \newtheorem{lyxalgorithm}{\protect\algorithmname}
EndPreamble
LangPreamble
\providecommand{\algorithmname}{_(Algorithm)}
Style Algorithm*
CopyStyle Theorem*
- LatexName algorithm*
+ LatexName lyxalgorithm*
LabelString "Algorithm."
Preamble
\theoremstyle{plain}
- \newtheorem*{algorithm*}{\protect\algorithmname}
+ \newtheorem*{lyxalgorithm*}{\protect\algorithmname}
EndPreamble
LangPreamble
\providecommand{\algorithmname}{_(Algorithm)}
Preamble
\theoremstyle{plain}
\newtheorem*{assumption*}{\protect\assumptionname}
+ EndPreamble
LangPreamble
\providecommand{\assumptionname}{_(Assumption)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\renewcommand{\assumptionname}{_(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