]> git.lyx.org Git - features.git/commitdiff
Use Require instead of AddToPreamble
authorGeorg Baum <baum@lyx.org>
Sun, 20 Sep 2015 17:33:43 +0000 (19:33 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 20 Sep 2015 17:33:43 +0000 (19:33 +0200)
This plays more nicely with other modules requiring enumitem as well.

lib/layouts/enumitem.module

index 966847a6cabf568a3ec877e2d8bb47c94019a64a..6d3d7c4692bea6236764fba3444ff21bef4dc293 100644 (file)
@@ -41,7 +41,6 @@ Format 54
 #       Preamble-Styling specific to this list type.
 
 AddToPreamble
-       \usepackage{enumitem}           % customizable list environments
        \newlength{\lyxlabelwidth}      % auxiliary length 
 EndPreamble
 
@@ -57,6 +56,7 @@ IfStyle Itemize
                LabelString   "Itemize Options"
                Tooltip       "Optional arguments for this list (see enumitem manual)"
        EndArgument
+       Requires enumitem
 End
 
 IfStyle Enumerate
@@ -64,6 +64,7 @@ IfStyle Enumerate
                LabelString   "Enumerate Options"
                Tooltip       "Optional arguments for this list (see enumitem manual)"
        EndArgument
+       Requires enumitem
 End
 
 IfStyle Description
@@ -71,6 +72,7 @@ IfStyle Description
                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