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