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