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