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