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