]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-without-preamble.inc
Fix #7495 by adding layouts for ctex document classes and
[lyx.git] / lib / layouts / theorems-without-preamble.inc
index 4be9bec6299957b6da7059362a07d4f43bee0f49..9a0a313c256e1a8286cf0474844e8b329f9a8b51 100644 (file)
@@ -16,6 +16,7 @@
 # - Problem
 # - Prob
 # - Solution
+# - Sol
 # - Exercise
 # - Remark
 # - Claim
@@ -127,12 +128,6 @@ Style Prop
        LabelFont
          Series        Medium
        EndFont
-       LangPreamble
-               \providecommand{\propname}{_(Prop)}
-       EndLangPreamble
-       BabelPreamble
-               \addto\captions$$lang{\renewcommand{\propname}{_(Prop)}}
-       EndBabelPreamble
 End
 
 
@@ -225,8 +220,6 @@ Style Problem
        LatexName       problem
        LabelString     "Problem \theproblem"
        RefPrefix       prob
-       OptionalArgs    1
-       RequiredArgs    1
        LangPreamble
                \providecommand{\problemname}{_(Problem)}
        EndLangPreamble
@@ -239,11 +232,30 @@ End
 Counter                prob
   Within       chapter
 End
+# Prob does not copy a style to avoid preamble code
 Style Prob
-       CopyStyle       Problem
-       LabelCounter    prob
+       Category        Exercise
+       LatexType       Environment
        LatexName       prob
-       LabelString     "\theprob"
+       Margin          First_Dynamic
+       LabelType       Counter
+       LabelCounter    prob
+       LabelString     "\theprob."
+       RefPrefix       pro
+       NextNoIndent    1
+       OptionalArgs    0
+       LabelSep        xx
+       ParIndent       MMM
+       ParSkip         0.4
+       ItemSep         0.2
+       TopSep          0.7
+       BottomSep       0.7
+       ParSep          0.3
+       Align           Block
+       AlignPossible   Left
+       LabelFont
+         Series        Bold
+       EndFont
 End
 
 
@@ -253,8 +265,8 @@ Style Solution
        CopyStyle       Problem
        LabelCounter    solution
        LatexName       solution
-       LabelString     "Solution \thesolution"
-       RefPrefix       sol
+       LabelString     "Solution \thesolution."
+       RefPrefix       solu
        LangPreamble
                \providecommand{\solutionname}{_(Solution)}
        EndLangPreamble
@@ -264,6 +276,15 @@ Style Solution
 End
 
 
+Style Sol
+       CopyStyle       Prob
+       LatexName       sol
+       LabelType       Static
+       LabelString     "# [number of Prob]"
+       RequiredArgs    1
+End
+
+
 Counter                exercise
 End
 Style Exercise