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