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