X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-ams-extended-bytype.module;h=ecbf808f63f390276d23060ffac769223462e790;hb=a830e51c8ae7d3ab0da4694a7c1d3499db66878f;hp=e08c737e47d7e4d16e5ec41c7c2238326c58a8ca;hpb=cc0c3d0427bcffada1e4b989b69d54df539e21fd;p=lyx.git diff --git a/lib/layouts/theorems-ams-extended-bytype.module b/lib/layouts/theorems-ams-extended-bytype.module index e08c737e47..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 @@ -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