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