]> git.lyx.org Git - lyx.git/blob - lib/layouts/beamer.layout
Question environments, from Russ Woodroofe.
[lyx.git] / lib / layouts / beamer.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[beamer,pgf.sty,xcolor.sty]{presentation (beamer)}
3 # Author : Till Tantau <tantau@users.sourceforge.net>
4
5 # $Header: /cvsroot/latex-beamer/latex-beamer/lyx/layouts/beamer.layout,v 1.16 2004/10/07 20:53:07 tantau Exp $
6
7 # Includes
8 Format 11
9 Input stdcounters.inc
10 Input stdinsets.inc
11
12
13 # General textclass parameters
14 Columns            1
15 Sides              1
16 SecNumDepth        2
17 TocDepth           2
18 DefaultStyle       Standard
19 Provides hyperref  1
20
21 DefaultFont
22   Family           Sans
23   Series           Medium
24   Shape            Up
25   Size             Normal
26   Color            None
27 EndFont
28
29
30 # Standard style definition
31 Style Standard
32   Category         MainText
33   Margin           Static
34   LatexType        Paragraph
35   LatexName        dummy
36   ParIndent        MM
37   ParSkip          0.4
38   Align            Left
39   AlignPossible    Block, Left, Right, Center
40   LabelType        No_Label
41 End
42
43 # List section
44 # Itemize style definition
45 Style Itemize
46   Category         List
47   Margin           Static
48   LatexType        Item_Environment
49   LatexName        itemize
50   OptionalArgs     1
51   NextNoIndent     1
52   LeftMargin       MMN
53   LabelSep         xx
54   ItemSep          0.2
55   TopSep           0.7
56   BottomSep        0.7
57   ParSep           0.3
58   Align            Left
59   LabelType        Itemize
60   LabelString      "*"
61 End
62
63 # Enumerate style definition
64 Style Enumerate
65   Category         List
66   Margin           Static
67   LatexType        Item_Environment
68   LatexName        enumerate
69   OptionalArgs     2
70   NextNoIndent     1
71   LeftMargin       MMN
72   LabelSep         xx
73   ParSkip          0.0
74   ItemSep          0.2
75   TopSep           0.7
76   BottomSep        0.7
77   ParSep           0.3
78   Align            Left
79   LabelType        Enumerate
80 End
81
82 # Description style definition
83 Style Description
84   Category         List
85   Margin           First_Dynamic
86   LatexType        Item_environment
87   LatexName        description
88   OptionalArgs     2
89   NextNoIndent     1
90   LeftMargin       MM
91   LabelSep         xx
92   ParSkip          0.4
93   ItemSep          0.2
94   TopSep           0.7
95   BottomSep        0.7
96   ParSep           0.3
97   Align            Left
98   LabelType        Manual
99   LabelString      "MM"
100
101   # label font definition
102   LabelFont 
103     Series        Bold
104   EndFont
105 End
106
107 # Sectioning section
108 # Part style definition
109 Style Part
110   Category         Section
111   Margin           Dynamic
112   LatexType        Command
113   LatexName        part
114   OptionalArgs     1
115   NeedProtect      1
116   NextNoIndent     1
117   Labelsep         xx
118   ParSkip          0.4
119   TopSep           4
120   BottomSep        4
121   ParSep           0.8
122   Align            Center
123   LabelType        Static
124   LabelString      "Part"
125
126   # standard font definition
127   Font 
128     Family         Roman
129     Series         Bold
130     Size           Huge
131   EndFont
132
133   LabelFont
134     Color          Latex
135   EndFont
136 End
137
138 # Section style definition
139 Style Section
140   Category         Section
141   Margin           First_Dynamic
142   LatexType        Command
143   LatexName        lyxframeend{}\section
144   NeedProtect      1
145   NextNoIndent     1
146   LabelSep         xx
147   ParSkip          0.4
148   TopSep           2
149   BottomSep        0.25
150   ParSep           0.7
151   Align            Left
152   LabelType        Counter
153   LabelCounter     section
154   LabelString      "Section \arabic{section}"
155   OptionalArgs     1
156
157   Font 
158     Family         Roman
159     Series         Bold
160     Size           huge
161   EndFont
162
163   LabelFont 
164     Color          latex
165   EndFont
166   LabelStringAppendix "\Alph{section}"
167   TocLevel         1
168 End
169
170 # Section* style definition
171 Style Section*
172   CopyStyle        Section
173   Category         Unnumbered
174   Margin           Static
175   LatexName        lyxframeend{}\section*
176   LabelType        No_Label
177   OptionalArgs     0
178 End
179
180 # Subsection style definition
181 Style Subsection
182   Category         Section
183   Margin           First_Dynamic
184   LatexType        Command
185   LatexName        lyxframeend{}\subsection
186   NeedProtect      1
187   NextNoIndent     1
188   LabelSep         xx
189   ParSkip          0.4
190   TopSep           2
191   BottomSep        0.25
192   ParSep           0.5
193   Align            Left
194   LabelType        Counter
195   LabelCounter     subsection
196   LabelString      "Subsection \arabic{section}.\arabic{subsection}"
197   OptionalArgs     1
198
199   # standard font definition
200   Font 
201     Family         Roman
202     Series         Bold
203     Size           larger
204   EndFont
205
206   LabelFont 
207     Color          latex
208   EndFont
209   LabelStringAppendix "\arabic{section}.\arabic{subsection}"
210   TocLevel 2
211 End
212
213 # Subsection* style definition
214 Style Subsection*
215   CopyStyle        Subsection
216   Category         Unnumbered
217   Margin           Static
218   LatexName        lyxframeend{}\subsection*
219   LabelType        No_Label
220   OptionalArgs     0
221 End
222
223 # Frame control definition
224 Style BeginFrame
225   Category         Frames
226   TocLevel         4
227   KeepEmpty        1
228   LatexType        Command
229   LatexName        lyxframeend{}\lyxframe
230   OptionalArgs     1
231   Margin           First_Dynamic
232   NextNoIndent     1
233   ParSkip          0
234   TopSep           2.5
235   BottomSep        0.5
236   ParSep           0
237   Align            Center
238   LabelType        Static
239   LabelBottomSep   0
240   LeftMargin       M
241   LabelSep         xx
242   LabelString      "Frame"
243
244   Font
245     Series         Bold
246     Size           Largest
247     Color          Blue
248   EndFont
249
250   LabelFont 
251     Family         Roman
252     Color          latex
253   EndFont
254
255   Preamble
256     \makeatletter
257     \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
258     \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
259     \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
260     \def\@@@lyxframe<#1>[{\@ifnextchar<{\@@@@@lyxframe<#1>[}{\@@@@lyxframe<#1>[<*>][}}
261     \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
262     \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
263       \frame<#1>[#2][#3]{\frametitle{#4}#5}}
264     \makeatother
265   EndPreamble
266 End
267
268 Style BeginPlainFrame
269   Category          Frames
270   TocLevel          4
271   KeepEmpty         1
272   LatexType         Command
273   LatexName         lyxframeend{}\lyxplainframe
274   Margin            First_Dynamic
275   NextNoIndent      1
276   ParSkip           0
277   TopSep            2.5
278   BottomSep         0.5
279   ParSep            0
280   Align             Center
281   LabelType         Static
282   LabelBottomSep    0
283   LeftMargin        M
284   LabelSep          xx
285   LabelString       "Frame (no head/foot/sidebars)"
286
287   Font
288     Series          Bold
289     Size            Largest
290     Color           Blue
291   EndFont
292
293   LabelFont 
294     Family          Roman
295     Color           latex
296   EndFont
297
298   Preamble
299     \makeatletter
300     \long\def\lyxplainframe#1{\@lyxplainframe#1\@lyxframestop}%
301     \def\@lyxplainframe{\@ifnextchar<{\@@lyxplainframe}{\@@lyxplainframe<*>}}%
302     \long\def\@@lyxplainframe<#1>#2\@lyxframestop#3\lyxframeend{%
303       \frame<#1>[plain]{\frametitle{#2}#3}}
304     \makeatother
305   EndPreamble
306 End
307
308 Style AgainFrame
309   Category          Frames
310   KeepEmpty         0
311   LatexType         Command
312   LatexName         lyxframeend{}\lyxagainframe
313   OptionalArgs      2
314   Margin            First_Dynamic
315   NextNoIndent      1
316   ParSkip           0
317   TopSep            3
318   BottomSep         3
319   ParSep            0
320   Align             Center
321   LabelType         Static
322   LabelBottomSep    0
323   LeftMargin        M
324   LabelSep          xx
325   LabelString       "Again frame with label"
326
327   Font
328     Color           latex
329   EndFont
330
331   LabelFont 
332     Family          Roman
333     Color           latex
334     Series          Bold
335     Size            Largest
336   EndFont
337
338   Preamble
339     \makeatletter
340     \long\def\lyxagainframe#1{\@lyxagainframe#1\@lyxframestop}%
341     \def\@lyxagainframe{\@ifnextchar<{\@@lyxagainframe}{\@@lyxagainframe<*>}}%
342     \def\@@lyxagainframe<#1>{\@ifnextchar[{\@@@lyxagainframe<#1>}{\@@@lyxagainframe<#1>[]}}
343     \long\def\@@@lyxagainframe<#1>[#2]#3\@lyxframestop{%
344       \againframe<#1>[#2]{#3}}
345     \makeatother
346   EndPreamble
347 End
348
349 Style EndFrame
350   Category          Frames
351   KeepEmpty         1
352   LatexType         Command
353   LatexName         lyxframeend
354   Margin            First_Dynamic
355   ParSkip           0
356   TopSep            0
357   BottomSep         3
358   ParSep            0
359   Align             Center
360   LabelType         Static
361   LabelBottomSep    0
362   LeftMargin        MMMMM
363   LabelString       "________________________________"
364
365   LabelFont 
366     Family          typewriter
367     Series          Medium
368     Size            Normal
369     Color           latex
370   EndFont
371
372   Preamble
373     \def\lyxframeend{} % In case there is a superfluous frame end
374   EndPreamble
375 End
376
377 # Frame decoration section
378 Style FrameSubtitle
379   Category         Frames
380   Margin           Static
381   LatexType        Command
382   LatexName        framesubtitle
383   ParSkip          0.4
384   ItemSep          0
385   TopSep           0
386   BottomSep        1
387   ParSep           1
388   Align            Center
389   LabelType        No_Label
390   OptionalArgs     1
391
392   # standard font definition
393   Font 
394     Series         Bold
395     Color          Blue
396   EndFont
397
398 End
399
400
401 Style Column
402   Category         Columns
403   Margin           Static
404   LatexType        Command
405   LatexName        column
406   ParSkip          0.5
407   TopSep           1
408   BottomSep        1
409   ParSep           0
410   ParIndent        MM
411   Align            Left
412   LabelType        Static
413   LabelSep         xx
414   LabelString      "Start column (increase depth!), width:"
415   OptionalArgs     1
416   LeftMargin       "Start column (increase depth!), width:xx"
417
418   # standard font definition
419   LabelFont 
420     Family         Roman
421     Color          latex
422   EndFont
423 End
424
425
426 Style Columns
427   Category         Columns
428   KeepEmpty        1
429   Margin           Static
430   LatexType        Environment
431   NextNoIndent     0
432   ParIndent        MM
433   Align            Left
434   LabelType        Static
435   LabelSep         xx
436
437   LatexName        columns}%{
438   LabelString      "Columns"
439   LeftMargin       "Columnsxx"
440
441   ParSkip          0.5
442   TopSep           1
443   BottomSep        1
444   ParSep           0
445
446
447   # font & label font definition
448
449   LabelFont 
450     Family         Roman
451     Color          latex
452   EndFont
453 End
454
455 Style ColumnsCenterAligned
456   Category         Columns
457   KeepEmpty        1
458   Margin           Static
459   LatexType        Environment
460   NextNoIndent     0
461   ParIndent        MM
462   Align            left
463   LabelType        Static
464   LabelSep         xx
465
466   LatexName        centercolumns}%{
467   LabelString      "Columns (center aligned)"
468   LeftMargin       "Columns (center aligned)xx"
469
470   ParSkip          0.5
471   TopSep           1
472   BottomSep        1
473   ParSep           0
474
475   Preamble
476   \newenvironment{centercolumns}{\begin{columns}[c]}{\end{columns}}
477   EndPreamble
478   # font & label font definition
479
480   LabelFont 
481     Family         Roman
482     Color          latex
483   EndFont
484 End
485
486 Style ColumnsTopAligned
487   Category         Columns
488   KeepEmpty        1
489   Margin           Static
490   LatexType        Environment
491   NextNoIndent     0
492   ParIndent        MM
493   Align            left
494   LabelType        Static
495   LabelSep         xx
496
497   LatexName        topcolumns}%{
498   LabelString      "Columns (top aligned)"
499   LeftMargin       "Columns (top aligned)xx"
500
501   ParSkip          0.5
502   TopSep           1
503   BottomSep        1
504   ParSep           0
505
506   Preamble
507   \newenvironment{topcolumns}{\begin{columns}[t]}{\end{columns}}
508   EndPreamble
509   # font & label font definition
510
511   LabelFont 
512     Family         Roman
513     Color          latex
514   EndFont
515 End
516
517 # Frame progression section
518 Style Pause
519   Category          Overlays
520   KeepEmpty         1
521   LatexType         Command
522   LatexName         pause
523   Margin            First_Dynamic
524   OptionalArgs      1
525   NextNoIndent      1
526   ParSkip           0
527   TopSep            0
528   BottomSep         0.25
529   ParSep            0
530   Align             Center
531   LabelType         Static
532   LabelBottomSep    0
533   LeftMargin        MMMMM
534   LabelString       "_ _ _ _ _ _ _ _ _ _ _ _ _ _"
535
536   LabelFont 
537     Family          typewriter
538     Series          Medium
539     Size            Normal
540     Color           latex
541   EndFont
542 End
543
544 Style Overprint
545   Category         Overlays
546   Margin           First_Dynamic
547   LatexType        Environment
548   NextNoIndent     0
549   ParIndent        MM
550   Align            Left
551   LabelType        Static
552   LabelSep         xx
553
554   LatexName        overprint
555   LabelString      "Overprint"
556
557   ParSkip          0.5
558   TopSep           1
559   BottomSep        1
560   ParSep           0
561   KeepEmpty        1
562
563   # font & label font definition
564
565   LabelFont 
566     Family         Roman
567     Color          latex
568   EndFont
569 End
570
571 Style OverlayArea
572   Category         Overlays
573   Margin           First_Dynamic
574   LatexType        Environment
575   NextNoIndent     0
576   ParIndent        MM
577   Align            Left
578   LabelType        Static
579   LabelSep         xx
580
581   LatexName        overlayarea
582   LabelString      "Overlayarea"
583
584   ParSkip          0.5
585   TopSep           1
586   BottomSep        1
587   ParSep           0
588
589   # font & label font definition
590
591   LabelFont 
592     Family         Roman
593     Color          latex
594   EndFont
595 End
596
597 Style Uncover
598   Category         Overlays
599   Margin           First_Dynamic
600   LatexType        Environment
601   NextNoIndent     0
602   ParIndent        MM
603   Align            Left
604   LabelType        Static
605
606   LatexName        uncoverenv}%{
607   LabelSep         xx
608   LabelString      "Uncovered on slides"
609
610   ParSkip          0.5
611   TopSep           1
612   BottomSep        1
613   ParSep           0
614
615   # font & label font definition
616
617   LabelFont 
618     Family         Roman
619     Color          Latex
620   EndFont
621 End
622
623 Style Only
624   Category         Overlays
625   Margin           First_Dynamic
626   LatexType        Environment
627   NextNoIndent     0
628   ParIndent        MM
629   Align            Left
630   LabelType        Static
631
632   LatexName        onlyenv}%{
633   LabelSep         xx
634   LabelString      "Only on slides"
635
636   ParSkip          0.5
637   TopSep           1
638   BottomSep        1
639   ParSep           0
640
641   # font & label font definition
642
643   LabelFont
644     Family         Roman
645     Color          Latex
646   EndFont
647 End
648
649 # Blocks section
650 Style Block
651   Category         Blocks
652   Margin           First_Dynamic
653   LatexType        Environment
654   NextNoIndent     0
655   ParIndent        MM
656   Align            Left
657   LabelType        Static
658   LabelSep         xx
659
660   LatexName        block
661   LabelString      "Block ( ERT[{title}] body ):"
662
663   ParSkip          0.5
664   TopSep           1
665   BottomSep        1
666   ParSep           0
667
668   # font & label font definition
669
670   LabelFont
671     Family         Roman
672     Color          latex
673   EndFont
674 End
675
676 Style ExampleBlock
677   Category         Blocks
678   Margin           First_Dynamic
679   LatexType        Environment
680   NextNoIndent     0
681   ParIndent        MM
682   Align            Left
683   LabelType        Static
684   LabelSep         xx
685
686   LatexName        exampleblock
687   LabelString      "Block ( ERT[{title}] example text ):"
688
689   ParSkip          0.5
690   TopSep           1
691   BottomSep        1
692   ParSep           0
693
694   # font & label font definition
695
696   Font
697     Color          green
698   EndFont
699
700   LabelFont 
701     Family         Roman
702     Color          latex
703   EndFont
704 End
705
706 Style AlertBlock
707   Category         Blocks
708   Margin           First_Dynamic
709   LatexType        Environment
710   NextNoIndent     0
711   ParIndent        MM
712   Align            Left
713   LabelType        Static
714   LabelSep         xx
715
716   LatexName        alertblock
717   LabelString      "Block ( ERT[{title}] alert text ):"
718
719   ParSkip          0.5
720   TopSep           1
721   BottomSep        1
722   ParSep           0
723
724   # font & label font definition
725
726   Font
727     Color          red
728   EndFont
729
730   LabelFont 
731     Family         Roman
732     Color          latex
733   EndFont
734 End
735
736 # Title slide data section
737 # Title style definition
738 Style Title
739   Category         Titling
740   Margin           Static
741   LatexType        Command
742   InTitle          1
743   LatexName        title
744   ParSkip          0.4
745   ItemSep          0
746   TopSep           0
747   BottomSep        1
748   ParSep           1
749   Align            Center
750   LabelType        No_Label
751   OptionalArgs     1
752
753   # standard font definition
754   Font 
755     Size           Huge
756     Series         Bold
757     Color          Blue
758   EndFont
759
760 End
761
762 Style Title_(Plain_Frame)
763   CopyStyle        Title
764   Preamble
765      % plain title style, override default
766      \renewcommand\makebeamertitle{\frame[plain]{\maketitle}}%
767   EndPreamble
768 End
769
770 Style Subtitle
771   Category         Titling
772   Margin           Static
773   LatexType        Command
774   InTitle          1
775   LatexName        subtitle
776   ParSkip          0.4
777   ItemSep          0
778   TopSep           0
779   BottomSep        1
780   ParSep           1
781   Align            Center
782   LabelType        No_Label
783   OptionalArgs     1
784
785   # standard font definition
786   Font 
787     Size           Large
788     Series         Bold
789     Color          Blue
790   EndFont
791
792 End
793
794 # Author style definition
795 Style Author
796   Category         Titling
797   Margin           Static
798   LatexType        Command
799   InTitle          1
800   LatexName        author
801   ParSkip          0.4
802   TopSep           1.3
803   BottomSep        0.7
804   ParSep           0.7
805   Align            Center
806   LabelType        No_Label
807   OptionalArgs     1
808
809   # standard font definition
810   Font 
811     Size           Largest
812     Color          Blue
813   EndFont
814
815 End
816
817 Style Institute
818   Category         Titling
819   Margin           Dynamic
820   LatexType        Command
821   InTitle          1
822   LatexName        institute
823   ParSkip          0.4
824   TopSep           0.9
825   BottomSep        0.5
826   ParSep           1
827   Align            Center
828   LabelType        No_Label
829   OptionalArgs     1
830
831   # standard font definition
832   Font 
833     Size           Large
834     Color          Blue
835   EndFont
836 End
837
838 InsetLayout InstituteMark
839   LyxType          custom
840   LatexType        command
841   LatexName        inst
842   LabelString      "Institute mark"
843   Font
844     Color          foreground
845     Size           Small
846     Family         Roman
847     Shape          Up
848     Series         Medium
849     Misc           No_Emph
850     Misc           No_Noun
851     Misc           No_Bar
852   EndFont
853   LabelFont
854     Color          blue
855     Size           Small
856   EndFont
857 End
858
859 # Date style definition
860 Style Date
861   Category         Titling
862   Margin           Dynamic
863   LatexType        Command
864   InTitle          1
865   LatexName        date
866   ParSkip          0.4
867   TopSep           0.9
868   BottomSep        0.5
869   ParSep           1
870   Align            Center
871   LabelType        No_Label
872   OptionalArgs     1
873
874   # standard font definition
875   Font 
876     Size           Largest
877     Color          Blue
878   EndFont
879 End
880
881 # Titles & bibliography section
882 # Bibliography style definition
883 Style Bibliography
884   Category         BackMatter
885   Margin           First_Dynamic
886   LatexType        Bib_Environment
887   LatexName        thebibliography
888   NextNoIndent     1
889   LeftMargin       MM
890   ParSkip          0.4
891   ItemSep          0
892   TopSep           0.7
893   BottomSep        0.7
894   ParSep           0.5
895   Align            Left
896   LabelType        Bibliography
897   LabelString      "References"
898   LabelBottomSep   0.7
899
900   # label font definition
901   LabelFont 
902     Series         Bold
903     Size           Larger
904   EndFont
905 End
906
907 Style Quotation
908   Category         MainText
909   Margin           Static
910   LatexType        Environment
911   LatexName        quotation}%{
912   NextNoIndent     1
913   LeftMargin       MMM
914   RightMargin      MMM
915   ParIndent        MM
916   ParSkip          0
917   ItemSep          0
918   TopSep           0.5
919   BottomSep        0.5
920   ParSep           0
921   Align            Block
922   AlignPossible    Block, Left, Right, Center
923 End
924
925
926 Style Quote
927   Category         MainText
928   Margin           Static
929   LatexType        Environment
930   LatexName        quote}%{
931   NextNoIndent     1
932   LeftMargin       MMM
933   RightMargin      MMM
934   TopSep           0.5
935   ParSep           0.5
936   BottomSep        0.5
937   Align            Block
938   AlignPossible    Block, Left, Right, Center
939   LabelType        No_Label
940 End
941
942
943 Style Verse
944   # LaTeX type is first dynamic because of LaTeX implementation.
945   # In LyX this does not make sense.
946   Category         MainText
947   LatexType        Environment
948   LatexName        verse}%{
949   Margin           First_Dynamic
950   NextNoIndent     1
951   LeftMargin       MMMM
952   LabelIndent      MMMM
953   ParSkip          0.4
954   TopSep           0.7
955   BottomSep        0.7
956   ParSep           0.5
957   Align            Block
958   AlignPossible    Block, Left
959   LabelType        No_Label
960 End
961
962
963 Style TitleGraphic
964   Category         Titling
965   Margin           Static
966   LatexType        Command
967   InTitle          1
968   LatexName        titlegraphic
969   ParSkip          0.4
970   ItemSep          0
971   TopSep           0
972   BottomSep        1
973   ParSep           1
974   Align            Center
975   LabelType        No_Label
976
977   # standard font definition
978   Font 
979     Size           Huge
980     Series         Bold
981     Color          Blue
982   EndFont
983 End
984
985
986 # Theorems and such section
987 Style Corollary
988    Category        Theorems
989    Margin          First_Dynamic
990    LatexType       Environment
991    NextNoIndent    0
992    ParIndent       MM
993    Align           Left
994    LabelType       Static
995    LabelSep        xx
996
997    LatexName       corollary}%{
998    LabelString     "Corollary."
999  
1000    ParSkip         0.5
1001    TopSep          1
1002    BottomSep       1
1003    ParSep          0
1004    KeepEmpty       1
1005  
1006    # font & label font definition
1007  
1008    LabelFont
1009      Series        Bold
1010      Color         Blue
1011      Size          Large
1012    EndFont
1013 End
1014
1015 Style Definition
1016   CopyStyle        Corollary
1017   LatexName        definition}%{
1018   LabelString      "Definition."
1019 End
1020
1021 Style Definitions
1022   CopyStyle        Corollary
1023   LatexName        definitions}%{
1024   LabelString      "Definitions."
1025 End
1026
1027 Style Example
1028   CopyStyle        Corollary
1029   LatexName        example}%{
1030   LabelString      "Example."
1031
1032   LabelFont
1033     Series         Bold
1034     Color          Green
1035   EndFont
1036 End
1037
1038 Style Examples
1039   CopyStyle        Corollary
1040   LatexName        examples}%{
1041   LabelString      "Examples."
1042 End
1043
1044
1045 Style Fact
1046   CopyStyle        Corollary
1047   LatexName        fact}%{
1048   LabelString      "Fact."
1049 End
1050
1051 Style Proof
1052   CopyStyle        Corollary
1053   LatexName        proof}%{
1054   LabelString      "Proof."
1055 End
1056
1057 Style Theorem
1058   CopyStyle        Corollary
1059   LatexName        theorem}%{
1060   LabelString      "Theorem."
1061 End
1062
1063 # Misc. section
1064 # Separator style definition
1065 Style Separator
1066   Category         MainText
1067   LatexType        Paragraph
1068   LatexName        dummy
1069   ParIndent        MM
1070   ParSkip          0.4
1071   Align            Left
1072   AlignPossible    Block, Left, Right, Center
1073   Margin           First_Dynamic
1074   TopSep           0
1075   BottomSep        0
1076   ParSep           0
1077   LabelType        Static
1078   LabelBottomSep   0
1079   LabelString      "___"
1080   KeepEmpty        1
1081
1082   LabelFont 
1083     Series         Medium
1084     Size           Normal
1085     Color          latex
1086   EndFont
1087 End
1088  
1089 Style LyX-Code
1090   Category              MainText
1091   Margin           Static
1092   LatexType        Environment
1093   LatexName        lyxcode
1094   NextNoIndent     1
1095   LeftMargin       MMM
1096   RightMargin      MMM
1097   TopSep           0.5
1098   BottomSep        0.5
1099   Align            Left
1100   AlignPossible    Block, Left, Right, Center
1101   LabelType        No_Label
1102   FreeSpacing      1
1103
1104   # define the environment lyxcode
1105   Preamble
1106   \newenvironment{lyxcode}
1107     {\par\begin{list}{}{
1108       \setlength{\rightmargin}{\leftmargin}
1109       \setlength{\listparindent}{0pt}% needed for AMS classes
1110       \raggedright
1111       \setlength{\itemsep}{0pt}
1112       \setlength{\parsep}{0pt}
1113       \normalfont\ttfamily}%
1114      \def\{{\char`\{}
1115      \def\}{\char`\}}
1116      \def\textasciitilde{\char`\~}
1117      \item[]}
1118     {\end{list}}
1119   EndPreamble
1120
1121   # standard font definition
1122   Font 
1123     Family         Typewriter
1124   EndFont
1125 End
1126  
1127 Style NoteItem
1128   Category         MainText
1129   Margin           Static
1130   LatexType        Command
1131   LatexName        note[item]
1132   ParSkip          0.5
1133   TopSep           1
1134   BottomSep        1
1135   ParSep           0
1136   Align            Left
1137   LabelType        Static
1138   LabelSep         xx
1139   LabelString      "Note:"
1140   OptionalArgs     1
1141   LeftMargin       "Note:xx"
1142  
1143   # standard font definition
1144   LabelFont 
1145     Family         Roman
1146     Color          latex
1147   EndFont
1148 End
1149  
1150
1151 # Input lyxmacros.inc
1152
1153 # Charstyles:
1154
1155 InsetLayout CharStyle:Alert
1156   LyXType charstyle
1157   LabelString Alert
1158   LatexType        command
1159   LatexName        alert
1160   Font
1161     Color          red
1162   EndFont
1163 End
1164
1165
1166 InsetLayout CharStyle:Structure
1167   LyXType charstyle
1168   LabelString Structure
1169   LatexType        command
1170   LatexName        structure
1171   Font
1172     Color          blue
1173   EndFont
1174 End
1175
1176
1177 InsetLayout Custom:ArticleMode
1178    LyXType      custom
1179    LatexName    mode<article>
1180    LatexType    command
1181    Decoration   classic
1182    LabelString  Article
1183    MultiPar     true
1184 End
1185
1186
1187 InsetLayout Custom:PresentationMode
1188    LyXType      custom
1189    LatexName    mode<presentation>
1190    LatexType    command
1191    Decoration   classic
1192    LabelString  Presentation
1193    MultiPar     true
1194 End
1195
1196
1197 Float
1198   Type             table
1199   GuiName          Table
1200   Placement        tbp
1201   Extension        lot
1202   NumberWithin     none
1203   Style            plain
1204   ListName         "List of Tables"
1205   LaTeXBuiltin     true
1206 End
1207
1208
1209 Float
1210   Type             figure
1211   GuiName          Figure
1212   Placement        tbp
1213   Extension        lof
1214   NumberWithin     none
1215   Style            plain
1216   ListName         "List of Figures"
1217   LaTeXBuiltin     true
1218 End
1219
1220
1221 # to give users the choice of a title frame with and without
1222 # head-/footline, we define our own maketitle command
1223 TitleLaTeXName makebeamertitle
1224
1225 Preamble
1226   % this default might be overridden by plain title style
1227   \newcommand\makebeamertitle{\frame{\maketitle}}%
1228   \AtBeginDocument{
1229     \let\origtableofcontents=\tableofcontents
1230     \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
1231     \def\gobbletableofcontents#1{\origtableofcontents}
1232   }
1233 EndPreamble
1234