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