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