]> git.lyx.org Git - lyx.git/blob - lib/examples/paralist.lyx
Whitespace cosmetics
[lyx.git] / lib / examples / paralist.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass article
8 \begin_preamble
9 \date{}
10 \end_preamble
11 \use_default_options true
12 \begin_modules
13 paralist
14 logicalmkup
15 \end_modules
16 \maintain_unincluded_children false
17 \language english
18 \language_package default
19 \inputencoding auto
20 \fontencoding global
21 \font_roman "default" "default"
22 \font_sans "default" "default"
23 \font_typewriter "default" "default"
24 \font_math "auto" "auto"
25 \font_default_family default
26 \use_non_tex_fonts false
27 \font_sc false
28 \font_osf false
29 \font_sf_scale 100 100
30 \font_tt_scale 100 100
31 \use_microtype false
32 \use_dash_ligatures false
33 \graphics default
34 \default_output_format default
35 \output_sync 0
36 \bibtex_command default
37 \index_command default
38 \paperfontsize default
39 \spacing single
40 \use_hyperref false
41 \papersize default
42 \use_geometry false
43 \use_package amsmath 1
44 \use_package amssymb 1
45 \use_package cancel 1
46 \use_package esint 1
47 \use_package mathdots 1
48 \use_package mathtools 1
49 \use_package mhchem 1
50 \use_package stackrel 1
51 \use_package stmaryrd 1
52 \use_package undertilde 1
53 \cite_engine basic
54 \cite_engine_type default
55 \biblio_style plain
56 \use_bibtopic false
57 \use_indices false
58 \paperorientation portrait
59 \suppress_date false
60 \justification true
61 \use_refstyle 1
62 \index Index
63 \shortcut idx
64 \color #008000
65 \end_index
66 \secnumdepth 3
67 \tocdepth 3
68 \paragraph_separation indent
69 \paragraph_indentation default
70 \is_math_indent 0
71 \math_numbering_side default
72 \quotes_style english
73 \papercolumns 1
74 \papersides 1
75 \paperpagestyle default
76 \tracking_changes false
77 \output_changes false
78 \html_math_output 0
79 \html_css_as_file 0
80 \html_be_strict false
81 \use_minted 0
82 \end_header
83
84 \begin_body
85
86 \begin_layout Title
87 The 
88 \begin_inset Flex Noun
89 status open
90
91 \begin_layout Plain Layout
92 paralist
93 \end_layout
94
95 \end_inset
96
97  Package
98 \end_layout
99
100 \begin_layout Author
101 The \SpecialChar LyX
102  Team
103 \end_layout
104
105 \begin_layout Standard
106 The 
107 \begin_inset Flex Noun
108 status open
109
110 \begin_layout Plain Layout
111 paralist
112 \end_layout
113
114 \end_inset
115
116  package introduces a number of new types of lists.
117  Perhaps the most widely used are 
118 \begin_inset Quotes eld
119 \end_inset
120
121 inline
122 \begin_inset Quotes erd
123 \end_inset
124
125  lists, which have several features: 
126 \end_layout
127
128 \begin_layout InParagraphEnum
129 They are set inline within a paragraph;
130 \end_layout
131
132 \begin_layout InParagraphEnum
133 \begin_inset CommandInset label
134 LatexCommand label
135 name "enu:Inline2"
136
137 \end_inset
138
139 But an inline enumeration is still numbered automatically, as a normal enumerati
140 on would be;
141 \end_layout
142
143 \begin_layout InParagraphEnum
144 And yet, the individual items can still be referenced.
145 \end_layout
146
147 \begin_layout Standard
148 For example, the second item in that list was numbered 
149 \begin_inset CommandInset ref
150 LatexCommand ref
151 reference "enu:Inline2"
152
153 \end_inset
154
155 .
156  You can also do inline itemize lists and inline descriptions.
157  These are created using the 
158 \begin_inset Flex Noun
159 status open
160
161 \begin_layout Plain Layout
162 InParagraphItem
163 \end_layout
164
165 \end_inset
166
167
168 \begin_inset Flex Noun
169 status open
170
171 \begin_layout Plain Layout
172 InParagraphEnum
173 \end_layout
174
175 \end_inset
176
177 , and 
178 \begin_inset Flex Noun
179 status open
180
181 \begin_layout Plain Layout
182 InParagraphDescr
183 \end_layout
184
185 \end_inset
186
187  styles.
188 \end_layout
189
190 \begin_layout Standard
191 Another new style of list is the paragraph list.
192  Items in these lists are set as ordinary paragraphs.
193 \end_layout
194
195 \begin_layout AsParagraphItem
196 This is the first item.
197  See how it is set as an ordinary paragraph, without any special indentation.
198 \end_layout
199
200 \begin_layout AsParagraphItem
201 This is the second item.
202  It is also set as an ordinary paragraph, and there is no special indentation
203  with it, either.
204  But you do still have a bullet.
205 \end_layout
206
207 \begin_layout AsParagraphItem
208 This is the third item.
209 \end_layout
210
211 \begin_layout Standard
212 Those items were set with the 
213 \begin_inset Flex Noun
214 status open
215
216 \begin_layout Plain Layout
217 AsParagraphItem
218 \end_layout
219
220 \end_inset
221
222  style.
223  Of course, it does not make sense to reference them.
224  But you can do the same thing with enumerations and descriptions.
225 \end_layout
226
227 \begin_layout Standard
228 There are also 
229 \begin_inset Quotes eld
230 \end_inset
231
232 compact
233 \begin_inset Quotes erd
234 \end_inset
235
236  versions of the three standard list styles.
237  
238 \end_layout
239
240 \begin_layout CompactDescr
241 One This is the first description item.
242 \end_layout
243
244 \begin_layout CompactDescr
245 Two This is the second description item.
246 \end_layout
247
248 \begin_layout Standard
249 This one was set with the CompactDescr style.
250  It is just an ordinary description list that has no extra spacing.
251  
252 \end_layout
253
254 \begin_layout Standard
255 The 
256 \begin_inset Flex Noun
257 status open
258
259 \begin_layout Plain Layout
260 paralist
261 \end_layout
262
263 \end_inset
264
265  package also provides an optional argument for list items that allows you
266  to control how the labels are formatted.
267  For information on this, and many other features of the package, please
268  see 
269 \begin_inset CommandInset href
270 LatexCommand href
271 name "its documentation on CTAN"
272 target "http://dante.ctan.org/CTAN/macros/latex/contrib/paralist/paralist.pdf"
273 literal "false"
274
275 \end_inset
276
277 .
278  You might also want to read the warnings about nesting the new list types.
279  It can be done, but it does not always work as you might expect.
280 \end_layout
281
282 \end_body
283 \end_document