From 5fabde2f8ead84d8618b20985061e32c69a4ac96 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 17 Apr 2011 00:34:25 +0000 Subject: [PATCH] The copy and paste done here is out of date. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38421 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/enumitem.module | 38 +++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/lib/layouts/enumitem.module b/lib/layouts/enumitem.module index 67bf7f82a0..8816f81fd6 100644 --- a/lib/layouts/enumitem.module +++ b/lib/layouts/enumitem.module @@ -47,24 +47,26 @@ AddToPreamble \newlength{\lyxlabelwidth} % auxiliary length EndPreamble + # Customisable Basic Lists # ------------------------ # With enumitem, the three standard list environments take an optional # argument. See enumitem.pdf_ for possible values. -Style Itemize +IfStyle Itemize OptionalArgs 1 End -Style Enumerate +IfStyle Enumerate OptionalArgs 1 End -Style Description +IfStyle Description OptionalArgs 1 End + # Customisable LyX List # --------------------- @@ -75,10 +77,10 @@ End NoStyle Labeling Style Labeling - # verbatim insert definition of List environment, - # The KOMA script classes replace List with Labeling, - # this leads to an error with "CopyStyle List"! + # copied from stdlists.inc Category List + LatexName elabeling + OptionalArgs 1 Margin Manual LatexType List_Environment NextNoindent 1 @@ -91,10 +93,8 @@ Style Labeling AlignPossible Block, Left LabelType Manual LabelString "00.00.0000" - # en of verbatim copy - - LatexName elabeling - OptionalArgs 1 + + # FIXME This should probably be defined using \newlist instead Preamble % labeling-like list based on enumitem's description list with % mandatory second argument (label-pattern): @@ -104,6 +104,24 @@ 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 -- 2.39.2