]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams-bytype.inc
Regularly check if graphics is modified when visible on screen (#10596)
[lyx.git] / lib / layouts / theorems-ams-bytype.inc
index d5093c1cdda2524b906773d1e066c04fd4d04e55..f18b8cfda4c42add6f26194f646c887b5eec78ec 100644 (file)
 # - Example
 # - Problem
 # - Exercise
+# - Solution
 # - Remark
 # - Claim
 # - Case (by inclusion)
 
 # We need separate counters for each theorem-like style.
-Format 49
+Format 63
 Counter theorem
 End
 Counter corollary
@@ -42,11 +43,15 @@ Counter problem
 End
 Counter exercise
 End
+Counter solution
+End
 Counter remark
 End
 Counter claim
 End
 
+OutlinerName thm "Definitions & Theorems"
+
 Style Theorem
        Category              Reasoning
        Margin                First_Dynamic
@@ -54,9 +59,12 @@ Style Theorem
        LatexName             thm
        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
@@ -264,6 +272,25 @@ Style Exercise
 End
 
 
+Style Solution
+       CopyStyle             Definition
+       LatexName             sol
+       LabelString           "Solution \thesolution."
+       Preamble
+         \theoremstyle{definition}
+         \newtheorem{sol}{\protect\solutionname}
+       EndPreamble
+       Requires              amsthm
+       LangPreamble
+               \providecommand{\solutionname}{_(Solution)}
+       EndLangPreamble
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
+       EndBabelPreamble
+       LabelCounter          solution
+End
+
+
 Style Remark
        CopyStyle             Theorem
        LatexName             rem