]> 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 a85561b850a8e8ffe8c959c4750de044be4c2814..79327ef66d30b176986ead549153f5d0666b50e7 100644 (file)
 # - Proof
 # - Case (regular only -- defined as an enumeration)
 
-Format 6
+Format 11
 
 Style Theorem
+       Category              Theorem
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             thm
@@ -51,6 +52,7 @@ Style Theorem
                \theoremstyle{plain}
                \newtheorem{thm}{Theorem}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -141,6 +143,7 @@ Style Example
         \theoremstyle{definition}
          \newtheorem{example}[thm]{Example}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -152,6 +155,7 @@ Style Problem
          \theoremstyle{definition}
          \newtheorem{problem}[thm]{Problem}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -163,6 +167,7 @@ Style Exercise
          \theoremstyle{definition}
          \newtheorem{xca}[thm]{Exercise}
        EndPreamble
+       Requires              amsthm
 End
 
 
@@ -194,20 +199,43 @@ Style Claim
          \theoremstyle{remark}
          \newtheorem{claim}[thm]{Claim}
        EndPreamble
+       Requires              amsthm
 End
 
 
 # Define Case as an enumeration environment
 Style Case
-       CopyStyle             Enumerate
+       Category              Theorem
+       Margin                Static
+       LatexType             Item_Environment
        LatexName             caseenv
        LabelType             Static
-       LeftMargin            "MMMMMMN"
-       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