]> 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 85cf48fc169f5492e373b20f744f33c4d80d039c..9a0a313c256e1a8286cf0474844e8b329f9a8b51 100644 (file)
@@ -128,12 +128,6 @@ Style Prop
        LabelFont
          Series        Medium
        EndFont
-       LangPreamble
-               \providecommand{\propname}{_(Prop)}
-       EndLangPreamble
-       BabelPreamble
-               \addto\captions$$lang{\renewcommand{\propname}{_(Prop)}}
-       EndBabelPreamble
 End
 
 
@@ -238,12 +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
+       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
 
 
@@ -254,7 +266,7 @@ Style Solution
        LabelCounter    solution
        LatexName       solution
        LabelString     "Solution \thesolution."
-       RefPrefix       sol
+       RefPrefix       solu
        LangPreamble
                \providecommand{\solutionname}{_(Solution)}
        EndLangPreamble
@@ -264,14 +276,11 @@ Style Solution
 End
 
 
-Counter                sol
-  Within       chapter
-End
 Style Sol
-       CopyStyle       Problem
-       LabelCounter    sol
+       CopyStyle       Prob
        LatexName       sol
-       LabelString     "\thesol"
+       LabelType       Static
+       LabelString     "# [number of Prob]"
        RequiredArgs    1
 End