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