]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdlists.inc
whitespace
[lyx.git] / lib / layouts / stdlists.inc
1 # Standard textclass definition file. Taken from initial LyX source code
2 # Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
3 # Transposed by Pascal AndrĂ© <andre@via.ecp.fr>
4 # Heavily modifed and enhanced by several developers.
5
6 # This include files contains various standard environments for lists.
7
8
9 Format 35
10
11 Style Itemize
12         Category              List
13         Margin                Static
14         LatexType             Item_Environment
15         LatexName             itemize
16         NextNoIndent          1
17         LeftMargin            MMN
18         LabelSep              xx
19         ItemSep               0.2
20         TopSep                0.7
21         BottomSep             0.7
22         ParSep                0.3
23         Align                 Block
24         AlignPossible         Block, Left
25         LabelType             Itemize
26         LabelString           "*"
27         HTMLTag               ul
28         HTMLItem              li
29         HTMLLabel             NONE
30 End
31
32
33 Style Enumerate
34         Category              List
35         Margin                Static
36         LatexType             Item_Environment
37         LatexName             enumerate
38         NextNoIndent          1
39         LeftMargin            MMN
40         LabelSep              xx
41         ParSkip               0.0
42         ItemSep               0.2
43         TopSep                0.7
44         BottomSep             0.7
45         ParSep                0.3
46         Align                 Block
47         AlignPossible         Block, Left
48         LabelType             Enumerate
49         LabelCounter          "enum"
50         HTMLTag               ol
51         HTMLItem              li
52         HTMLLabel             NONE
53         RefPrefix             enu
54 End
55
56 Style Description
57         Category              List
58         Margin                First_Dynamic
59         LatexType             Item_environment
60         LatexName             description
61         NextNoIndent          1
62         LeftMargin            MM
63         LabelSep              xxx
64         ParSkip               0.4
65         ItemSep               0.2
66         TopSep                0.7
67         BottomSep             0.7
68         ParSep                0.3
69         Align                 Block
70         AlignPossible         Block, Left
71         LabelType             Manual
72         LabelString           "MM"
73         LabelFont
74           Series              Bold
75         EndFont
76         HTMLTag               dl
77         HTMLAttr              class='description'
78         HTMLItem              dd
79         HTMLLabel             dt
80         HTMLLabelFirst        1
81         HTMLStyle
82                 dl.description dt { font-weight: bold; }
83         EndHTMLStyle
84 End
85
86
87 Style Labeling
88         Category              List
89         Margin                Manual
90         LatexType             List_Environment
91         LatexName             lyxlist
92         NextNoindent          1
93         LabelSep              xxx
94         ParSkip               0.4
95         TopSep                0.7
96         BottomSep             0.7
97         ParSep                0.5
98         Align                 Block
99         AlignPossible         Block, Left
100         LabelType             Manual
101         LabelString           "00.00.0000"
102         HTMLTag               ol
103         HTMLAttr              class='lyxlist'
104         HTMLItem              li
105         HTMLLabel             span
106         HTMLLabelAttr         class='lyxlist'
107
108         #define the environment lyxlist
109         Preamble
110                 \newenvironment{lyxlist}[1]
111                         {\begin{list}{}
112                                 {\settowidth{\labelwidth}{#1}
113                                  \setlength{\leftmargin}{\labelwidth}
114                                  \addtolength{\leftmargin}{\labelsep}
115                                  \renewcommand{\makelabel}[1]{##1\hfil}}}
116                         {\end{list}}
117         EndPreamble
118
119         HTMLStyle
120                 ol.lyxlist {
121                         list-style-type: none;
122                 }
123                 li.labeling_item {
124                         text-indent: -5em;
125                         margin-left: 5em;
126                 }
127                 span.lyxlist {
128                         margin-right: 1em;
129                 }
130         EndHTMLStyle
131 End
132
133
134 Style List
135   Obsoletedby           Labeling
136 End