]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-bytype.inc
cosmetics
[lyx.git] / lib / layouts / theorems-bytype.inc
index 1814e16ddc2ca9dec5f592732adb08d9974dfcdb..263cdcb3d6dbbc3e78cc86c19738e6b02465f834 100644 (file)
@@ -5,7 +5,7 @@
 # Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
 
-# The environnements defined are :
+# The environments defined are :
 # - Theorem
 # - Corollary
 # - Lemma
 # - Remark
 # - Claim
 # - Proof
-# - Case (regular only -- defined as an enumeration)
+# - Case (by inclusion)
 
-Format 35
+Format 49
 
 Style Theorem
-       Category              Theorem
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             thm
        NextNoIndent          1
-       OptionalArgs          1
+       ResetArgs             1
+       Argument 1
+               LabelString    "Additional Theorem Text"
+               Tooltip        "Additional text appended to the theorem header"
+       EndArgument
        LabelSep              xx
        ParIndent             MMM
        ParSkip               0.4
@@ -39,7 +43,7 @@ Style Theorem
        ParSep                0.3
        Align                 Block
        AlignPossible         Left
-       LabelType             Counter
+       LabelType             Static
        LabelCounter          theorem
        LabelString           "Theorem \thetheorem."
        Font
@@ -280,39 +284,5 @@ Style Claim
        LabelCounter          claim
 End
 
-
-# Define Case as an enumeration environment
-Style Case
-       Category              Theorem
-       CopyStyle             Enumerate
-       LatexName             caseenv
-       LabelType             Static
-       LeftMargin            "Case ###."
-       LabelString           "Case #."
-       LabelFont
-         Series              Medium
-         Shape               Italic
-       EndFont
-       Preamble
-         \newcounter{casectr}
-         \newenvironment{caseenv}
-         {\begin{list}{{\itshape\ \protect\casename} \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
-       LangPreamble
-               \providecommand{\casename}{_(Case)}
-       EndLangPreamble
-       BabelPreamble
-               \addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
-       EndBabelPreamble
-       RefPrefix OFF
-End
-
+Input theorems-case.inc
 Input theorems-refprefix.inc