Dear Lyxers,

When trying to write a paragraph layout for a indented/quoted list I
expected a problem.

What I want to achive is a lyx-list that is indented like one enclosed in a
quote environment but at the same time with "manual" margin settings (via
Layout|Paragraph). Up to now I inserted an empty quote paragraph (with {} in
ERT) and nested my list paragraphs. As I am a lazybone (and the red {}
doesnot look very nice) I tried to write my own quoted-list paragraph-style
in a file quoted-list.inc that I include from stdlists.inc. (See bottom)

The list pops up in the Style popup, can be chosen, looks as I want it on
paper but the indentation is not show in LyX (i.e. no difference to a
"normal" lyx-list) although I set   
   LeftMargin                MMM

The strange thing is, that Customization.lyx tells me

    LeftMargin [string=""] If you put layouts into environments, the
    leftmargins are not simply added, but added with a factor
    \frac{4}{depth+4}. Note that this parameter is also used when the border
    is defined as Manual or Dynamic.  Then it is added to the manual or
    dynamic border. This string has the same meaning as for ParIndent.

but apparently the value of LefMargin is not added, as changing this value
in my layout definition has no effect at all.

What am I doing wrong? (or did I uncover an unwanted feature?)


Guenter



#-------- file quoted-list.inc ---------------
# quoted-list style definition
Style quoted-list
  Margin                Manual
  LatexType                List_Environment
  LatexName                qlyxlist
  NextNoIndent                1
  LeftMargin                MMM
#  ParIndent                MM
  LabelSep                xxxx
  ParSkip                0.4
  ItemSep                0.2
  TopSep                0.7
  BottomSep                0.7
  ParSep                0.3
  Align                        Block
  AlignPossible                Block, Left
  LabelType                Manual
  LabelString                00.0000

  #define the environment qlyxlist (taken from lyxlist in stdlists.inc)
  Preamble
   \newenvironment{qlyxlist}[1]
    {\begin{quote}\begin{list}{}
      {\settowidth{\labelwidth}{#1}
       \setlength{\leftmargin}{\labelwidth}
       \addtolength{\leftmargin}{\labelsep}
       \renewcommand{\makelabel}[1]{##1\hfil}}}
    {\end{list}\end{quote}}      
  EndPreamble

End
#-----------end -------------------




-- [EMAIL PROTECTED] 

Reply via email to