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