]> git.lyx.org Git - features.git/blobdiff - lib/layouts/theorems-without-preamble.inc
- Springer layouts: add style "Sol" and fix layout of problem/solutions.lyx
[features.git] / lib / layouts / theorems-without-preamble.inc
index 4be9bec6299957b6da7059362a07d4f43bee0f49..85cf48fc169f5492e373b20f744f33c4d80d039c 100644 (file)
@@ -16,6 +16,7 @@
 # - Problem
 # - Prob
 # - Solution
+# - Sol
 # - Exercise
 # - Remark
 # - Claim
@@ -225,8 +226,6 @@ Style Problem
        LatexName       problem
        LabelString     "Problem \theproblem"
        RefPrefix       prob
-       OptionalArgs    1
-       RequiredArgs    1
        LangPreamble
                \providecommand{\problemname}{_(Problem)}
        EndLangPreamble
@@ -243,7 +242,8 @@ Style Prob
        CopyStyle       Problem
        LabelCounter    prob
        LatexName       prob
-       LabelString     "\theprob"
+       LabelString     "\theprob."
+       OptionalArgs    0
 End
 
 
@@ -253,7 +253,7 @@ Style Solution
        CopyStyle       Problem
        LabelCounter    solution
        LatexName       solution
-       LabelString     "Solution \thesolution"
+       LabelString     "Solution \thesolution."
        RefPrefix       sol
        LangPreamble
                \providecommand{\solutionname}{_(Solution)}
@@ -264,6 +264,18 @@ Style Solution
 End
 
 
+Counter                sol
+  Within       chapter
+End
+Style Sol
+       CopyStyle       Problem
+       LabelCounter    sol
+       LatexName       sol
+       LabelString     "\thesol"
+       RequiredArgs    1
+End
+
+
 Counter                exercise
 End
 Style Exercise