]> git.lyx.org Git - features.git/commitdiff
Reformatting, etc, of enumitem.
authorRichard Heck <rgheck@comcast.net>
Sun, 17 Apr 2011 00:28:15 +0000 (00:28 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 17 Apr 2011 00:28:15 +0000 (00:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38420 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/enumitem.module

index bffacd2b5301529e356d1c8025e0abb0aab8bd39..67bf7f82a0ed874faed20d21b3082e6b20f68637 100644 (file)
@@ -68,8 +68,14 @@ End
 # Customisable LyX List
 # ---------------------
 
+# We expect this already to be defined, but there may be some classes
+# that do not include stdlists.inc or do not declare Labeling. So we
+# have copied the info from stdlists.inc.
+# To make sure that we are starting fresh, we first clear everything.
+NoStyle Labeling
+
 Style Labeling
-        # verbatim insert definition of List environment, 
+       # verbatim insert definition of List environment, 
        # The KOMA script classes replace List with Labeling, 
        # this leads to an error with "CopyStyle List"!
        Category              List
@@ -87,17 +93,17 @@ Style Labeling
        LabelString           "00.00.0000"
        # en of verbatim copy
        
-        LatexName             elabeling
-        OptionalArgs          1
-        Preamble
+       LatexName             elabeling
+       OptionalArgs          1
+       Preamble
        % labeling-like list based on enumitem's description list with
        % mandatory second argument (label-pattern):
-       \newenvironment{elabeling}[2][]%
-          {\settowidth{\lyxlabelwidth}{#2}
-           \begin{description}[font=\normalfont,style=sameline,
-                              leftmargin=\lyxlabelwidth,#1]}
-          {\end{description}}
-        EndPreamble
+               \newenvironment{elabeling}[2][]%
+               {\settowidth{\lyxlabelwidth}{#2}
+                       \begin{description}[font=\normalfont,style=sameline,
+                               leftmargin=\lyxlabelwidth,#1]}
+               {\end{description}}
+       EndPreamble
 End