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