X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fstdlists.inc;h=a772acf3f1bb2bea4dc80f31991da94e7f97509c;hb=f9377c8bcc63c4bbf2fb598a7de287b7c4259585;hp=2525fda38c94284a7a8242bbdf8f0421d34a0e69;hpb=ba5e47f1a92c3688d16f76f654fd3768672ebb50;p=lyx.git diff --git a/lib/layouts/stdlists.inc b/lib/layouts/stdlists.inc index 2525fda38c..a772acf3f1 100644 --- a/lib/layouts/stdlists.inc +++ b/lib/layouts/stdlists.inc @@ -1,95 +1,127 @@ + # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich -# Transposed by Pascal André +# Transposed by Pascal André # Heavily modifed and enhanced by several developers. # This include files contains various standard environments for lists. -# Itemize style definition + +Format 27 + Style Itemize - Margin Static - LatexType Item_Environment - LatexName itemize - NextNoIndent 1 - LeftMargin MMN - LabelSep xx - ItemSep 0.2 - TopSep 0.7 - BottomSep 0.7 - ParSep 0.3 - Align Block - AlignPossible Block, Left - LabelType Static - LabelString * + Category List + Margin Static + LatexType Item_Environment + LatexName itemize + NextNoIndent 1 + LeftMargin MMN + LabelSep xx + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block, Left + LabelType Itemize + LabelString "*" + HTMLTag ul + HTMLItem li + HTMLLabel NONE End -# Enumerate style definition + Style Enumerate - Margin Static - LatexType Item_Environment - LatexName enumerate - NextNoIndent 1 - LeftMargin MMN - LabelSep xx - ParSkip 0.0 - ItemSep 0.2 - TopSep 0.7 - BottomSep 0.7 - ParSep 0.3 - Align Block - AlignPossible Block, Left - LabelType Counter_EnumI + Category List + Margin Static + LatexType Item_Environment + LatexName enumerate + NextNoIndent 1 + LeftMargin MMN + LabelSep xx + ParSkip 0.0 + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block, Left + LabelType Enumerate + LabelCounter "enum" + HTMLTag ol + HTMLItem li + HTMLLabel NONE End -# Description style definition Style Description - Margin First_Dynamic - LatexType Item_environment - LatexName description - NextNoIndent 1 - LeftMargin MM - LabelSep xxx - ParSkip 0.4 - ItemSep 0.2 - TopSep 0.7 - BottomSep 0.7 - ParSep 0.3 - Align Block - AlignPossible Block, Left - LabelType Manual - LabelString MM - - # label font definition - LabelFont - Series Bold - EndFont + Category List + Margin First_Dynamic + LatexType Item_environment + LatexName description + NextNoIndent 1 + LeftMargin MM + LabelSep xxx + ParSkip 0.4 + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block, Left + LabelType Manual + LabelString "MM" + LabelFont + Series Bold + EndFont + HTMLTag dl + HTMLAttr class='description' + HTMLItem dd + HTMLLabel dt + HTMLLabelFirst 1 + HTMLStyle + dl.description dt { font-weight: bold; } + EndHTMLStyle End -# List style definition + Style 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 + 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]{\makebox[\labelwidth][l]{##1}}}} - {\end{list}} - EndPreamble + #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; + } + span.lyxlist { + margin-right: 3em; + } + EndHTMLStyle End