]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams.inc
Question environments, from Russ Woodroofe.
[lyx.git] / lib / layouts / theorems-ams.inc
index 00525cd6bafe052daca27eea5b76b6140ca0831c..79327ef66d30b176986ead549153f5d0666b50e7 100644 (file)
@@ -19,7 +19,7 @@
 # - Proof
 # - Case (regular only -- defined as an enumeration)
 
-Format 6
+Format 11
 
 Style Theorem
        Category              Theorem
@@ -52,12 +52,13 @@ Style Theorem
                \theoremstyle{plain}
                \newtheorem{thm}{Theorem}
        EndPreamble
+       Requires              amsthm
 End
 
 
 Style Corollary
        CopyStyle             Theorem
-       DependsOn                         Theorem
+       DependsOn             Theorem
        LatexName             cor
        LabelString           "Corollary \thetheorem."
        Preamble
@@ -69,7 +70,7 @@ End
 
 Style Lemma
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             lem
        LabelString           "Lemma \thetheorem."
        Preamble
@@ -81,7 +82,7 @@ End
 
 Style Proposition
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             prop
        LabelString           "Proposition \thetheorem."
        Preamble
@@ -93,7 +94,7 @@ End
 
 Style Conjecture
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             conjecture
        LabelString           "Conjecture \thetheorem."
        Preamble
@@ -105,7 +106,7 @@ End
 
 Style Fact
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             fact
        LabelString           "Fact \thetheorem."
        Preamble
@@ -117,7 +118,7 @@ End
 
 Style Definition
        CopyStyle             Theorem
-       DependsOn                   Theorem
+       DependsOn             Theorem
        LatexName             defn
        LabelString           "Definition \thetheorem."
        Font
@@ -142,6 +143,7 @@ Style Example
         \theoremstyle{definition}
          \newtheorem{example}[thm]{Example}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -153,6 +155,7 @@ Style Problem
          \theoremstyle{definition}
          \newtheorem{problem}[thm]{Problem}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -164,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
@@ -195,21 +199,43 @@ Style Claim
          \theoremstyle{remark}
          \newtheorem{claim}[thm]{Claim}
        EndPreamble
+       Requires              amsthm
 End
 
 
 # Define Case as an enumeration environment
 Style Case
        Category              Theorem
-       CopyStyle             Enumerate
+       Margin                Static
+       LatexType             Item_Environment
        LatexName             caseenv
        LabelType             Static
-       LeftMargin            "Case ###:"
-       LabelString           "Case #:"
+       NextNoIndent          1
+       LeftMargin            "Case ###."
+       ParSkip               0.0
+       ItemSep               0.2
+       TopSep                0.7
+       BottomSep             0.7
+       ParSep                0.3
+       Align                 Block
+       AlignPossible         Block, Left
+       LabelSep              xx
+       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