# Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
# Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
-Format 45
+Format 68
Requires amsmath
# - Acknowledgement
# - Conclusion
# - Assumption
+# - Question
# We need separate counters for each theorem-like style.
Counter criterion
End
Counter assumption
End
+Counter question
+End
Style Criterion
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)}
\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