]> git.lyx.org Git - lyx.git/blob - lib/examples/powerdot-example.lyx
01fd6609ba2ec376c0cfd7d3184e331cddf4d914
[lyx.git] / lib / examples / powerdot-example.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 465
3 \begin_document
4 \begin_header
5 \textclass powerdot
6 \begin_preamble
7 \pdsetup{%
8   lf=left footer,
9   rf=right footer
10 }
11 \end_preamble
12 \options style=fyma,display=slidesnotes
13 \use_default_options false
14 \maintain_unincluded_children false
15 \language english
16 \language_package default
17 \inputencoding auto
18 \fontencoding global
19 \font_roman default
20 \font_sans default
21 \font_typewriter default
22 \font_math auto
23 \font_default_family default
24 \use_non_tex_fonts false
25 \font_sc false
26 \font_osf false
27 \font_sf_scale 100
28 \font_tt_scale 100
29 \graphics default
30 \default_output_format pdf
31 \output_sync 0
32 \bibtex_command default
33 \index_command default
34 \paperfontsize size=10
35 \spacing single
36 \use_hyperref false
37 \papersize letterpaper
38 \use_geometry true
39 \use_package amsmath 1
40 \use_package amssymb 1
41 \use_package cancel 0
42 \use_package esint 0
43 \use_package mathdots 1
44 \use_package mathtools 0
45 \use_package mhchem 1
46 \use_package stackrel 0
47 \use_package stmaryrd 0
48 \use_package undertilde 0
49 \cite_engine basic
50 \cite_engine_type numerical
51 \biblio_style plain
52 \use_bibtopic false
53 \use_indices false
54 \paperorientation landscape
55 \suppress_date false
56 \justification true
57 \use_refstyle 0
58 \index Index
59 \shortcut idx
60 \color #008000
61 \end_index
62 \secnumdepth 3
63 \tocdepth 3
64 \paragraph_separation indent
65 \paragraph_indentation default
66 \quotes_language english
67 \papercolumns 1
68 \papersides 1
69 \paperpagestyle default
70 \tracking_changes false
71 \output_changes false
72 \html_math_output 0
73 \html_css_as_file 0
74 \html_be_strict false
75 \end_header
76
77 \begin_body
78
79 \begin_layout Title
80 A LyX sample
81 \begin_inset Note Note
82 status open
83
84 \begin_layout Plain Layout
85
86 \series bold
87 Note:
88 \series default
89  Powerdot does not work with PDF
90 \begin_inset space ~
91 \end_inset
92
93 (pdflatex).
94  The view PDF button uses PDF
95 \begin_inset space ~
96 \end_inset
97
98 (ps2pdf), but you can also use the method or PDF
99 \begin_inset space ~
100 \end_inset
101
102 (dvipdfm) via the menus or the 
103 \begin_inset Quotes eld
104 \end_inset
105
106 View other formats
107 \begin_inset Quotes erd
108 \end_inset
109
110  button.
111  For more informations, please read the 
112 \series bold
113 powerdot
114 \series default
115  manual.
116 \end_layout
117
118 \begin_layout Plain Layout
119
120 \series bold
121 Note:
122 \series default
123  Depending on your LaTeX-system you might have to add the option 
124 \begin_inset Quotes fld
125 \end_inset
126
127 dvips
128 \begin_inset Quotes frd
129 \end_inset
130
131  to the document class options to get proper DVI output.
132 \end_layout
133
134 \begin_layout Plain Layout
135
136 \series bold
137 Note:
138 \series default
139  
140 \series bold
141 powerdot
142 \series default
143  version <= 1.4g is incompatible with 
144 \series bold
145 enumitem
146 \series default
147  version 3.5.
148  If you get 
149 \family typewriter
150 enumitem
151 \family default
152  errors, make sure to download 
153 \series bold
154 powerdot
155 \series default
156  version 1.4h (2011/09/15) from CTAN.
157 \end_layout
158
159 \end_inset
160
161
162 \end_layout
163
164 \begin_layout Author
165 Mael HillĂ©reau 
166 \begin_inset ERT
167 status collapsed
168
169 \begin_layout Plain Layout
170
171
172 \backslash
173 and
174 \end_layout
175
176 \end_inset
177
178  Hendri Adriaens 
179 \begin_inset ERT
180 status collapsed
181
182 \begin_layout Plain Layout
183
184
185 \backslash
186 and
187 \end_layout
188
189 \end_inset
190
191  Christopher Ellison
192 \end_layout
193
194 \begin_layout Date
195 \begin_inset ERT
196 status collapsed
197
198 \begin_layout Plain Layout
199
200
201 \backslash
202 today
203 \end_layout
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Slide
211 My first slide
212 \end_layout
213
214 \begin_layout Standard
215 We use a 
216 \family typewriter
217 Slide
218 \family default
219  style (magenta color, see above this text into LyX window) for the title
220  of each slide of a section or document.
221 \end_layout
222
223 \begin_layout WideSlide
224 My wide slide
225 \end_layout
226
227 \begin_layout Standard
228 \begin_inset CommandInset label
229 LatexCommand label
230 name "toc"
231
232 \end_inset
233
234 But we may also use wide slides (green color, see above this text into LyX
235  window).
236 \end_layout
237
238 \begin_layout Standard
239 Let's have a look at the TOC:
240 \begin_inset VSpace medskip
241 \end_inset
242
243
244 \end_layout
245
246 \begin_layout Standard
247 \begin_inset CommandInset toc
248 LatexCommand tableofcontents
249
250 \end_inset
251
252
253 \end_layout
254
255 \begin_layout Section
256 This is the first section
257 \end_layout
258
259 \begin_layout Slide
260 \begin_inset Argument 1
261 status collapsed
262
263 \begin_layout Plain Layout
264 toc=This slide has\SpecialChar \ldots{}
265
266 \end_layout
267
268 \end_inset
269
270 This slide has a very very long title
271 \end_layout
272
273 \begin_layout Standard
274 This slide's title is different in the TOC, see slide 
275 \begin_inset CommandInset ref
276 LatexCommand pageref
277 reference "toc"
278
279 \end_inset
280
281  or at the left of all slides in this section.
282 \end_layout
283
284 \begin_layout Note
285 Important note!
286 \end_layout
287
288 \begin_layout Standard
289 Don't forget to use 
290 \family typewriter
291 Insert
292 \family default
293 \SpecialChar \menuseparator
294
295 \family typewriter
296 Slide Option
297 \family default
298  in order to specify slide options.
299 \end_layout
300
301 \begin_layout Slide
302 Using 
303 \family typewriter
304
305 \backslash
306 pause
307 \end_layout
308
309 \begin_layout Standard
310 Let's make a pause! 
311 \begin_inset ERT
312 status collapsed
313
314 \begin_layout Plain Layout
315
316
317 \backslash
318 pause
319 \end_layout
320
321 \end_inset
322
323
324 \end_layout
325
326 \begin_layout Standard
327 \SpecialChar \ldots{}
328  and then continue.
329 \end_layout
330
331 \begin_layout Section
332 Second section
333 \end_layout
334
335 \begin_layout Slide
336 Using 
337 \family typewriter
338 enumerate
339 \end_layout
340
341 \begin_layout Standard
342 Let's enumerate things:
343 \begin_inset ERT
344 status collapsed
345
346 \begin_layout Plain Layout
347
348
349 \backslash
350 pause
351 \end_layout
352
353 \end_inset
354
355
356 \end_layout
357
358 \begin_layout EnumerateType1
359 The first thing;
360 \begin_inset ERT
361 status collapsed
362
363 \begin_layout Plain Layout
364
365
366 \backslash
367 pause
368 \end_layout
369
370 \end_inset
371
372
373 \end_layout
374
375 \begin_layout EnumerateType1
376 The second thing;
377 \begin_inset ERT
378 status collapsed
379
380 \begin_layout Plain Layout
381
382
383 \backslash
384 pause
385 \end_layout
386
387 \end_inset
388
389
390 \end_layout
391
392 \begin_layout EnumerateType1
393 The third thing;
394 \begin_inset ERT
395 status collapsed
396
397 \begin_layout Plain Layout
398
399
400 \backslash
401 pause
402 \end_layout
403
404 \end_inset
405
406
407 \end_layout
408
409 \begin_layout EnumerateType1
410 The final thing!
411 \end_layout
412
413 \begin_layout Slide
414 Using 
415 \family typewriter
416 itemize
417 \end_layout
418
419 \begin_layout Standard
420 We may also make some items and nest them:
421 \begin_inset ERT
422 status collapsed
423
424 \begin_layout Plain Layout
425
426
427 \backslash
428 pause
429 \end_layout
430
431 \end_inset
432
433
434 \end_layout
435
436 \begin_layout ItemizeType1
437 <2> The first;
438 \end_layout
439
440 \begin_layout ItemizeType1
441 <3> The second;
442 \end_layout
443
444 \begin_deeper
445 \begin_layout ItemizeType1
446 <4> One,
447 \end_layout
448
449 \begin_layout ItemizeType1
450 <5> Two,
451 \end_layout
452
453 \begin_layout ItemizeType1
454 <6> Three,
455 \end_layout
456
457 \end_deeper
458 \begin_layout ItemizeType1
459 <7> The last one.
460 \end_layout
461
462 \begin_layout EmptySlide
463 \begin_inset Argument 1
464 status collapsed
465
466 \begin_layout Plain Layout
467 toc=,randomdots
468 \end_layout
469
470 \end_inset
471
472 The empty slide!
473 \end_layout
474
475 \begin_layout Standard
476 \begin_inset VSpace bigskip
477 \end_inset
478
479
480 \end_layout
481
482 \begin_layout Standard
483 \align center
484 This slide is empty\SpecialChar \ldots{}
485  
486 \end_layout
487
488 \begin_layout Standard
489 \begin_inset ERT
490 status collapsed
491
492 \begin_layout Plain Layout
493
494
495 \backslash
496 pause
497 \end_layout
498
499 \end_inset
500
501
502 \end_layout
503
504 \begin_layout Standard
505 \align center
506 It uses 
507 \family typewriter
508 EmptySlide
509 \family default
510  style for its title (see cyan color into LyX window).
511 \end_layout
512
513 \begin_layout Standard
514 \begin_inset ERT
515 status collapsed
516
517 \begin_layout Plain Layout
518
519
520 \backslash
521 pause
522 \end_layout
523
524 \end_inset
525
526
527 \end_layout
528
529 \begin_layout Standard
530 \align center
531 You may also have noticed the use of 
532 \family typewriter
533 randomdots
534 \family default
535  slide option which
536 \begin_inset Newline newline
537 \end_inset
538
539 allows displaying those multicolor dots into the slide background.
540 \end_layout
541
542 \begin_layout Slide
543 \begin_inset Argument 1
544 status collapsed
545
546 \begin_layout Plain Layout
547 method=direct
548 \end_layout
549
550 \end_inset
551
552 Example of LaTeX source code
553 \end_layout
554
555 \begin_layout Standard
556 Let's now use the 
557 \family typewriter
558 listings
559 \family default
560  package in order to typeset some source code.
561  Here's the 
562 \family typewriter
563
564 \backslash
565 HelloWorld
566 \family default
567  LaTeX command:
568 \end_layout
569
570 \begin_layout Standard
571 \begin_inset listings
572 lstparams "language={[LaTeX]TeX}"
573 inline false
574 status open
575
576 \begin_layout Plain Layout
577
578
579 \backslash
580 newcommand{
581 \backslash
582 HelloWorld}{Hello World!}
583 \end_layout
584
585 \end_inset
586
587
588 \end_layout
589
590 \begin_layout Standard
591 Note that this slide uses the 
592 \family typewriter
593 method=direct
594 \family default
595  option (see its short title options box above into LyX window).
596 \end_layout
597
598 \begin_layout Slide
599 \begin_inset Argument 1
600 status collapsed
601
602 \begin_layout Plain Layout
603 method=file
604 \end_layout
605
606 \end_inset
607
608 Verbatim material with overlays
609 \end_layout
610
611 \begin_layout Standard
612 Here's 
613 \family typewriter
614 HelloWorld()
615 \family default
616  C function:
617 \end_layout
618
619 \begin_layout Standard
620 \begin_inset listings
621 lstparams "language=C"
622 inline false
623 status open
624
625 \begin_layout Plain Layout
626
627 void HelloWorld() {
628 \end_layout
629
630 \begin_layout Plain Layout
631
632 printf("Hello World!
633 \backslash
634 n");
635 \end_layout
636
637 \begin_layout Plain Layout
638
639 }
640 \end_layout
641
642 \end_inset
643
644
645 \end_layout
646
647 \begin_layout Standard
648 \begin_inset ERT
649 status collapsed
650
651 \begin_layout Plain Layout
652
653
654 \backslash
655 pause
656 \end_layout
657
658 \end_inset
659
660  Unlike the previous one, this slide must use 
661 \family typewriter
662 method=file
663 \family default
664  as it employs two overlays.
665 \end_layout
666
667 \begin_layout Slide
668 The end.
669 \end_layout
670
671 \begin_layout Standard
672 Don't forget to put an 
673 \family typewriter
674 EndSlide
675 \family default
676  style at the end of the document (see the black symbol below into LyX window).
677 \end_layout
678
679 \begin_layout Standard
680 Have fun!
681 \end_layout
682
683 \begin_layout EndSlide
684
685 \end_layout
686
687 \end_body
688 \end_document