]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-bytype.inc
Use footnotehyper rather than footnote if hyperref is used
[lyx.git] / lib / layouts / theorems-bytype.inc
index 56aebbe1f0fafd281356353da889589d9d203b3c..fcdda28ffd03fb4e90b2ded9b6fe75a36473a105 100644 (file)
 # - Example
 # - Problem
 # - Exercise
+# - Solution
 # - Remark
 # - Claim
 # - Proof
 # - Case (by inclusion)
 
-Format 48
+Format 68
 
 Style Theorem
        Category              Reasoning
@@ -29,9 +30,10 @@ Style Theorem
        LatexType             Environment
        LatexName             thm
        NextNoIndent          1
+       ResetArgs             1
        Argument 1
-               LabelString   "Alternative Theorem String"
-               Tooltip       "Alternative theorem string"
+               LabelString    "Additional Theorem Text"
+               Tooltip        "Additional text appended to the theorem header"
        EndArgument
        LabelSep              xx
        ParIndent             MMM
@@ -239,6 +241,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