]> git.lyx.org Git - lyx.git/blob - lib/examples/powerdot-example.lyx
2d970cf889a634966d5b861da918bfaacef3cafe
[lyx.git] / lib / examples / powerdot-example.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 466
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_math auto
23 \font_default_family default
24 \use_non_tex_fonts false
25 \font_sc false
26 \font_osf false
27 \font_sf_scale 100
28 \font_tt_scale 100
29 \graphics default
30 \default_output_format pdf
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_package amsmath 1
40 \use_package amssymb 1
41 \use_package cancel 0
42 \use_package esint 0
43 \use_package mathdots 1
44 \use_package mathtools 0
45 \use_package mhchem 1
46 \use_package stackrel 0
47 \use_package stmaryrd 0
48 \use_package undertilde 0
49 \cite_engine basic
50 \cite_engine_type numerical
51 \biblio_style plain
52 \use_bibtopic false
53 \use_indices false
54 \paperorientation landscape
55 \suppress_date false
56 \justification true
57 \use_refstyle 0
58 \index Index
59 \shortcut idx
60 \color #008000
61 \end_index
62 \secnumdepth 3
63 \tocdepth 3
64 \paragraph_separation indent
65 \paragraph_indentation default
66 \quotes_language english
67 \papercolumns 1
68 \papersides 1
69 \paperpagestyle default
70 \tracking_changes false
71 \output_changes false
72 \html_math_output 0
73 \html_css_as_file 0
74 \html_be_strict false
75 \end_header
76
77 \begin_body
78
79 \begin_layout Standard
80 \begin_inset Note Note
81 status open
82
83 \begin_layout Plain Layout
84
85 \series bold
86 \size larger
87 Notes
88 \end_layout
89
90 \begin_layout Enumerate
91
92 \series bold
93 Output Format:
94 \series default
95  Powerdot heavily draws on 
96 \begin_inset Quotes eld
97 \end_inset
98
99 postscript code
100 \begin_inset Quotes erd
101 \end_inset
102
103 .
104  Thus, it does 
105 \series bold
106 not work with PDF
107 \begin_inset space ~
108 \end_inset
109
110 (pdflatex)
111 \series default
112 .
113  The 
114 \begin_inset Quotes eld
115 \end_inset
116
117 View
118 \begin_inset Quotes erd
119 \end_inset
120
121  button uses 
122 \emph on
123 ps2pdf
124 \emph default
125  to generate a PDF, which is the recommended method.
126  Via the menus or the 
127 \begin_inset Quotes eld
128 \end_inset
129
130 View other formats
131 \begin_inset Quotes erd
132 \end_inset
133
134  button, you can use other output formats.
135  However, the only sensible alternative is 
136 \emph on
137 Postscript
138 \emph default
139  itself.
140  
141 \emph on
142 PDF
143 \begin_inset space ~
144 \end_inset
145
146 (dvipdfm)
147 \emph default
148  compiles, but most likely does not produce correct output.
149  The same applies to 
150 \emph on
151 DVI
152 \emph default
153 .
154 \end_layout
155
156 \begin_layout Enumerate
157
158 \series bold
159 Options:
160 \series default
161  Depending on your LaTeX system you might have to add the option 
162 \begin_inset Quotes eld
163 \end_inset
164
165 dvips
166 \begin_inset Quotes erd
167 \end_inset
168
169  to the document class options (
170 \family sans
171 Document\SpecialChar \menuseparator
172 Settings\SpecialChar \menuseparator
173 \SpecialChar \ldots{}
174 Document Class\SpecialChar \menuseparator
175 Class Options\SpecialChar \menuseparator
176 Custom
177 \family default
178 ) to get proper output.
179 \end_layout
180
181 \begin_layout Enumerate
182
183 \series bold
184 Compatibility:
185 \series default
186  
187 \emph on
188 Powerdot
189 \emph default
190  version <= 1.4g is incompatible with 
191 \emph on
192 enumitem
193 \emph default
194  version 3.5.
195  If you get 
196 \emph on
197 enumitem
198 \emph default
199  errors, make sure to download 
200 \emph on
201 powerdot
202 \emph default
203  version 1.4h (2011/09/15) or a later version from CTAN.
204 \end_layout
205
206 \end_inset
207
208
209 \end_layout
210
211 \begin_layout Title
212 A LyX sample
213 \end_layout
214
215 \begin_layout Author
216 Mael HillĂ©reau 
217 \begin_inset ERT
218 status collapsed
219
220 \begin_layout Plain Layout
221
222
223 \backslash
224 and
225 \end_layout
226
227 \end_inset
228
229  Hendri Adriaens 
230 \begin_inset ERT
231 status collapsed
232
233 \begin_layout Plain Layout
234
235
236 \backslash
237 and
238 \end_layout
239
240 \end_inset
241
242  Christopher Ellison
243 \end_layout
244
245 \begin_layout Date
246 \begin_inset ERT
247 status collapsed
248
249 \begin_layout Plain Layout
250
251
252 \backslash
253 today
254 \end_layout
255
256 \end_inset
257
258
259 \end_layout
260
261 \begin_layout Slide
262 My first slide
263 \end_layout
264
265 \begin_layout Standard
266 We use a 
267 \family typewriter
268 Slide
269 \family default
270  style (magenta color, see above this text into LyX window) for the title
271  of each slide of a section or document.
272 \end_layout
273
274 \begin_layout WideSlide
275 My wide slide
276 \end_layout
277
278 \begin_layout Standard
279 \begin_inset CommandInset label
280 LatexCommand label
281 name "toc"
282
283 \end_inset
284
285 But we may also use wide slides (green color, see above this text into LyX
286  window).
287 \end_layout
288
289 \begin_layout Standard
290 Let's have a look at the TOC:
291 \begin_inset VSpace medskip
292 \end_inset
293
294
295 \end_layout
296
297 \begin_layout Standard
298 \begin_inset CommandInset toc
299 LatexCommand tableofcontents
300
301 \end_inset
302
303
304 \end_layout
305
306 \begin_layout Section
307 This is the first section
308 \end_layout
309
310 \begin_layout Slide
311 \begin_inset Argument 1
312 status collapsed
313
314 \begin_layout Plain Layout
315 toc=This slide has\SpecialChar \ldots{}
316
317 \end_layout
318
319 \end_inset
320
321 This slide has a very very long title
322 \end_layout
323
324 \begin_layout Standard
325 This slide's title is different in the TOC, see slide 
326 \begin_inset CommandInset ref
327 LatexCommand pageref
328 reference "toc"
329
330 \end_inset
331
332  or at the left of all slides in this section.
333 \end_layout
334
335 \begin_layout Note
336 Important note!
337 \end_layout
338
339 \begin_layout Standard
340 Don't forget to use 
341 \family typewriter
342 Insert
343 \family default
344 \SpecialChar \menuseparator
345
346 \family typewriter
347 Slide Option
348 \family default
349  in order to specify slide options.
350 \end_layout
351
352 \begin_layout Slide
353 Using pause
354 \end_layout
355
356 \begin_layout Standard
357 Let's make a pause!
358 \end_layout
359
360 \begin_layout Pause
361
362 \end_layout
363
364 \begin_layout Standard
365 \SpecialChar \ldots{}
366  and then continue.
367 \end_layout
368
369 \begin_layout Slide
370 Uncovering text
371 \end_layout
372
373 \begin_layout Standard
374 Use Edit\SpecialChar \menuseparator
375 Text Style to access the 
376 \begin_inset Quotes eld
377 \end_inset
378
379 Onslide
380 \begin_inset Quotes erd
381 \end_inset
382
383  (
384 \begin_inset Quotes eld
385 \end_inset
386
387 visible
388 \begin_inset Quotes erd
389 \end_inset
390
391 ), 
392 \begin_inset Quotes eld
393 \end_inset
394
395 Onslide*
396 \begin_inset Quotes erd
397 \end_inset
398
399  (
400 \begin_inset Quotes eld
401 \end_inset
402
403 only
404 \begin_inset Quotes erd
405 \end_inset
406
407 ) and 
408 \begin_inset Quotes eld
409 \end_inset
410
411 Onslide+
412 \begin_inset Quotes erd
413 \end_inset
414
415  (
416 \begin_inset Quotes eld
417 \end_inset
418
419 uncover
420 \begin_inset Quotes erd
421 \end_inset
422
423 ) insets which correspond to powerdot's various 
424 \family typewriter
425
426 \backslash
427 onslide
428 \family default
429  commands:
430 \end_layout
431
432 \begin_layout Enumerate
433 \begin_inset Quotes eld
434 \end_inset
435
436 Onslide
437 \begin_inset Quotes erd
438 \end_inset
439
440  (
441 \begin_inset Quotes eld
442 \end_inset
443
444 visible
445 \begin_inset Quotes erd
446 \end_inset
447
448 ): This 
449 \begin_inset Flex Onslide
450 status open
451
452 \begin_layout Plain Layout
453 \begin_inset Argument 1
454 status open
455
456 \begin_layout Plain Layout
457 2
458 \end_layout
459
460 \end_inset
461
462 makes hidden text
463 \end_layout
464
465 \end_inset
466
467  visible.
468  
469 \end_layout
470
471 \begin_layout Enumerate
472 \begin_inset Quotes eld
473 \end_inset
474
475 Onslide*
476 \begin_inset Quotes erd
477 \end_inset
478
479  (
480 \begin_inset Quotes eld
481 \end_inset
482
483 only
484 \begin_inset Quotes erd
485 \end_inset
486
487 ): This 
488 \begin_inset Flex Onslide*
489 status open
490
491 \begin_layout Plain Layout
492 \begin_inset Argument 1
493 status open
494
495 \begin_layout Plain Layout
496 2
497 \end_layout
498
499 \end_inset
500
501 shows previously invisible text
502 \end_layout
503
504 \end_inset
505
506  (note the difference to the above!) 
507 \end_layout
508
509 \begin_layout Enumerate
510 \begin_inset Quotes eld
511 \end_inset
512
513 Onslide+
514 \begin_inset Quotes erd
515 \end_inset
516
517  (
518 \begin_inset Quotes eld
519 \end_inset
520
521 uncover
522 \begin_inset Quotes erd
523 \end_inset
524
525 ): This 
526 \begin_inset Flex Onslide+
527 status open
528
529 \begin_layout Plain Layout
530 \begin_inset Argument 1
531 status open
532
533 \begin_layout Plain Layout
534 2
535 \end_layout
536
537 \end_inset
538
539 uncovers
540 \end_layout
541
542 \end_inset
543
544  
545 \begin_inset Quotes eld
546 \end_inset
547
548 deactivated
549 \begin_inset Quotes erd
550 \end_inset
551
552  text.
553 \end_layout
554
555 \begin_layout Section
556 Second section
557 \end_layout
558
559 \begin_layout Slide
560 Using 
561 \family typewriter
562 enumerate
563 \end_layout
564
565 \begin_layout Standard
566 Let's enumerate things:
567 \end_layout
568
569 \begin_layout Pause
570
571 \end_layout
572
573 \begin_layout EnumerateType1
574 The first thing;
575 \end_layout
576
577 \begin_deeper
578 \begin_layout Pause
579
580 \end_layout
581
582 \end_deeper
583 \begin_layout EnumerateType1
584 The second thing;
585 \end_layout
586
587 \begin_deeper
588 \begin_layout Pause
589
590 \end_layout
591
592 \end_deeper
593 \begin_layout EnumerateType1
594 The third thing;
595 \end_layout
596
597 \begin_deeper
598 \begin_layout Pause
599
600 \end_layout
601
602 \end_deeper
603 \begin_layout EnumerateType1
604 The final thing!
605 \end_layout
606
607 \begin_layout Slide
608 Using 
609 \family typewriter
610 itemize
611 \end_layout
612
613 \begin_layout Standard
614 We may also make some items and nest them:
615 \end_layout
616
617 \begin_layout ItemizeType1
618 \begin_inset Argument item:2
619 status open
620
621 \begin_layout Plain Layout
622 2
623 \end_layout
624
625 \end_inset
626
627 The first;
628 \end_layout
629
630 \begin_layout ItemizeType1
631 \begin_inset Argument item:2
632 status open
633
634 \begin_layout Plain Layout
635 3
636 \end_layout
637
638 \end_inset
639
640 The second;
641 \end_layout
642
643 \begin_deeper
644 \begin_layout ItemizeType1
645 \begin_inset Argument item:2
646 status open
647
648 \begin_layout Plain Layout
649 4
650 \end_layout
651
652 \end_inset
653
654 One,
655 \end_layout
656
657 \begin_layout ItemizeType1
658 \begin_inset Argument item:2
659 status open
660
661 \begin_layout Plain Layout
662 5
663 \end_layout
664
665 \end_inset
666
667 Two,
668 \end_layout
669
670 \begin_layout ItemizeType1
671 \begin_inset Argument item:2
672 status open
673
674 \begin_layout Plain Layout
675 6
676 \end_layout
677
678 \end_inset
679
680 Three,
681 \end_layout
682
683 \end_deeper
684 \begin_layout ItemizeType1
685 \begin_inset Argument item:2
686 status open
687
688 \begin_layout Plain Layout
689 7
690 \end_layout
691
692 \end_inset
693
694 The last one.
695 \end_layout
696
697 \begin_layout EmptySlide
698 \begin_inset Argument 1
699 status collapsed
700
701 \begin_layout Plain Layout
702 toc=,randomdots
703 \end_layout
704
705 \end_inset
706
707 The empty slide!
708 \end_layout
709
710 \begin_layout Standard
711 \begin_inset VSpace bigskip
712 \end_inset
713
714
715 \end_layout
716
717 \begin_layout Standard
718 \align center
719 This slide is empty\SpecialChar \ldots{}
720  
721 \end_layout
722
723 \begin_layout Pause
724
725 \end_layout
726
727 \begin_layout Standard
728 \align center
729 It uses 
730 \family typewriter
731 EmptySlide
732 \family default
733  style for its title (see cyan color into LyX window).
734 \end_layout
735
736 \begin_layout Pause
737
738 \end_layout
739
740 \begin_layout Standard
741 \align center
742 You may also have noticed the use of 
743 \family typewriter
744 randomdots
745 \family default
746  slide option which
747 \begin_inset Newline newline
748 \end_inset
749
750 allows displaying those multicolor dots into the slide background.
751 \end_layout
752
753 \begin_layout Slide
754 Two columns
755 \end_layout
756
757 \begin_layout Twocolumn
758 \begin_inset Argument 2
759 status open
760
761 \begin_layout Plain Layout
762 This is the left column
763 \end_layout
764
765 \end_inset
766
767 This is the right column.
768 \end_layout
769
770 \begin_layout Slide
771 \begin_inset Argument 1
772 status collapsed
773
774 \begin_layout Plain Layout
775 method=direct
776 \end_layout
777
778 \end_inset
779
780 Example of LaTeX source code
781 \end_layout
782
783 \begin_layout Standard
784 Let's now use the 
785 \family typewriter
786 listings
787 \family default
788  package in order to typeset some source code.
789  Here's the 
790 \family typewriter
791
792 \backslash
793 HelloWorld
794 \family default
795  LaTeX command:
796 \end_layout
797
798 \begin_layout Standard
799 \begin_inset listings
800 lstparams "language={[LaTeX]TeX}"
801 inline false
802 status open
803
804 \begin_layout Plain Layout
805
806
807 \backslash
808 newcommand{
809 \backslash
810 HelloWorld}{Hello World!}
811 \end_layout
812
813 \end_inset
814
815
816 \end_layout
817
818 \begin_layout Standard
819 Note that this slide uses the 
820 \family typewriter
821 method=direct
822 \family default
823  option (see its short title options box above into LyX window).
824 \end_layout
825
826 \begin_layout Slide
827 \begin_inset Argument 1
828 status collapsed
829
830 \begin_layout Plain Layout
831 method=file
832 \end_layout
833
834 \end_inset
835
836 Verbatim material with overlays
837 \end_layout
838
839 \begin_layout Standard
840 Here's 
841 \family typewriter
842 HelloWorld()
843 \family default
844  C function:
845 \end_layout
846
847 \begin_layout Standard
848 \begin_inset listings
849 lstparams "language=C"
850 inline false
851 status open
852
853 \begin_layout Plain Layout
854
855 void HelloWorld() {
856 \end_layout
857
858 \begin_layout Plain Layout
859
860 printf("Hello World!
861 \backslash
862 n");
863 \end_layout
864
865 \begin_layout Plain Layout
866
867 }
868 \end_layout
869
870 \end_inset
871
872
873 \end_layout
874
875 \begin_layout Pause
876
877 \end_layout
878
879 \begin_layout Standard
880 Unlike the previous one, this slide must use 
881 \family typewriter
882 method=file
883 \family default
884  as it employs two overlays.
885 \end_layout
886
887 \begin_layout Slide
888 The end.
889 \end_layout
890
891 \begin_layout Standard
892 Don't forget to put an 
893 \family typewriter
894 EndSlide
895 \family default
896  style at the end of the document (see the black symbol below into LyX window).
897 \end_layout
898
899 \begin_layout Standard
900 Have fun!
901 \end_layout
902
903 \begin_layout EndSlide
904
905 \end_layout
906
907 \end_body
908 \end_document