]> git.lyx.org Git - lyx.git/blob - lib/examples/Presentations/Powerdot.lyx
remove buildlyxdir again
[lyx.git] / lib / examples / Presentations / Powerdot.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/Presentations/
7 \textclass powerdot
8 \begin_preamble
9 \pdsetup{%
10   lf=left footer,
11   rf=right footer
12 }
13 \end_preamble
14 \options style=fyma,display=slidesnotes
15 \use_default_options false
16 \maintain_unincluded_children false
17 \language english
18 \language_package default
19 \inputencoding auto
20 \fontencoding global
21 \font_roman "default" "default"
22 \font_sans "default" "default"
23 \font_typewriter "default" "default"
24 \font_math "auto" "auto"
25 \font_default_family default
26 \use_non_tex_fonts false
27 \font_sc false
28 \font_osf false
29 \font_sf_scale 100 100
30 \font_tt_scale 100 100
31 \use_microtype false
32 \use_dash_ligatures false
33 \graphics default
34 \default_output_format pdf
35 \output_sync 0
36 \bibtex_command default
37 \index_command default
38 \paperfontsize size=10
39 \spacing single
40 \use_hyperref false
41 \papersize letterpaper
42 \use_geometry true
43 \use_package amsmath 1
44 \use_package amssymb 1
45 \use_package cancel 1
46 \use_package esint 1
47 \use_package mathdots 1
48 \use_package mathtools 1
49 \use_package mhchem 1
50 \use_package stackrel 1
51 \use_package stmaryrd 1
52 \use_package undertilde 1
53 \cite_engine basic
54 \cite_engine_type default
55 \biblio_style plain
56 \use_bibtopic false
57 \use_indices false
58 \paperorientation landscape
59 \suppress_date false
60 \justification true
61 \use_refstyle 0
62 \use_minted 0
63 \index Index
64 \shortcut idx
65 \color #008000
66 \end_index
67 \secnumdepth 3
68 \tocdepth 3
69 \paragraph_separation indent
70 \paragraph_indentation default
71 \is_math_indent 0
72 \math_numbering_side default
73 \quotes_style english
74 \dynamic_quotes 0
75 \papercolumns 1
76 \papersides 1
77 \paperpagestyle default
78 \tracking_changes false
79 \output_changes false
80 \html_math_output 0
81 \html_css_as_file 0
82 \html_be_strict false
83 \end_header
84
85 \begin_body
86
87 \begin_layout Standard
88 \begin_inset Note Note
89 status open
90
91 \begin_layout Plain Layout
92
93 \series bold
94 \size larger
95 General Notes
96 \end_layout
97
98 \begin_layout Enumerate
99
100 \series bold
101 Output Format:
102 \series default
103  
104 \emph on
105 Powerdot
106 \emph default
107  heavily draws on 
108 \begin_inset Quotes eld
109 \end_inset
110
111 postscript code
112 \begin_inset Quotes erd
113 \end_inset
114
115 .
116  Thus, it does 
117 \series bold
118 not work with PDF
119 \begin_inset space ~
120 \end_inset
121
122 (pdflatex)
123 \series default
124 .
125  The 
126 \begin_inset Quotes eld
127 \end_inset
128
129 View
130 \begin_inset Quotes erd
131 \end_inset
132
133  button uses 
134 \emph on
135 ps2pdf
136 \emph default
137  to generate a PDF, which is the recommended method (for your own documents,
138  you can set this via 
139 \family sans
140 Document\SpecialChar menuseparator
141 Settings\SpecialChar ldots
142 \SpecialChar menuseparator
143 Output\SpecialChar menuseparator
144 Default Output Format
145 \family default
146 ).
147  Via the menus or the 
148 \begin_inset Quotes eld
149 \end_inset
150
151 View other formats
152 \begin_inset Quotes erd
153 \end_inset
154
155  button, you can use other output formats.
156  However, the only sensible alternative is 
157 \emph on
158 Postscript
159 \emph default
160  itself.
161  
162 \emph on
163 PDF
164 \begin_inset space ~
165 \end_inset
166
167 (dvipdfm)
168 \emph default
169  compiles, but most likely does not produce correct output.
170  The same applies to 
171 \emph on
172 DVI
173 \emph default
174 .
175 \end_layout
176
177 \begin_layout Enumerate
178
179 \series bold
180 Options:
181 \series default
182  Depending on your \SpecialChar LaTeX
183  system you might have to add the option 
184 \begin_inset Quotes eld
185 \end_inset
186
187 dvips
188 \begin_inset Quotes erd
189 \end_inset
190
191  to the document class options (
192 \family sans
193 Document\SpecialChar menuseparator
194 Settings\SpecialChar ldots
195 \SpecialChar menuseparator
196 Document Class\SpecialChar menuseparator
197 Class Options\SpecialChar menuseparator
198 Custom
199 \family default
200 ) to get proper output.
201 \end_layout
202
203 \begin_layout Enumerate
204
205 \series bold
206 Appearance:
207 \series default
208  You can customize the look of the presentation with the class options 
209 \emph on
210 style=<style>
211 \emph default
212  (via 
213 \family sans
214 Document\SpecialChar menuseparator
215 Settings\SpecialChar ldots
216 \SpecialChar menuseparator
217 Document Class\SpecialChar menuseparator
218 Class Options\SpecialChar menuseparator
219 Custom
220 \family default
221 ); the 
222 \emph on
223 powerdot
224 \emph default
225  manual describes the styles at disposal.
226  Please also refer to the 
227 \emph on
228 powerdot
229 \emph default
230  manual for further class options.
231 \end_layout
232
233 \begin_layout Enumerate
234
235 \series bold
236 Compatibility:
237 \series default
238  
239 \emph on
240 Powerdot
241 \emph default
242  version <= 1.4g is incompatible with 
243 \emph on
244 enumitem
245 \emph default
246  version 3.5.
247  If you get 
248 \emph on
249 enumitem
250 \emph default
251  errors, make sure to download 
252 \emph on
253 powerdot
254 \emph default
255  version 1.4h (2011/09/15) or a later version from CTAN.
256 \end_layout
257
258 \end_inset
259
260
261 \end_layout
262
263 \begin_layout Title
264 Powerdot Presentations: A \SpecialChar LyX
265  Sample
266 \end_layout
267
268 \begin_layout Author
269 Mael HillĂ©reau 
270 \begin_inset ERT
271 status collapsed
272
273 \begin_layout Plain Layout
274
275
276 \backslash
277 and
278 \end_layout
279
280 \end_inset
281
282  Hendri Adriaens 
283 \begin_inset ERT
284 status collapsed
285
286 \begin_layout Plain Layout
287
288
289 \backslash
290 and
291 \end_layout
292
293 \end_inset
294
295  Christopher Ellison
296 \begin_inset Note Note
297 status collapsed
298
299 \begin_layout Plain Layout
300 Extensions and comments for \SpecialChar LyX
301  2.1 by JĂĽrgen SpitzmĂĽller.
302 \end_layout
303
304 \end_inset
305
306
307 \end_layout
308
309 \begin_layout Date
310 \begin_inset ERT
311 status collapsed
312
313 \begin_layout Plain Layout
314
315
316 \backslash
317 today
318 \end_layout
319
320 \end_inset
321
322
323 \end_layout
324
325 \begin_layout Slide
326 My first slide
327 \end_layout
328
329 \begin_layout Standard
330 We use a 
331 \family typewriter
332 Slide
333 \family default
334  style (magenta color, see above this text in the \SpecialChar LyX
335  window) for the title
336  of each slide and to start a new slide.
337 \end_layout
338
339 \begin_layout WideSlide
340 My wide slide
341 \end_layout
342
343 \begin_layout Standard
344 \begin_inset CommandInset label
345 LatexCommand label
346 name "toc"
347
348 \end_inset
349
350 But we may also produce wide slides via the 
351 \family typewriter
352 WideSlide
353 \family default
354  style (green color, see above this text in the \SpecialChar LyX
355  window).
356 \end_layout
357
358 \begin_layout Slide
359 The TOC
360 \end_layout
361
362 \begin_layout Standard
363 \begin_inset Note Note
364 status open
365
366 \begin_layout Plain Layout
367 If you need TOC options (see 
368 \emph on
369 powerdot
370 \emph default
371  manual), you have to insert 
372 \family typewriter
373
374 \backslash
375 tableofcontents[<options>]
376 \family default
377  in \SpecialChar TeX
378  mode.
379 \end_layout
380
381 \end_inset
382
383
384 \end_layout
385
386 \begin_layout Standard
387 Let's have a look at the TOC:
388 \begin_inset VSpace medskip
389 \end_inset
390
391
392 \end_layout
393
394 \begin_layout Standard
395 \begin_inset CommandInset toc
396 LatexCommand tableofcontents
397
398 \end_inset
399
400
401 \end_layout
402
403 \begin_layout Section
404 This is the first section
405 \end_layout
406
407 \begin_layout Slide
408 \begin_inset Argument 1
409 status open
410
411 \begin_layout Plain Layout
412 toc=This slide has\SpecialChar ldots
413
414 \end_layout
415
416 \end_inset
417
418 This slide has a very very long title
419 \end_layout
420
421 \begin_layout Standard
422 This slide's title is different in the TOC, since we use the slide option
423  
424 \emph on
425 toc=<shorttitle>
426 \emph default
427 ; see slide 
428 \begin_inset CommandInset ref
429 LatexCommand pageref
430 reference "toc"
431
432 \end_inset
433
434  or the navigation bar at the left side of all slides in this section.
435  Note that you can use 
436 \emph on
437 toc=
438 \emph default
439  (i.
440 \begin_inset space \thinspace{}
441 \end_inset
442
443 e., pass an empty value) to hide a title completely from the TOC.
444 \begin_inset VSpace defskip
445 \end_inset
446
447
448 \end_layout
449
450 \begin_layout Standard
451 Slide options can be specified via 
452 \family typewriter
453 Insert
454 \family default
455 \SpecialChar menuseparator
456
457 \family typewriter
458 Slide Option
459 \family default
460 .
461 \end_layout
462
463 \begin_layout Note
464 Important note!
465 \end_layout
466
467 \begin_layout Standard
468 With the style 
469 \family typewriter
470 Note
471 \family default
472  you can add notes to yourself.
473 \begin_inset VSpace defskip
474 \end_inset
475
476
477 \end_layout
478
479 \begin_layout Standard
480 The class option 
481 \emph on
482 display=<displaytype>
483 \emph default
484  (via 
485 \family sans
486 Document\SpecialChar menuseparator
487 Settings\SpecialChar ldots
488 \SpecialChar menuseparator
489 Document Class\SpecialChar menuseparator
490 Class Options\SpecialChar menuseparator
491 Custom
492 \family default
493 ) determines whether notes are visible in the output.
494  By default, they are not (
495 \emph on
496 display=slides
497 \emph default
498 ).
499  We use the option 
500 \emph on
501 display=slidesnotes
502 \emph default
503  in this presentation to display both the slides and the notes.
504  You can also display the notes only (
505 \emph on
506 display=notes
507 \emph default
508 ).
509  See the 
510 \emph on
511 powerdot
512 \emph default
513  manual for details.
514 \end_layout
515
516 \begin_layout Slide
517 Pausing
518 \end_layout
519
520 \begin_layout Standard
521 Let's make a pause!
522 \begin_inset Note Note
523 status open
524
525 \begin_layout Plain Layout
526 Use the paragraph style 
527 \family typewriter
528 Pause
529 \family default
530  or 
531 \family typewriter
532
533 \backslash
534 pause
535 \family default
536  in \SpecialChar TeX
537  mode!
538 \end_layout
539
540 \end_inset
541
542
543 \end_layout
544
545 \begin_layout Pause
546
547 \end_layout
548
549 \begin_layout Standard
550 \SpecialChar ldots
551  and then continue.
552 \end_layout
553
554 \begin_layout Slide
555 Uncovering text
556 \end_layout
557
558 \begin_layout Standard
559 Use Edit\SpecialChar menuseparator
560 Text Style to access the 
561 \family typewriter
562 Onslide
563 \family default
564  (
565 \begin_inset Quotes eld
566 \end_inset
567
568 Visible
569 \begin_inset Quotes erd
570 \end_inset
571
572 ), 
573 \family typewriter
574 Onslide*
575 \family default
576  (
577 \begin_inset Quotes eld
578 \end_inset
579
580 Only
581 \begin_inset Quotes erd
582 \end_inset
583
584 ) and 
585 \family typewriter
586 Onslide+
587 \family default
588  (
589 \begin_inset Quotes eld
590 \end_inset
591
592 Uncover
593 \begin_inset Quotes erd
594 \end_inset
595
596 ) insets, which correspond to 
597 \emph on
598 powerdot's
599 \emph default
600  various 
601 \family typewriter
602
603 \backslash
604 onslide
605 \family default
606  commands:
607 \begin_inset Note Note
608 status open
609
610 \begin_layout Plain Layout
611 The 
612 \begin_inset Quotes eld
613 \end_inset
614
615 On Slides
616 \begin_inset Quotes erd
617 \end_inset
618
619  sub-inset is accessible via 
620 \family sans
621 Insert\SpecialChar menuseparator
622 Overlay Specifications
623 \family default
624 .
625 \end_layout
626
627 \end_inset
628
629
630 \end_layout
631
632 \begin_layout Enumerate
633
634 \family typewriter
635 Onslide
636 \family default
637  (
638 \begin_inset Quotes eld
639 \end_inset
640
641 Visible
642 \begin_inset Quotes erd
643 \end_inset
644
645 ): This 
646 \begin_inset Flex Onslide
647 status open
648
649 \begin_layout Plain Layout
650 \begin_inset Argument 1
651 status open
652
653 \begin_layout Plain Layout
654 2
655 \end_layout
656
657 \end_inset
658
659 makes invisible text
660 \end_layout
661
662 \end_inset
663
664  visible.
665 \end_layout
666
667 \begin_layout Enumerate
668
669 \family typewriter
670 Onslide
671 \family default
672 * (
673 \begin_inset Quotes eld
674 \end_inset
675
676 Only
677 \begin_inset Quotes erd
678 \end_inset
679
680 ): This 
681 \begin_inset Flex Onslide*
682 status open
683
684 \begin_layout Plain Layout
685 \begin_inset Argument 1
686 status open
687
688 \begin_layout Plain Layout
689 2
690 \end_layout
691
692 \end_inset
693
694 shows previously completely hidden text
695 \end_layout
696
697 \end_inset
698
699  (note how, contrary to the above, the space is here only occupied after
700  un-hiding!) 
701 \end_layout
702
703 \begin_layout Enumerate
704
705 \family typewriter
706 Onslide
707 \family default
708 + (
709 \begin_inset Quotes eld
710 \end_inset
711
712 Uncover
713 \begin_inset Quotes erd
714 \end_inset
715
716 ): This 
717 \begin_inset Flex Onslide+
718 status open
719
720 \begin_layout Plain Layout
721 \begin_inset Argument 1
722 status open
723
724 \begin_layout Plain Layout
725 2
726 \end_layout
727
728 \end_inset
729
730 uncovers
731 \end_layout
732
733 \end_inset
734
735  
736 \begin_inset Quotes eld
737 \end_inset
738
739 deactivated
740 \begin_inset Quotes erd
741 \end_inset
742
743  text.
744 \end_layout
745
746 \begin_layout Section
747 Second section
748 \end_layout
749
750 \begin_layout Slide
751 Using 
752 \family typewriter
753 Enumerate
754 \end_layout
755
756 \begin_layout Standard
757 \begin_inset Note Note
758 status open
759
760 \begin_layout Plain Layout
761 List options can be inserted via 
762 \family sans
763 Insert\SpecialChar menuseparator
764 Enumerate Options
765 \family default
766  or 
767 \family sans
768 Insert\SpecialChar menuseparator
769 Itemize Options
770 \family default
771 , respectively.
772  A list item can be customized by means of 
773 \family sans
774 Insert\SpecialChar menuseparator
775 Custom Item
776 \family default
777 .
778 \end_layout
779
780 \end_inset
781
782
783 \end_layout
784
785 \begin_layout Standard
786 Let's enumerate things:
787 \end_layout
788
789 \begin_layout Pause
790
791 \end_layout
792
793 \begin_layout EnumerateType1
794 The first thing;
795 \end_layout
796
797 \begin_deeper
798 \begin_layout Pause
799
800 \end_layout
801
802 \end_deeper
803 \begin_layout EnumerateType1
804 The second thing;
805 \end_layout
806
807 \begin_deeper
808 \begin_layout Pause
809
810 \end_layout
811
812 \end_deeper
813 \begin_layout EnumerateType1
814 The third thing;
815 \end_layout
816
817 \begin_deeper
818 \begin_layout Pause
819
820 \end_layout
821
822 \end_deeper
823 \begin_layout EnumerateType1
824 The final thing!
825 \end_layout
826
827 \begin_layout Slide
828 List types
829 \end_layout
830
831 \begin_layout Standard
832 \begin_inset Note Note
833 status open
834
835 \begin_layout Plain Layout
836 Here you can see the difference between the styles 
837 \family typewriter
838 Enumerate
839 \family default
840  and 
841 \family typewriter
842 EnumerateType1
843 \family default
844 .
845  
846 \family typewriter
847 EnumerateType1
848 \family default
849  (used on the previous slides) shows forthcoming items in 
850 \begin_inset Quotes eld
851 \end_inset
852
853 inactive
854 \begin_inset Quotes erd
855 \end_inset
856
857  mode, while 
858 \family typewriter
859 Enumerate
860 \family default
861  (used here) hides them completely (the same applies to 
862 \family typewriter
863 Itemize
864 \family default
865  and 
866 \family typewriter
867 ItemizeType1
868 \family default
869 ).
870 \end_layout
871
872 \end_inset
873
874 Let's enumerate things again (
875 \family typewriter
876 Enumerate
877 \family default
878  instead of 
879 \family typewriter
880 EnumerateType1
881 \family default
882 ):
883 \end_layout
884
885 \begin_layout Pause
886
887 \end_layout
888
889 \begin_layout Enumerate
890 The first thing;
891 \end_layout
892
893 \begin_deeper
894 \begin_layout Pause
895
896 \end_layout
897
898 \end_deeper
899 \begin_layout Enumerate
900 The second thing;
901 \end_layout
902
903 \begin_deeper
904 \begin_layout Pause
905
906 \end_layout
907
908 \end_deeper
909 \begin_layout Enumerate
910 The third thing;
911 \end_layout
912
913 \begin_deeper
914 \begin_layout Pause
915
916 \end_layout
917
918 \end_deeper
919 \begin_layout Enumerate
920 The final thing!
921 \end_layout
922
923 \begin_layout Slide
924 Using 
925 \family typewriter
926 Itemize
927 \end_layout
928
929 \begin_layout Standard
930 \begin_inset Note Note
931 status open
932
933 \begin_layout Plain Layout
934 The overlay argument of a list item (
935 \family typewriter
936
937 \backslash
938 item<arg>
939 \family default
940  in \SpecialChar LaTeX
941  output, 
942 \begin_inset Quotes eld
943 \end_inset
944
945 On Slide
946 \begin_inset Quotes erd
947 \end_inset
948
949  in \SpecialChar LyX
950 ) is inserted via 
951 \family sans
952 Insert\SpecialChar menuseparator
953 Overlay Specification.
954  Note how these, as opposed to 
955 \family typewriter
956 Pause
957 \family sans
958 , can be used to highlight only one item on each sub-slide (but try 
959 \begin_inset Quotes eld
960 \end_inset
961
962 2-
963 \begin_inset Quotes erd
964 \end_inset
965
966
967 \begin_inset Quotes eld
968 \end_inset
969
970 3-
971 \begin_inset Quotes erd
972 \end_inset
973
974  etc.
975  the get the same effect as with 
976 \family typewriter
977 Pause
978 \family sans
979 ).
980 \end_layout
981
982 \end_inset
983
984
985 \end_layout
986
987 \begin_layout Standard
988 We may also make some items and nest them:
989 \end_layout
990
991 \begin_layout ItemizeType1
992 \begin_inset Argument item:2
993 status open
994
995 \begin_layout Plain Layout
996 2
997 \end_layout
998
999 \end_inset
1000
1001 The first;
1002 \end_layout
1003
1004 \begin_layout ItemizeType1
1005 \begin_inset Argument item:2
1006 status open
1007
1008 \begin_layout Plain Layout
1009 3
1010 \end_layout
1011
1012 \end_inset
1013
1014 The second;
1015 \end_layout
1016
1017 \begin_deeper
1018 \begin_layout ItemizeType1
1019 \begin_inset Argument item:2
1020 status open
1021
1022 \begin_layout Plain Layout
1023 4
1024 \end_layout
1025
1026 \end_inset
1027
1028 One,
1029 \end_layout
1030
1031 \begin_layout ItemizeType1
1032 \begin_inset Argument item:2
1033 status open
1034
1035 \begin_layout Plain Layout
1036 5
1037 \end_layout
1038
1039 \end_inset
1040
1041 Two,
1042 \end_layout
1043
1044 \begin_layout ItemizeType1
1045 \begin_inset Argument item:2
1046 status open
1047
1048 \begin_layout Plain Layout
1049 6
1050 \end_layout
1051
1052 \end_inset
1053
1054 Three,
1055 \end_layout
1056
1057 \end_deeper
1058 \begin_layout ItemizeType1
1059 \begin_inset Argument item:2
1060 status open
1061
1062 \begin_layout Plain Layout
1063 7
1064 \end_layout
1065
1066 \end_inset
1067
1068 The last one.
1069 \end_layout
1070
1071 \begin_layout EmptySlide
1072 \begin_inset Argument 1
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 toc=,randomdots
1077 \end_layout
1078
1079 \end_inset
1080
1081 The empty slide!
1082 \end_layout
1083
1084 \begin_layout Standard
1085 \begin_inset VSpace bigskip
1086 \end_inset
1087
1088
1089 \end_layout
1090
1091 \begin_layout Standard
1092 \align center
1093 This slide is empty (or rather 
1094 \begin_inset Quotes eld
1095 \end_inset
1096
1097 plain
1098 \begin_inset Quotes erd
1099 \end_inset
1100
1101 , for that matter, i.
1102 \begin_inset space \thinspace{}
1103 \end_inset
1104
1105 e.
1106  it has no title, navigation bar etc.) \SpecialChar ldots
1107  
1108 \end_layout
1109
1110 \begin_layout Pause
1111
1112 \end_layout
1113
1114 \begin_layout Standard
1115 \align center
1116 It uses the 
1117 \family typewriter
1118 EmptySlide
1119 \family default
1120  style for its title (cyan color in the \SpecialChar LyX
1121  window).
1122 \end_layout
1123
1124 \begin_layout Pause
1125
1126 \end_layout
1127
1128 \begin_layout Standard
1129 \align center
1130 You may also have noticed the use of 
1131 \family typewriter
1132 randomdots
1133 \family default
1134  slide option which
1135 \begin_inset Newline newline
1136 \end_inset
1137
1138 allows displaying those multicolor dots into the slide background.
1139 \end_layout
1140
1141 \begin_layout Slide
1142 Two columns
1143 \end_layout
1144
1145 \begin_layout Standard
1146 \begin_inset Note Note
1147 status open
1148
1149 \begin_layout Plain Layout
1150 Use the 
1151 \family typewriter
1152 Twocolumn
1153 \family default
1154  style to enter two columns.
1155  The inset for the left column is automatically inserted or can be inserted
1156  via 
1157 \family sans
1158 Insert\SpecialChar menuseparator
1159 Left Column
1160 \family default
1161 .
1162  Column options (see 
1163 \emph on
1164 powerdot
1165 \emph default
1166  manual) can be inserted via 
1167 \family sans
1168 Insert\SpecialChar menuseparator
1169 Column Options
1170 \family default
1171 .
1172 \end_layout
1173
1174 \end_inset
1175
1176
1177 \end_layout
1178
1179 \begin_layout Twocolumn
1180 \begin_inset Argument 2
1181 status open
1182
1183 \begin_layout Plain Layout
1184 This is the left column
1185 \end_layout
1186
1187 \end_inset
1188
1189 This is the right column.
1190 \end_layout
1191
1192 \begin_layout Slide
1193 \begin_inset Argument 1
1194 status open
1195
1196 \begin_layout Plain Layout
1197 method=direct
1198 \end_layout
1199
1200 \end_inset
1201
1202 Example of \SpecialChar LaTeX
1203  source code
1204 \end_layout
1205
1206 \begin_layout Standard
1207 Let's now use the 
1208 \family typewriter
1209 listings
1210 \family default
1211  package in order to typeset some source code.
1212  Here's the 
1213 \family typewriter
1214
1215 \backslash
1216 HelloWorld
1217 \family default
1218  \SpecialChar LaTeX
1219  command:
1220 \end_layout
1221
1222 \begin_layout Standard
1223 \begin_inset listings
1224 lstparams "language={[LaTeX]TeX}"
1225 inline false
1226 status open
1227
1228 \begin_layout Plain Layout
1229
1230
1231 \backslash
1232 newcommand{
1233 \backslash
1234 HelloWorld}{Hello World!}
1235 \end_layout
1236
1237 \end_inset
1238
1239
1240 \end_layout
1241
1242 \begin_layout Standard
1243 Note that this slide uses the 
1244 \family typewriter
1245 method=direct
1246 \family default
1247  option.
1248  This is necessary if you use 
1249 \begin_inset Quotes eld
1250 \end_inset
1251
1252 verbatim
1253 \begin_inset Quotes erd
1254 \end_inset
1255
1256  or 
1257 \begin_inset Quotes eld
1258 \end_inset
1259
1260 fragile
1261 \begin_inset Quotes erd
1262 \end_inset
1263
1264  content (such as listings).
1265  Note, though, that this option does not allow for overlays.
1266 \end_layout
1267
1268 \begin_layout Slide
1269 \begin_inset Argument 1
1270 status open
1271
1272 \begin_layout Plain Layout
1273 method=file
1274 \end_layout
1275
1276 \end_inset
1277
1278 Verbatim material with overlays
1279 \end_layout
1280
1281 \begin_layout Standard
1282 Verbatim content 
1283 \emph on
1284 and
1285 \emph default
1286  overlays are possible with the option 
1287 \family typewriter
1288 method=file
1289 \family default
1290 .
1291  Note that this method is slower than 
1292 \family typewriter
1293 method=direct
1294 \family default
1295 , thus the latter is recommended if you have verbatim content and do not
1296  use overlays.
1297 \end_layout
1298
1299 \begin_layout Pause
1300
1301 \end_layout
1302
1303 \begin_layout Standard
1304 \begin_inset VSpace defskip
1305 \end_inset
1306
1307
1308 \end_layout
1309
1310 \begin_layout Standard
1311 Here's 
1312 \family typewriter
1313 HelloWorld()
1314 \family default
1315  C function:
1316 \end_layout
1317
1318 \begin_layout Standard
1319 \begin_inset listings
1320 lstparams "language=C"
1321 inline false
1322 status open
1323
1324 \begin_layout Plain Layout
1325
1326 void HelloWorld() {
1327 \end_layout
1328
1329 \begin_layout Plain Layout
1330
1331 printf("Hello World!
1332 \backslash
1333 n");
1334 \end_layout
1335
1336 \begin_layout Plain Layout
1337
1338 }
1339 \end_layout
1340
1341 \end_inset
1342
1343
1344 \end_layout
1345
1346 \begin_layout Slide
1347 Floats
1348 \end_layout
1349
1350 \begin_layout Standard
1351 You can use the standard float types 
1352 \emph on
1353 algorithm
1354 \emph default
1355
1356 \emph on
1357 figure
1358 \emph default
1359  and 
1360 \emph on
1361 table
1362 \emph default
1363 :
1364 \end_layout
1365
1366 \begin_layout Standard
1367 \begin_inset Float algorithm
1368 placement H
1369 wide false
1370 sideways false
1371 status open
1372
1373 \begin_layout Plain Layout
1374 \begin_inset Caption Standard
1375
1376 \begin_layout Plain Layout
1377 algorithm float
1378 \end_layout
1379
1380 \end_inset
1381
1382
1383 \end_layout
1384
1385 \end_inset
1386
1387
1388 \end_layout
1389
1390 \begin_layout Standard
1391 \begin_inset Float figure
1392 wide false
1393 sideways false
1394 status open
1395
1396 \begin_layout Plain Layout
1397 \begin_inset Caption Standard
1398
1399 \begin_layout Plain Layout
1400 figure float
1401 \end_layout
1402
1403 \end_inset
1404
1405
1406 \end_layout
1407
1408 \end_inset
1409
1410
1411 \end_layout
1412
1413 \begin_layout Standard
1414 \begin_inset Float table
1415 wide false
1416 sideways false
1417 status open
1418
1419 \begin_layout Plain Layout
1420 \begin_inset Caption Standard
1421
1422 \begin_layout Plain Layout
1423 table float
1424 \end_layout
1425
1426 \end_inset
1427
1428
1429 \end_layout
1430
1431 \end_inset
1432
1433
1434 \end_layout
1435
1436 \begin_layout Slide
1437 The end.
1438 \end_layout
1439
1440 \begin_layout Standard
1441 At the end of the document, you have to put an 
1442 \family typewriter
1443 EndSlide
1444 \family default
1445  style (see the black symbol below into \SpecialChar LyX
1446  window).
1447 \end_layout
1448
1449 \begin_layout Standard
1450 Have fun!
1451 \end_layout
1452
1453 \begin_layout EndSlide
1454
1455 \end_layout
1456
1457 \end_body
1458 \end_document