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