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