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