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