]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/enumitem.module
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / lib / layouts / enumitem.module
index 966847a6cabf568a3ec877e2d8bb47c94019a64a..c7b8041b3472e97b49b210c92b2822be82526d5f 100644 (file)
@@ -11,7 +11,7 @@
 #           both KOMA and non-KOMA document classes.
 # 2011-01-12 bugfix: set elabeling label font to \normalfont.
 
-Format 54
+Format 58
 
 # The package enumitem provides user control over the layout of the three
 # basic list environments: enumerate, itemize and description. It supersedes
@@ -41,7 +41,6 @@ Format 54
 #       Preamble-Styling specific to this list type.
 
 AddToPreamble
-       \usepackage{enumitem}           % customizable list environments
        \newlength{\lyxlabelwidth}      % auxiliary length 
 EndPreamble
 
@@ -52,25 +51,28 @@ EndPreamble
 # With enumitem, the three standard list environments take an optional
 # argument. See enumitem.pdf for possible values.
 
-IfStyle Itemize
+ModifyStyle Itemize
        Argument 1
                LabelString   "Itemize Options"
                Tooltip       "Optional arguments for this list (see enumitem manual)"
        EndArgument
+       Requires enumitem
 End
 
-IfStyle Enumerate
+ModifyStyle Enumerate
        Argument 1
                LabelString   "Enumerate Options"
                Tooltip       "Optional arguments for this list (see enumitem manual)"
        EndArgument
+       Requires enumitem
 End
 
-IfStyle Description
+ModifyStyle Description
        Argument 1
                LabelString   "Description Options"
                Tooltip       "Optional arguments for this list (see enumitem manual)"
        EndArgument
+       Requires enumitem
 End
 
 
@@ -92,6 +94,7 @@ Style Labeling
                                leftmargin=\lyxlabelwidth,#1]}
                {\end{description}}
        EndPreamble
+       Requires enumitem
 End
 
 
@@ -112,6 +115,7 @@ Style Enumerate-Resume
        LabelFont
          Color blue
        EndFont
+       Requires enumitem
 End
 
 # References