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