From 9957563b495d284730271c668cd3d6201e3c1940 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 17 Apr 2011 00:28:15 +0000 Subject: [PATCH] Reformatting, etc, of enumitem. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38420 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/enumitem.module | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/layouts/enumitem.module b/lib/layouts/enumitem.module index bffacd2b53..67bf7f82a0 100644 --- a/lib/layouts/enumitem.module +++ b/lib/layouts/enumitem.module @@ -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 -- 2.39.2