]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems.inc
* UserGuide.lyx
[lyx.git] / lib / layouts / theorems.inc
index a85561b850a8e8ffe8c959c4750de044be4c2814..12c2a4f115a07244dd8013a51f9b377a874fa53a 100644 (file)
 # - Proof
 # - Case (regular only -- defined as an enumeration)
 
-Format 6
+Format 8
 
 Style Theorem
+       Category              Theorem
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             thm
@@ -48,9 +49,9 @@ Style Theorem
          Series              Bold
        EndFont
        Preamble
-               \theoremstyle{plain}
                \newtheorem{thm}{Theorem}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -60,7 +61,6 @@ Style Corollary
        LatexName             cor
        LabelString           "Corollary \thetheorem."
        Preamble
-         \theoremstyle{plain}
          \newtheorem{cor}[thm]{Corollary}
        EndPreamble
 End
@@ -72,7 +72,6 @@ Style Lemma
        LatexName             lem
        LabelString           "Lemma \thetheorem."
        Preamble
-         \theoremstyle{plain}
          \newtheorem{lem}[thm]{Lemma}
        EndPreamble
 End
@@ -84,7 +83,6 @@ Style Proposition
        LatexName             prop
        LabelString           "Proposition \thetheorem."
        Preamble
-         \theoremstyle{plain}
          \newtheorem{prop}[thm]{Proposition}
        EndPreamble
 End
@@ -96,7 +94,6 @@ Style Conjecture
        LatexName             conjecture
        LabelString           "Conjecture \thetheorem."
        Preamble
-         \theoremstyle{plain}
          \newtheorem{conjecture}[thm]{Conjecture}
        EndPreamble
 End
@@ -108,7 +105,6 @@ Style Fact
        LatexName             fact
        LabelString           "Fact \thetheorem."
        Preamble
-         \theoremstyle{plain}
          \newtheorem{fact}[thm]{Fact}
        EndPreamble
 End
@@ -138,9 +134,10 @@ Style Example
        LatexName             example
        LabelString           "Example \thetheorem."
        Preamble
-        \theoremstyle{definition}
+         \theoremstyle{definition}
          \newtheorem{example}[thm]{Example}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -152,6 +149,7 @@ Style Problem
          \theoremstyle{definition}
          \newtheorem{problem}[thm]{Problem}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -163,6 +161,7 @@ Style Exercise
          \theoremstyle{definition}
          \newtheorem{xca}[thm]{Exercise}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -194,20 +193,33 @@ Style Claim
          \theoremstyle{remark}
          \newtheorem{claim}[thm]{Claim}
        EndPreamble
+       Requires              amsthm
 End
 
 
 # Define Case as an enumeration environment
 Style Case
+       Category              Theorem
        CopyStyle             Enumerate
        LatexName             caseenv
        LabelType             Static
-       LeftMargin            "MMMMMMN"
-       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