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