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