]> git.lyx.org Git - features.git/blobdiff - lib/layouts/theorems-ams.inc
theorems-ams: add solution environment
[features.git] / lib / layouts / theorems-ams.inc
index 85eb2b6c4659a931820c391bcee9ef1d5925a4be..55e946671ff98f3aa240d151e019d6c29fd2232d 100644 (file)
@@ -14,6 +14,7 @@
 # - Example
 # - Problem
 # - Exercise
+# - Solution
 # - Remark
 # - Claim
 # - Proof
@@ -232,6 +233,23 @@ Style Exercise
 End
 
 
+Style Solution
+       CopyStyle             Definition
+       LatexName             sol
+       LabelString           "Solution \thetheorem."
+       Preamble
+         \theoremstyle{definition}
+         \newtheorem{sol}[thm]{\protect\solutionname}
+       EndPreamble
+       LangPreamble
+               \providecommand{\solutionname}{_(Solution)}
+       EndLangPreamble
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
+       EndBabelPreamble
+End
+
+
 Style Remark
        CopyStyle             Theorem
        DependsOn             Theorem