X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-starred.inc;h=efe899e7f4503b62bd9afdd72b5bdfe5b36462d6;hb=c92c5b92a3d0ada4a00000b655634524ed66c9ad;hp=f79cf2a9a32dd2cf40c875fc69954011480f902f;hpb=2dfaebd2433d4dba46d50bca3d5b02044b54ff64;p=lyx.git diff --git a/lib/layouts/theorems-starred.inc b/lib/layouts/theorems-starred.inc index f79cf2a9a3..efe899e7f4 100644 --- a/lib/layouts/theorems-starred.inc +++ b/lib/layouts/theorems-starred.inc @@ -14,21 +14,31 @@ # - Example # - Problem # - Exercise +# - Solution # - Remark # - Claim # - Proof -Format 25 +Format 68 + +OutlinerName thm "Definitions & Theorems" Style Theorem* - Category Theorem + Category Reasoning LatexType Environment Margin First_Dynamic LatexName thm* LabelType Static LabelString "Theorem." NextNoIndent 1 - OptionalArgs 1 + ResetArgs 1 + AddToToc thm + IsTocCaption 1 + Argument 1 + LabelString "Additional Theorem Text" + Tooltip "Additional text appended to the theorem header" + IsTocCaption 1 + EndArgument LabelSep xx ParIndent MMM ParSkip 0.4 @@ -221,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*