]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams.inc
specify a background color for listings and allow the user to change it, patch by...
[lyx.git] / lib / layouts / theorems-ams.inc
index 6a763bfbcdae21c1363235f6ff0c3018ac6f138d..c5687f178e893d9f9dea8dd11e0482cbb643e476 100644 (file)
@@ -19,7 +19,7 @@
 # - Proof
 # - Case (regular only -- defined as an enumeration)
 
-Format 6
+Format 8
 
 Style Theorem
        Category              Theorem
@@ -52,13 +52,13 @@ Style Theorem
                \theoremstyle{plain}
                \newtheorem{thm}{Theorem}
        EndPreamble
-       Requires amsthm
+       Requires              amsthm
 End
 
 
 Style Corollary
        CopyStyle             Theorem
-       DependsOn                         Theorem
+       DependsOn             Theorem
        LatexName             cor
        LabelString           "Corollary \thetheorem."
        Preamble
@@ -70,7 +70,7 @@ End
 
 Style Lemma
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             lem
        LabelString           "Lemma \thetheorem."
        Preamble
@@ -82,7 +82,7 @@ End
 
 Style Proposition
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             prop
        LabelString           "Proposition \thetheorem."
        Preamble
@@ -94,7 +94,7 @@ End
 
 Style Conjecture
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             conjecture
        LabelString           "Conjecture \thetheorem."
        Preamble
@@ -106,7 +106,7 @@ End
 
 Style Fact
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             fact
        LabelString           "Fact \thetheorem."
        Preamble
@@ -118,7 +118,7 @@ End
 
 Style Definition
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             defn
        LabelString           "Definition \thetheorem."
        Font
@@ -143,6 +143,7 @@ Style Example
         \theoremstyle{definition}
          \newtheorem{example}[thm]{Example}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -154,6 +155,7 @@ Style Problem
          \theoremstyle{definition}
          \newtheorem{problem}[thm]{Problem}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -165,12 +167,13 @@ Style Exercise
          \theoremstyle{definition}
          \newtheorem{xca}[thm]{Exercise}
        EndPreamble
+       Requires              amsthm
 End
 
 
 Style Remark
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             rem
        LabelString           "Remark \thetheorem."
        Font
@@ -196,6 +199,7 @@ Style Claim
          \theoremstyle{remark}
          \newtheorem{claim}[thm]{Claim}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -205,13 +209,23 @@ Style Case
        CopyStyle             Enumerate
        LatexName             caseenv
        LabelType             Static
-       LeftMargin            "Case ###:"
-       LabelString           "Case #:"
+       LeftMargin            "Case ###."
+       LabelString           "Case #."
+       LabelFont
+         Series              Medium
+         Shape               Italic
+       EndFont
        Preamble
          \newcounter{casectr}
          \newenvironment{caseenv}
-                       {\begin{list}{\bfseries\upshape Case \arabic{casectr}:}%
-                       {}\setcounter{casectr}{0}\usecounter{casectr}}%
-               {\end{list}}
+         {\begin{list}{{\itshape\ Case} \arabic{casectr}.}{%
+          \setlength{\leftmargin}{\labelwidth}
+          \addtolength{\leftmargin}{\parskip}
+          \setlength{\itemindent}{\listparindent}
+          \setlength{\itemsep}{\medskipamount}
+          \setlength{\topsep}{\itemsep}}
+          \setcounter{casectr}{0}
+          \usecounter{casectr}}
+         {\end{list}}
        EndPreamble
 End