]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-starred.inc
Use correct entry to remove an obsolete inset layout
[lyx.git] / lib / layouts / theorems-starred.inc
index dbbb602586af8bffbcc25b34dac730f01239195b..efe899e7f4503b62bd9afdd72b5bdfe5b36462d6 100644 (file)
 # - Example
 # - Problem
 # - Exercise
+# - Solution
 # - Remark
 # - Claim
 # - Proof
 
-Format 49
+Format 68
+
+OutlinerName thm "Definitions & Theorems"
 
 Style Theorem*
        Category              Reasoning
@@ -29,9 +32,12 @@ Style Theorem*
        LabelString           "Theorem."
        NextNoIndent          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
@@ -225,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*