X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-ams-extended-bytype.module;h=ecbf808f63f390276d23060ffac769223462e790;hb=a830e51c8ae7d3ab0da4694a7c1d3499db66878f;hp=672ee4c5d1667f4275aad7b28bd24da9f2d71280;hpb=eb53c60a8f2e3b9bf6fb783a893cc7814f94139f;p=lyx.git diff --git a/lib/layouts/theorems-ams-extended-bytype.module b/lib/layouts/theorems-ams-extended-bytype.module index 672ee4c5d1..ecbf808f63 100644 --- a/lib/layouts/theorems-ams-extended-bytype.module +++ b/lib/layouts/theorems-ams-extended-bytype.module @@ -18,7 +18,7 @@ # Modularized Jan 08 by Richard Heck # Hacked June '09 by Paul Rubin to use separate counters -Format 45 +Format 54 Requires amsmath @@ -33,6 +33,7 @@ Requires amsmath # - Acknowledgement # - Conclusion # - Assumption +# - Question # We need separate counters for each theorem-like style. Counter criterion @@ -55,6 +56,8 @@ Counter conclusion End Counter assumption End +Counter question +End Style Criterion @@ -93,11 +96,11 @@ 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)} @@ -111,11 +114,11 @@ End 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)} @@ -404,3 +407,39 @@ Style Assumption* \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