On 2011-01-09, Wolfgang Keller wrote:
>> How can I change the vertical space between list items and also the
>> row height in tables?


> The more "structured" approach to "custom" list formatting is probably
> by \usepackage{enumitem}.

There is the "enumitem" module for this in LyX 2.0. You can use it
with 1.6.x too (search for "enumitem" on http://wiki.lyx.org/).

I have defined ready to use "compact" lists in a local module (see
below) which depends on the enumitem module.

Günter

#\DeclareLyXModule{gmlists}
#DescriptionBegin
#Adds quoted-list and condensed list environments.
#DescriptionEnd
#Requires: enumitem

#Author: Günter Milde <[email protected]>

Format 11

# Input enumitem.module

# Style Variants
# ==============

Style Enumerate-Alpha
  CopyStyle    Enumerate
  LatexParam   "[label=\emph{\alph*}),ref=\emph{\alph*},fullwidth,itemsep=1ex]"
  Margin       First_Dynamic
  LeftMargin   x
  LabelType    Counter
  LabelCounter enumi
  LabelString  "\alph{enumi})"
  LabelFont
    Series              Medium
    Shape               Italic
  EndFont
End

# Description with italic label was a failed experiment:
Style Description-Italic
  ObsoletedBy    Description
End

# Indented compact LyX-List environment
Style Quoted-Labeling
        CopyStyle       Labeling
        LatexName       qlyxlist
        ItemSep         0
        ParSep          0
        LabelIndent     MMM
        Preamble
        % labeling-like list based on enumitem's description list with
        % mandatory second argument (label-pattern) and indent of 2em:
        \newenvironment{qlyxlist}[2][]%
          {\settowidth{\lyxlabelwidth}{#2}
           \addtolength{\lyxlabelwidth}{1.5em}
           \description[font=,style=sameline,
                             leftmargin=\lyxlabelwidth,
                             noitemsep, labelindent=1.5em,
                             #1]}
          {\enddescription}
        EndPreamble
        
End

Style Quoted-List
  ObsoletedBy    Quoted-Labeling
End  


# Dense (condensed) list environments
# ===================================

Style Itemize-Compact
        CopyStyle             Itemize
        LatexParam            [noitemsep]
        ParSep                0
        TopSep                0.4
        BottomSep             0.4
End     

Style Enumerate-Compact
        CopyStyle             Enumerate
        LatexParam            [noitemsep]
        ParSep                0
        TopSep                0.4
        BottomSep             0.4
End     

Style Description-Compact
        CopyStyle             Description
        LatexParam            [noitemsep]
        ParSep                0
        TopSep                0.4
        BottomSep             0.4
End     

Style Compact-Itemize
  ObsoletedBy    Itemize-Compact
End  

Style Itemize-Dense
  ObsoletedBy    Itemize-Compact
End

Style Compact-Enumerate
  ObsoletedBy   Enumerate-Compact
End

Style Enumerate-Dense
  ObsoletedBy   Enumerate-Compact
End

Style Compact-Description
  ObsoletedBy   Description-Compact
End

Style Description-Dense
  ObsoletedBy   Description-Compact
End



Reply via email to