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