]> git.lyx.org Git - features.git/blobdiff - lib/layouts/theorems-starred.inc
theorems-ams: add solution environment
[features.git] / lib / layouts / theorems-starred.inc
index a1d57df08ca53f2218c8f7e6762de81299aad448..6946d8c356842416bf9ba2c9f26dc1ad55f805c3 100644 (file)
@@ -14,6 +14,7 @@
 # - Example
 # - Problem
 # - Exercise
+# - Solution
 # - Remark
 # - Claim
 # - Proof
@@ -225,6 +226,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*