]> git.lyx.org Git - lyx.git/blob - lib/examples/enumitem.lyx
Local Layout Docs Again
[lyx.git] / lib / examples / enumitem.lyx
1 #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
2 \lyxformat 345
3 \begin_document
4 \begin_header
5 \textclass article
6 \use_default_options false
7 \begin_modules
8 enumitem
9 \end_modules
10 \language british
11 \inputencoding auto
12 \font_roman lmodern
13 \font_sans lmss
14 \font_typewriter lmtt
15 \font_default_family default
16 \font_sc false
17 \font_osf false
18 \font_sf_scale 100
19 \font_tt_scale 100
20
21 \graphics default
22 \paperfontsize default
23 \spacing single
24 \use_hyperref false
25 \pdf_bookmarks true
26 \pdf_bookmarksnumbered false
27 \pdf_bookmarksopen false
28 \pdf_bookmarksopenlevel 1
29 \pdf_breaklinks false
30 \pdf_pdfborder true
31 \pdf_colorlinks true
32 \pdf_backref section
33 \pdf_pdfusetitle true
34 \papersize a4paper
35 \use_geometry false
36 \use_amsmath 1
37 \use_esint 1
38 \cite_engine basic
39 \use_bibtopic false
40 \paperorientation portrait
41 \secnumdepth 3
42 \tocdepth 3
43 \paragraph_separation indent
44 \defskip medskip
45 \quotes_language english
46 \papercolumns 1
47 \papersides 1
48 \paperpagestyle default
49 \tracking_changes false
50 \output_changes false
51 \author "" 
52 \author "" 
53 \end_header
54
55 \begin_body
56
57 \begin_layout Section*
58 The enumitem Module
59 \end_layout
60
61 \begin_layout Standard
62 The enumitem Module provides customisable list Styles using the 
63 \begin_inset CommandInset href
64 LatexCommand href
65 name "enumitem LaTeX package"
66 target "http://dante.ctan.org/CTAN/help/Catalogue/entries/enumitem.html"
67
68 \end_inset
69
70 .
71 \end_layout
72
73 \begin_layout Subsection*
74 Lists with optional arguments
75 \end_layout
76
77 \begin_layout Standard
78 Itemize, Enumeration, and Description lists may have an optional arguments.
79  If the optional argument contains special characters (e.g.
80  the backslash), put it in an 
81 \begin_inset ERT
82 status open
83
84 \begin_layout Plain Layout
85
86 ERT box
87 \end_layout
88
89 \end_inset
90
91 .
92 \end_layout
93
94 \begin_layout Enumerate
95 \begin_inset OptArg
96 status open
97
98 \begin_layout Plain Layout
99 \begin_inset ERT
100 status open
101
102 \begin_layout Plain Layout
103
104 labelindent=
105 \backslash
106 parindent,leftmargin=*,label=
107 \backslash
108 Roman*.,widest=IV,align=left 
109 \end_layout
110
111 \end_inset
112
113
114 \end_layout
115
116 \end_inset
117
118  An enumeration
119 \end_layout
120
121 \begin_layout Enumerate
122 with left-aligned roman
123 \end_layout
124
125 \begin_layout Enumerate
126 numbering
127 \end_layout
128
129 \begin_layout Enumerate
130 1of items.
131 \end_layout
132
133 \begin_layout Standard
134 Enumerating with 
135 \begin_inset Quotes eld
136 \end_inset
137
138 Spanish layout
139 \begin_inset Quotes erd
140 \end_inset
141
142 : italic letters followed by )
143 \end_layout
144
145 \begin_layout Enumerate
146 \begin_inset OptArg
147 status open
148
149 \begin_layout Plain Layout
150 \begin_inset ERT
151 status open
152
153 \begin_layout Plain Layout
154
155 label=
156 \backslash
157 emph{
158 \backslash
159 alph*})
160 \end_layout
161
162 \end_inset
163
164
165 \end_layout
166
167 \end_inset
168
169  first item
170 \end_layout
171
172 \begin_layout Enumerate
173 second item
174 \end_layout
175
176 \begin_layout Standard
177 Enumeration starting at a given value:
178 \end_layout
179
180 \begin_layout Enumerate
181 \begin_inset OptArg
182 status open
183
184 \begin_layout Plain Layout
185 start=4
186 \end_layout
187
188 \end_inset
189
190  This enumeration
191 \end_layout
192
193 \begin_layout Enumerate
194 starts at 4.
195 \end_layout
196
197 \begin_layout Standard
198 Description with emphasized (instead of bold) label and  left margin 1.5
199  em:
200 \end_layout
201
202 \begin_layout Description
203 Strahlungsmodulation:
204 \begin_inset OptArg
205 status open
206
207 \begin_layout Plain Layout
208 leftmargin=1.5em,
209 \begin_inset ERT
210 status open
211
212 \begin_layout Plain Layout
213
214 font=
215 \backslash
216 itshape
217 \backslash
218 mdseries
219 \end_layout
220
221 \end_inset
222
223
224 \end_layout
225
226 \end_inset
227
228  Durch die zeitliche Modulation der auf den Detektor treffenden Strahlung
229  wird trotz fehlender Gleichlichtempfindlichkeit der pyroelektrischen Detektoren
230  die reproduzierbare Betrachtung statischer Wärmeszenen ermöglicht.
231 \end_layout
232
233 \begin_layout Description
234 Referenzstrahlung: Die Wärmestrahlung des Choppers geht direkt in das Messsignal
235  ein.
236 \end_layout
237
238 \begin_layout Standard
239 More details and examples in 
240 \begin_inset CommandInset href
241 LatexCommand href
242 name "enumitem.pdf"
243 target "http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf"
244
245 \end_inset
246
247 .
248 \end_layout
249
250 \begin_layout Subsection*
251 Resume enumeration
252 \end_layout
253
254 \begin_layout Standard
255 \begin_inset Note Note
256 status open
257
258 \begin_layout Enumerate-Resume
259 Attention, if there is no previous enumeration to resume, a latex error
260  is thrown!
261 \end_layout
262
263 \end_inset
264
265
266 \end_layout
267
268 \begin_layout Standard
269 Enumerations can be resumed after intermediate paragraphs:
270 \end_layout
271
272 \begin_layout Enumerate
273 first
274 \end_layout
275
276 \begin_layout Enumerate
277 second
278 \end_layout
279
280 \begin_layout Standard
281 regular text
282 \end_layout
283
284 \begin_layout Enumerate-Resume
285 resumed (the numbering is not continued in the LyX GUI but correct in the
286  LaTeX output).
287 \end_layout
288
289 \begin_layout Standard
290 Nesting enumerations:
291 \end_layout
292
293 \begin_layout Enumerate
294 depth 1
295 \end_layout
296
297 \begin_deeper
298 \begin_layout Enumerate
299 first
300 \end_layout
301
302 \begin_deeper
303 \begin_layout Enumerate-Resume
304 resume without something to resume! (Works here.)
305 \end_layout
306
307 \end_deeper
308 \begin_layout Enumerate
309 second
310 \end_layout
311
312 \begin_deeper
313 \begin_layout Enumerate
314 with something nested inside
315 \end_layout
316
317 \end_deeper
318 \begin_layout Standard
319 regular text 
320 \end_layout
321
322 \begin_layout Enumerate-Resume
323 resumed at depth 2
324 \end_layout
325
326 \end_deeper
327 \begin_layout Standard
328 regular text outside the list
329 \end_layout
330
331 \begin_layout Subsection*
332 Compact Lists
333 \end_layout
334
335 \begin_layout Standard
336 There are keywords for more compact variants of the standard lists:
337 \end_layout
338
339 \begin_layout Itemize
340 A bullet list
341 \end_layout
342
343 \begin_layout Itemize
344 with standard spacing 
345 \end_layout
346
347 \begin_layout Standard
348 lorem ipsum
349 \end_layout
350
351 \begin_layout Itemize
352 A bullet list 
353 \begin_inset OptArg
354 status open
355
356 \begin_layout Plain Layout
357 nolistsep
358 \end_layout
359
360 \end_inset
361
362
363 \end_layout
364
365 \begin_layout Itemize
366 with less 
367 \end_layout
368
369 \begin_layout Itemize
370 vertical space.
371  (nolistsep)
372 \end_layout
373
374 \begin_layout Standard
375 lorem ipsum
376 \end_layout
377
378 \begin_layout Itemize
379 A bullet list 
380 \begin_inset OptArg
381 status open
382
383 \begin_layout Plain Layout
384 noitemsep
385 \end_layout
386
387 \end_inset
388
389
390 \end_layout
391
392 \begin_layout Itemize
393 with less 
394 \end_layout
395
396 \begin_layout Itemize
397 vertical space.
398  (noitemsep)
399 \end_layout
400
401 \begin_layout Standard
402 You can customize the itemset and listsep for all base lists in the LaTeX
403  preamble.
404  (Also per list type.) See 
405 \begin_inset CommandInset href
406 LatexCommand href
407 name "enumitem.pdf"
408 target "http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf"
409
410 \end_inset
411
412 .
413 \end_layout
414
415 \begin_layout Subsection*
416 Customisable LyX-List/Labeling
417 \end_layout
418
419 \begin_layout Standard
420 The LyX 
421 \begin_inset Quotes eld
422 \end_inset
423
424 List
425 \begin_inset Quotes erd
426 \end_inset
427
428  style (or KOMA script 
429 \begin_inset Quotes eld
430 \end_inset
431
432 labeling
433 \begin_inset Quotes erd
434 \end_inset
435
436 ) is re-defined on the base of enumitems 
437 \begin_inset Quotes eld
438 \end_inset
439
440 description
441 \begin_inset Quotes erd
442 \end_inset
443
444  to allow customisation like the base lists.
445 \end_layout
446
447 \begin_layout Labeling
448 \labelwidthstring 00.00.0000
449 nice description 
450 \end_layout
451
452 \begin_layout Labeling
453 \labelwidthstring 00.00.0000
454 with several items and
455 \end_layout
456
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 including
460 \begin_inset space ~
461 \end_inset
462
463 one
464 \begin_inset space ~
465 \end_inset
466
467 very
468 \begin_inset space ~
469 \end_inset
470
471 long
472 \begin_inset space ~
473 \end_inset
474
475 label at last.
476  
477 \end_layout
478
479 \begin_layout Standard
480 It also takes an optional argument:
481 \end_layout
482
483 \begin_layout Labeling
484 \labelwidthstring withNN
485 nice description 
486 \begin_inset OptArg
487 status open
488
489 \begin_layout Plain Layout
490 style=nextline
491 \end_layout
492
493 \end_inset
494
495
496 \end_layout
497
498 \begin_layout Labeling
499 \labelwidthstring withNN
500 with several items and
501 \end_layout
502
503 \begin_layout Labeling
504 \labelwidthstring withNN
505 including
506 \begin_inset space ~
507 \end_inset
508
509 one
510 \begin_inset space ~
511 \end_inset
512
513 very
514 \begin_inset space ~
515 \end_inset
516
517 long
518 \begin_inset space ~
519 \end_inset
520
521 label and the item content starting at the next line.
522 \end_layout
523
524 \end_body
525 \end_document