]> git.lyx.org Git - features.git/commitdiff
Fix up the enumitem module by separating out the Labeling code, so that
authorRichard Heck <rgheck@comcast.net>
Sun, 17 Apr 2011 00:50:31 +0000 (00:50 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 17 Apr 2011 00:50:31 +0000 (00:50 +0000)
we do not have to copy and paste it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38423 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/enumitem.module
lib/layouts/stdlists.inc

index 8816f81fd61ec669aca4be6d0cae7866d44a2bcc..bcd6de120f4399d5b5ff6abee69a7d75530142c4 100644 (file)
@@ -70,30 +70,10 @@ 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
+Input stdlyxlist.inc
 
 Style Labeling
-       # copied from stdlists.inc
-       Category              List
        LatexName             elabeling
-       OptionalArgs          1
-       Margin                Manual
-       LatexType             List_Environment
-       NextNoindent          1
-       LabelSep              xxx
-       ParSkip               0.4
-       TopSep                0.7
-       BottomSep             0.7
-       ParSep                0.5
-       Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Manual
-       LabelString           "00.00.0000"
-
        # FIXME This should probably be defined using \newlist instead
        Preamble
        % labeling-like list based on enumitem's description list with
@@ -104,24 +84,6 @@ Style Labeling
                                leftmargin=\lyxlabelwidth,#1]}
                {\end{description}}
        EndPreamble
-
-       HTMLTag               ol
-       HTMLAttr              class='lyxlist'
-       HTMLItem              li
-       HTMLLabel             span
-       HTMLLabelAttr         class='lyxlist'
-       HTMLStyle
-               ol.lyxlist {
-                       list-style-type: none;
-               }
-               li.labeling_item {
-                       text-indent: -5em;
-                       margin-left: 5em;
-               }
-               span.lyxlist {
-                       margin-right: 1em;
-               }
-       EndHTMLStyle
 End
 
 
index f0e8def3ee01643cf473c09327f088261c7a6c6b..9ec0568877bca9e8806a252147778906b1cabb92 100644 (file)
@@ -8,6 +8,8 @@
 
 Format 35
 
+Input stdlyxlist.inc
+
 Style Itemize
        Category              List
        Margin                Static
@@ -84,53 +86,6 @@ Style Description
 End
 
 
-Style Labeling
-       Category              List
-       Margin                Manual
-       LatexType             List_Environment
-       LatexName             lyxlist
-       NextNoindent          1
-       LabelSep              xxx
-       ParSkip               0.4
-       TopSep                0.7
-       BottomSep             0.7
-       ParSep                0.5
-       Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Manual
-       LabelString           "00.00.0000"
-       HTMLTag               ol
-       HTMLAttr              class='lyxlist'
-       HTMLItem              li
-       HTMLLabel             span
-       HTMLLabelAttr         class='lyxlist'
-
-       #define the environment lyxlist
-       Preamble
-               \newenvironment{lyxlist}[1]
-                       {\begin{list}{}
-                               {\settowidth{\labelwidth}{#1}
-                                \setlength{\leftmargin}{\labelwidth}
-                                \addtolength{\leftmargin}{\labelsep}
-                                \renewcommand{\makelabel}[1]{##1\hfil}}}
-                       {\end{list}}
-       EndPreamble
-
-       HTMLStyle
-               ol.lyxlist {
-                       list-style-type: none;
-               }
-               li.labeling_item {
-                       text-indent: -5em;
-                       margin-left: 5em;
-               }
-               span.lyxlist {
-                       margin-right: 1em;
-               }
-       EndHTMLStyle
-End
-
-
 Style List
   Obsoletedby           Labeling
 End