]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-starred.inc
New layout for aastex6.cls. Fixes #10027.
[lyx.git] / lib / layouts / theorems-starred.inc
index c379a2f47b104d19c56c79da47fe785e4ae927c8..d7d9cf1c60022f4486a3cbae34c1893f74d01e64 100644 (file)
 # - Example
 # - Problem
 # - Exercise
+# - Solution
 # - Remark
 # - Claim
 # - Proof
 
-Format 54
+Format 60
+
+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*