Use Require instead of AddToPreamble

This plays more nicely with other modules requiring enumitem as well.
This commit is contained in:
Georg Baum 2015-09-20 19:33:43 +02:00
parent ec086243df
commit 141026b6b1

View File

@ -41,7 +41,6 @@ Format 54
# Preamble-Styling specific to this list type. # Preamble-Styling specific to this list type.
AddToPreamble AddToPreamble
\usepackage{enumitem} % customizable list environments
\newlength{\lyxlabelwidth} % auxiliary length \newlength{\lyxlabelwidth} % auxiliary length
EndPreamble EndPreamble
@ -57,6 +56,7 @@ IfStyle Itemize
LabelString "Itemize Options" LabelString "Itemize Options"
Tooltip "Optional arguments for this list (see enumitem manual)" Tooltip "Optional arguments for this list (see enumitem manual)"
EndArgument EndArgument
Requires enumitem
End End
IfStyle Enumerate IfStyle Enumerate
@ -64,6 +64,7 @@ IfStyle Enumerate
LabelString "Enumerate Options" LabelString "Enumerate Options"
Tooltip "Optional arguments for this list (see enumitem manual)" Tooltip "Optional arguments for this list (see enumitem manual)"
EndArgument EndArgument
Requires enumitem
End End
IfStyle Description IfStyle Description
@ -71,6 +72,7 @@ IfStyle Description
LabelString "Description Options" LabelString "Description Options"
Tooltip "Optional arguments for this list (see enumitem manual)" Tooltip "Optional arguments for this list (see enumitem manual)"
EndArgument EndArgument
Requires enumitem
End End
@ -92,6 +94,7 @@ Style Labeling
leftmargin=\lyxlabelwidth,#1]} leftmargin=\lyxlabelwidth,#1]}
{\end{description}} {\end{description}}
EndPreamble EndPreamble
Requires enumitem
End End
@ -112,6 +115,7 @@ Style Enumerate-Resume
LabelFont LabelFont
Color blue Color blue
EndFont EndFont
Requires enumitem
End End
# References # References