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