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