]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-case.inc
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / theorems-case.inc
index cb54e0277e17db062682ab8a0902537486102c64..223af7cf5dbb32a54a9cb090a7d70a0182f6aef3 100644 (file)
@@ -1,76 +1,94 @@
 # Original Author : Paul Rubin <rubin@msu.edu>
-# Modified by Richard Heck to use enumitem
+# Modified by Richard Kimberly Heck to use enumitem
 
 # Definition of case environment as an enumeration
 
 # Define Case as an enumeration environment
 # with its own counters
 
-Format 68
+Format 99
 
 Counter casei
-        LabelString "Case \arabic{casei}."
+       GuiName "Case (Level 1)"
+    LabelString "Case \arabic{casei}."
 End
 Counter caseii
-        Within casei
-        LabelString "Case \roman{caseii}."
+       GuiName "Case (Level 2)"
+    Within casei
+    LabelString "Case \roman{caseii}."
 End
 Counter caseiii
-        Within caseii
-        LabelString "Case \alph{caseiii}."
+       GuiName "Case (Level 3)"
+    Within caseii
+    LabelString "Case \alph{caseiii}."
 End
 Counter caseiv
-        Within caseiii
-        LabelString "Case \arabic{caseiv}."
+       GuiName "Case (Level 4)"
+    Within caseiii
+    LabelString "Case \arabic{caseiv}."
 End
 
 Style Case
-  Category              Reasoning
-
-  Margin                Static
-  LatexType             Item_Environment
-  LatexName             casenv
-  LabelType             Enumerate
-  LeftMargin            "Case ###."
-  LabelSep              xx
-  ParSkip               0.0
-  ItemSep               0.2
-  TopSep                0.7
-  BottomSep             0.7
-  ParSep                0.3
-  Align                 Block
-  AlignPossible         Block, Left
-  LabelCounter          case
-  LabelFont
-    Series              Medium
-    Shape               Italic
-  EndFont
-  HTMLTag               ol
-  HTMLItem              li
-  HTMLLabel             NONE
-  RefPrefix             enu
-  Argument item:1
-    LabelString   "Custom Item|s"
-    Tooltip       "A customized item string"
-  EndArgument
-  NextNoIndent          1
-       Requires enumitem
-       # It'd be easier to use \setlist[caseenv] here, but that causes problems
-       # if you nest an ordinary list inside a case environment. See discussion
-       # at bug #7611.
-  Preamble
-    \newlist{casenv}{enumerate}{4}
-    \setlist[casenv]{leftmargin=*,align=left,widest={iiii}}
-    \setlist[casenv,1]{label={{\itshape\ \casename} \arabic*.},ref=\arabic*}
-    \setlist[casenv,2]{label={{\itshape\ \casename} \roman*.},ref=\roman*}
-    \setlist[casenv,3]{label={{\itshape\ \casename\ \alph*.}},ref=\alph*}
-    \setlist[casenv,4]{label={{\itshape\ \casename} \arabic*.},ref=\arabic*}
-  EndPreamble
-  LangPreamble
-    \providecommand{\casename}{_(Case)}
-  EndLangPreamble
-  BabelPreamble
-    \addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
-  EndBabelPreamble
-  RefPrefix OFF
+    Category              Reasoning
+    Margin                Static
+    LatexType             Item_Environment
+    LatexName             casenv
+    LabelType             Enumerate
+    LeftMargin            "Case ###."
+    LabelSep              xx
+    ParSkip               0.0
+    ItemSep               0.2
+    TopSep                0.7
+    BottomSep             0.7
+    ParSep                0.3
+    Align                 Block
+    AlignPossible         Block, Left
+    LabelCounter          case
+    LabelFont
+        Series            Medium
+        Shape             Italic
+    EndFont
+    HTMLTag               ol
+    HTMLItem              li
+    HTMLLabel             NONE
+    HTMLClass             lyxcase
+    RefPrefix             enu
+    Argument listpreamble:1
+        LabelString       "List preamble"
+        MenuString        "List Preamble"
+        Tooltip           "LaTeX code to be inserted before the first item"
+        PassThru          1
+        Font
+            Family        typewriter
+            Color         latex
+        EndFont
+    EndArgument
+    Argument item:1
+        LabelString       "Custom Item|s"
+        Tooltip           "A customized item string"
+    EndArgument
+    NextNoIndent          1
+    Requires enumitem
+    # It'd be easier to use \setlist[caseenv] here, but that causes problems
+    # if you nest an ordinary list inside a case environment. See discussion
+    # at bug #7611.
+    Preamble
+        \newlist{casenv}{enumerate}{4}
+        \setlist[casenv]{leftmargin=*,align=left,widest={iiii}}
+        \setlist[casenv,1]{label={{\itshape\ \casename} \arabic*.},ref=\arabic*}
+        \setlist[casenv,2]{label={{\itshape\ \casename} \roman*.},ref=\roman*}
+        \setlist[casenv,3]{label={{\itshape\ \casename\ \alph*.}},ref=\alph*}
+        \setlist[casenv,4]{label={{\itshape\ \casename} \arabic*.},ref=\arabic*}
+    EndPreamble
+    LangPreamble
+        \providecommand{\casename}{_(Case)}
+    EndLangPreamble
+    BabelPreamble
+        \addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
+    EndBabelPreamble
+    RefPrefix OFF
+       DocBookWrapperTag     figure
+       DocBookWrapperAttr    role='cases'
+       DocBookTag            para
+       DocBookGenerateTitle  true
 End