X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-starred.inc;h=d7d9cf1c60022f4486a3cbae34c1893f74d01e64;hb=b4dcad83b2f6e3fce28b4e04cc1abc8d654f9bfe;hp=c76cdd080b681df35fd79eb5f34246ddc46e7eb0;hpb=7538c953a4dce785c2a62526baf75f2bdfcf7b79;p=lyx.git diff --git a/lib/layouts/theorems-starred.inc b/lib/layouts/theorems-starred.inc index c76cdd080b..d7d9cf1c60 100644 --- a/lib/layouts/theorems-starred.inc +++ b/lib/layouts/theorems-starred.inc @@ -14,23 +14,30 @@ # - Example # - Problem # - Exercise +# - Solution # - Remark # - Claim # - Proof -Format 40 +Format 60 + +OutlinerName thm "Definitions & Theorems" Style Theorem* - Category Theorem + Category Reasoning LatexType Environment Margin First_Dynamic LatexName thm* LabelType Static LabelString "Theorem." NextNoIndent 1 + ResetArgs 1 + AddToToc thm + IsTocCaption 1 Argument 1 - LabelString "Alternative Theorem String" - Tooltip "Alternative theorem string" + LabelString "Additional Theorem Text" + Tooltip "Additional text appended to the theorem header" + IsTocCaption 1 EndArgument LabelSep xx ParIndent MMM @@ -224,6 +231,23 @@ Style Exercise* End +Style Solution* + CopyStyle Definition* + LatexName sol* + LabelString "Solution." + Preamble + \theoremstyle{definition} + \newtheorem*{sol*}{\protect\solutionname} + EndPreamble + LangPreamble + \providecommand{\solutionname}{_(Solution)} + EndLangPreamble + BabelPreamble + \addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}} + EndBabelPreamble +End + + Style Remark* CopyStyle Theorem* LatexName rem*