]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/beamer.layout
IEEEtran-CompSoc.layout: use the new NoInsetLayout tag
[lyx.git] / lib / layouts / beamer.layout
index b1ffdaa8324702b7cd0dfff4d6b3eeb7e667ba01..a4644f3ae4e1eb6ac0031e7b780cf060d9c434f8 100644 (file)
@@ -6,11 +6,7 @@
 #   Richard Heck <rgheck@lyx.org>, Martin Vermeer <martin.vermeer@hut.fi> and probably others.
 
 
-Format 41
-
-# Beamer does not work with enumitem.
-# See bug #7047.
-ExcludesModule enumitem
+Format 44
 
 #
 # GLOBAL SETTINGS
@@ -20,6 +16,10 @@ ExcludesModule enumitem
 Input stdcounters.inc
 Input stdinsets.inc
 
+# Beamer does not work with enumitem.
+# See bug #7047.
+ExcludesModule enumitem
+
 # General textclass parameters
 Columns            1
 Sides              1
@@ -93,7 +93,8 @@ Style Itemize
     Tooltip       "A customized item string"
   EndArgument
   Argument item:2
-    LabelString   "Item Overlay Specifications"
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
@@ -129,7 +130,8 @@ Style Enumerate
     Tooltip       "A customized item string"
   EndArgument
   Argument item:2
-    LabelString   "Item Overlay Specifications"
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
@@ -163,7 +165,8 @@ Style Description
     Tooltip        "The longest label in this list (to determine the indendation width)"
   EndArgument
   Argument item:1
-    LabelString   "Item Overlay Specifications"
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
@@ -189,12 +192,13 @@ End
 #
 
 Style Part
-  Category         Section
+  Category         Sectioning
   Margin           Dynamic
   LatexType        Command
   LatexName        part
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -226,10 +230,10 @@ Style Part
 End
 
 Style Section
-  Category         Section
+  Category         Sectioning
   Margin           First_Dynamic
   LatexType        Command
-  LatexName        lyxframeend{}\section
+  LatexName        section
   NeedProtect      1
   NextNoIndent     1
   LabelSep         xx
@@ -238,12 +242,13 @@ Style Section
   BottomSep        0.25
   ParSep           0.7
   Align            Left
-  LabelType        Counter
+  LabelType        Static
   LabelCounter     section
   LabelString      "Section \arabic{section}"
   RefPrefix        sec
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -268,11 +273,12 @@ Style Section*
   CopyStyle        Section
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\section
+  LatexName        section
   LabelType        No_Label
   ResetArgs        1
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -281,10 +287,10 @@ Style Section*
 End
 
 Style Subsection
-  Category         Section
+  Category         Sectioning
   Margin           First_Dynamic
   LatexType        Command
-  LatexName        lyxframeend{}\subsection
+  LatexName        subsection
   NeedProtect      1
   NextNoIndent     1
   LabelSep         xx
@@ -293,12 +299,13 @@ Style Subsection
   BottomSep        0.25
   ParSep           0.5
   Align            Left
-  LabelType        Counter
+  LabelType        Static
   LabelCounter     subsection
   LabelString      "Subsection \arabic{section}.\arabic{subsection}"
   RefPrefix        sub
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -323,11 +330,12 @@ Style Subsection*
   CopyStyle        Subsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsection
+  LatexName        subsection
   LabelType        No_Label
   ResetArgs        1
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -336,10 +344,10 @@ Style Subsection*
 End
 
 Style Subsubsection
-  Category         Section
+  Category         Sectioning
   Margin           First_Dynamic
   LatexType        Command
-  LatexName        lyxframeend{}\subsubsection
+  LatexName        subsubsection
   NeedProtect      1
   NextNoIndent     1
   LabelSep         xx
@@ -348,12 +356,13 @@ Style Subsubsection
   BottomSep        0.25
   ParSep           0.5
   Align            Left
-  LabelType        Counter
+  LabelType        Static
   LabelCounter     subsubsection
   LabelString      "Subsubsection \arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
   RefPrefix        sub
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -378,11 +387,12 @@ Style Subsubsection*
   CopyStyle        Subsubsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsubsection
+  LatexName        subsubsection
   LabelType        No_Label
   ResetArgs        1
   Argument 1
-    LabelString    "Mode Specification|S"
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
@@ -395,90 +405,89 @@ End
 # FRAMES
 #
 
-Style BeginFrame
+Style Frame
   Category         Frames
+  Margin           Dynamic
+  LatexType        Environment
+  LatexName        frame
+  LabelString      "Frame"  
   TocLevel         4
   KeepEmpty        1
-  LatexType        Command
-  LatexName        lyxframeend{}\lyxframe
-  Argument 1
-    LabelString    "Frame Options"
-    Tooltip        "Frame options (see beamer manual)"
-  EndArgument
-  Margin           First_Dynamic
   NextNoIndent     1
-  ParSkip          0
-  TopSep           2.5
-  BottomSep        0.5
-  ParSep           0
-  Align            Center
+  Align            Left
   LabelType        Static
-  LabelBottomSep   0
-  LeftMargin       M
   LabelSep         xx
-  LabelString      "Frame"
-  Font
-    Series         Bold
-    Size           Largest
-    Color          Blue
-  EndFont
-  LabelFont 
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  LabelFont
+    Size           largest
     Family         Roman
     Color          latex
   EndFont
-  Preamble
-    \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
-    \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
-    \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
-    \def\@@@lyxframe<#1>[{\@ifnextchar<{\@@@@@lyxframe<#1>[}{\@@@@lyxframe<#1>[<*>][}}
-    \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
-    \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
-      \frame<#1>[#2][#3]{\frametitle{#4}#5}}
-  EndPreamble
+  Argument 1
+    LabelString     "Action"
+    MenuString      "Overlay Specifications|S"
+    Tooltip         "Overlay specifications for this frame"
+    LeftDelim       <
+    RightDelim      >
+  EndArgument
+  Argument 2
+    LabelString     "Default Overlay Specifications"
+    Tooltip         "Default overlay specifications within this frame"
+    LeftDelim       [<
+    RightDelim      >]
+  EndArgument
+  Argument 3
+    MenuString      "Frame Options"
+    LabelString     "Options"
+    Tooltip         "Frame options (see beamer manual)"
+  EndArgument
+  Argument 4
+    LabelString    "Frame Title"
+    Tooltip        "Enter the frame title here"
+    LeftDelim      {
+    RightDelim     }
+    Decoration     conglomerate
+    Font
+      Color        blue
+      Size         largest
+    EndFont
+    AutoInsert     1
+  EndArgument
 End
 
-Style BeginPlainFrame
-  Category          Frames
-  TocLevel          4
-  KeepEmpty         1
-  LatexType         Command
-  LatexName         lyxframeend{}\lyxplainframe
-  Margin            First_Dynamic
-  NextNoIndent      1
-  ParSkip           0
-  TopSep            2.5
-  BottomSep         0.5
-  ParSep            0
-  Align             Center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        M
-  LabelSep          xx
-  LabelString       "Frame (no head/foot/sidebars)"
-  Font
-    Series          Bold
-    Size            Largest
-    Color           Blue
-  EndFont
-  LabelFont 
-    Family          Roman
-    Color           latex
-  EndFont
-  Preamble
-    \long\def\lyxplainframe#1{\@lyxplainframe#1\@lyxframestop}%
-    \def\@lyxplainframe{\@ifnextchar<{\@@lyxplainframe}{\@@lyxplainframe<*>}}%
-    \long\def\@@lyxplainframe<#1>#2\@lyxframestop#3\lyxframeend{%
-      \frame<#1>[plain]{\frametitle{#2}#3}}
-  EndPreamble
+Style PlainFrame
+  CopyStyle         Frame
+  LabelString       "Frame (plain)"
+  Argument 3
+    MenuString      "Frame Options"
+    LabelString     "Options"
+    Tooltip         "Frame options (see beamer manual)"
+    PresetArg       "plain"
+  EndArgument
+End
+
+Style FragileFrame
+  CopyStyle         Frame
+  LabelString       "Frame (fragile)"
+  Argument 3
+    MenuString      "Frame Options"
+    LabelString     "Options"
+    Tooltip         "Frame options (see beamer manual)"
+    PresetArg       "fragile"
+  EndArgument
 End
 
 Style AgainFrame
   Category          Frames
   KeepEmpty         0
   LatexType         Command
-  LatexName         lyxframeend{}\againframe
+  LatexName         againframe
   Argument 1
-    LabelString     "Overlay Specifications|S"
+    LabelString     "Slide"
+    MenuString      "Overlay Specifications|S"
     Tooltip         "Overlay specifications for this frame"
     LeftDelim       <
     RightDelim      >
@@ -490,7 +499,8 @@ Style AgainFrame
     RightDelim      >]
   EndArgument
   Argument 3
-    LabelString     "Frame Options"
+    MenuString      "Frame Options"
+    LabelString     "Options"
     Tooltip         "Frame options (see beamer manual)"
   EndArgument
   Margin            First_Dynamic
@@ -499,7 +509,6 @@ Style AgainFrame
   TopSep            3
   BottomSep         3
   ParSep            0
-  Align             Center
   LabelType         Static
   LabelBottomSep    0
   LeftMargin        M
@@ -511,35 +520,37 @@ Style AgainFrame
   LabelFont 
     Family          Roman
     Color           latex
-    Series          Bold
     Size            Largest
   EndFont
 End
 
-Style EndFrame
-  Category          Frames
-  KeepEmpty         1
-  LatexType         Command
-  LatexName         lyxframeend
-  Margin            First_Dynamic
-  ParSkip           0
-  TopSep            0
-  BottomSep         3
-  ParSep            0
-  Align             Center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        MMMMM
-  LabelString       "________________________________"
-  LabelFont 
-    Family          typewriter
-    Series          Medium
-    Size            Normal
-    Color           latex
+Style FrameTitle
+  Category         Frames
+  Margin           Static
+  LatexType        Command
+  LatexName        frametitle
+  ParSkip          0.4
+  ItemSep          0
+  TopSep           0
+  BottomSep        1
+  ParSep           1
+  Align            Block
+  LabelType        No_Label
+  Font 
+    Color          Blue
+    Size           Largest
   EndFont
-  Preamble
-    \def\lyxframeend{} % In case there is a superfluous frame end
-  EndPreamble
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Short Frame Title|S"
+    Tooltip        "A short form of the frame title used in some themes"
+  EndArgument
 End
 
 Style FrameSubtitle
@@ -552,14 +563,14 @@ Style FrameSubtitle
   TopSep           0
   BottomSep        1
   ParSep           1
-  Align            Center
+  Align            Block
   LabelType        No_Label
   Font 
-    Series         Bold
     Color          Blue
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -586,7 +597,8 @@ Style Column
   LabelSep         xx
   LabelString      "Start column (increase depth!), width:"
   Argument 1
-    LabelString    "Column Options"
+    MenuString     "Column Options"
+    LabelString    "Options"
     Tooltip        "Column options (see beamer manual)"
   EndArgument
   LeftMargin       "Start column (increase depth!), width:xx"
@@ -674,28 +686,37 @@ End
 
 Style Overprint
   Category         Overlays
-  Margin           First_Dynamic
-  LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
+  Margin           Static
+  LatexType        Item_Environment
+  LatexName        overprint
+  ItemCommand      onslide
+  Argument 1
+    MenuString     "Overprint Area Width"
+    LabelString    "Width"
+    Tooltip        "The width of the overprint area (default: text width)"
+  EndArgument
+  Argument item:1
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
+    Tooltip       "Overlay specifications for this item"
+    LeftDelim      <
+    RightDelim     >
+    AutoInsert     1
+  EndArgument
+  NextNoIndent     1
+  LeftMargin       MMMMMMMMN
+  LabelSep         xx
+  ItemSep          0.2
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.3
   Align            Left
   LabelType        Static
-  LabelSep         xx
-  LatexName        overprint
   LabelString      "Overprint"
-  ParSkip          0.5
-  TopSep           1
-  BottomSep        1
-  ParSep           0
-  KeepEmpty        1
   LabelFont 
     Family         Roman
     Color          latex
   EndFont
-  Argument 1
-    LabelString    "Overprint Area Width"
-    Tooltip        "The width of the overprint area (default: text width)"
-  EndArgument
 End
 
 Style OverlayArea
@@ -723,7 +744,8 @@ Style OverlayArea
     Mandatory      1
   EndArgument
   Argument 2
-    LabelString    "Overlay Area Height"
+    MenuString     "Overlay Area Height"
+    LabelString    "Height"
     Tooltip        "The height of the overlay area"
     Mandatory      1
   EndArgument
@@ -749,7 +771,8 @@ Style Uncover
     Color          Latex
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -776,7 +799,8 @@ Style Only
     Color          Latex
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -793,11 +817,12 @@ Style Block
   Margin           Dynamic
   LatexType        Environment
   NextNoIndent     1
+  KeepEmpty        1
   Align            Left
   LabelType        Static
   LabelSep         xx
   LatexName        block
-  LabelString      "Block:"  
+  LabelString      "Block:"
   ParSkip          0.5
   TopSep           1
   BottomSep        1
@@ -807,7 +832,8 @@ Style Block
     Color          latex
   EndFont
   Argument 1
-    LabelString    "Action Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specification|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -821,6 +847,7 @@ Style Block
       Color        blue
       Size         large
     EndFont
+    AutoInsert     1
   EndArgument
 End
 
@@ -1059,7 +1086,8 @@ Style Quotation
   Align            Block
   AlignPossible    Block, Left, Right, Center
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1081,7 +1109,8 @@ Style Quote
   AlignPossible    Block, Left, Right, Center
   LabelType        No_Label
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1106,7 +1135,8 @@ Style Verse
   AlignPossible    Block, Left
   LabelType        No_Label
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1119,7 +1149,7 @@ End
 #
 
 Style Corollary
-   Category        Theorems
+   Category        Reasoning
    Margin          First_Dynamic
    LatexType       Environment
    NextNoIndent    0
@@ -1140,7 +1170,8 @@ Style Corollary
      Size          Large
    EndFont
   Argument 1
-    LabelString    "Action Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1279,7 +1310,8 @@ Style NoteItem
     Color          latex
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1291,16 +1323,35 @@ End
 # CHARSTYLES
 #
 
+
+InsetLayout Flex:Bold
+  LyXType          charstyle
+  LabelString      Bold
+  LatexType        command
+  LatexName        textbf
+  Font
+    Series         bold
+  EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
+
 InsetLayout Flex:Emphasize
   LyXType          charstyle
-  LabelString      Emphasize
+  LabelString      Emph.
   LatexType        command
   LatexName        emph
   Font
     Shape          italic
   EndFont
   Argument 1
-    LabelString    "Action Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1316,7 +1367,8 @@ InsetLayout Flex:Alert
     Color          red
   EndFont
   Argument 1
-    LabelString    "Action Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1332,7 +1384,8 @@ InsetLayout Flex:Structure
     Color          blue
   EndFont
   Argument 1
-    LabelString    "Action Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1348,10 +1401,12 @@ InsetLayout Flex:Only
     Color          red
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    AutoInsert     1
   EndArgument
 End
 
@@ -1364,10 +1419,12 @@ InsetLayout Flex:Uncover
     Color          red
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    AutoInsert     1
   EndArgument
 End
 
@@ -1380,10 +1437,12 @@ InsetLayout Flex:Visible
     Color          red
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    AutoInsert     1
   EndArgument
 End
 
@@ -1396,10 +1455,12 @@ InsetLayout Flex:Invisible
     Color          red
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    AutoInsert     1
   EndArgument
 End
 
@@ -1412,7 +1473,8 @@ InsetLayout Flex:Alternative
     Color          red
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1434,7 +1496,8 @@ InsetLayout Flex:Beamer_Note
     Color          blue
   EndFont
   Argument 1
-    LabelString    "Overlay Specification|S"
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
@@ -1498,3 +1561,158 @@ End
 
 
 Input theorems-refprefix.inc
+
+
+##########################################
+# OBSOLETE STUFF
+# Everything below should be removed
+# (but this is a file format change)
+#
+#  TODO:
+#   * conversion of old frame
+#     and plain frame to new layout
+##########################################
+
+#
+# Backwards compatible definitions
+#
+
+AddToPreamble
+\providecommand\lyxframeend{}
+EndPreamble
+
+IfStyle Section
+  LatexName        lyxframeend{}\section
+End
+
+IfStyle Section*
+  LatexName        lyxframeend{}\section
+End
+
+IfStyle Subsection
+  LatexName        lyxframeend{}\subsection
+End
+
+IfStyle Subsection*
+  LatexName        lyxframeend{}\subsection
+End
+
+IfStyle Subsubsection
+  LatexName        lyxframeend{}\subsubsection
+End
+
+IfStyle Subsubsection*
+  LatexName        lyxframeend{}\subsubsection
+End
+
+IfStyle AgainFrame
+  LatexName        lyxframeend{}\againframe
+End
+
+
+#
+# Deprecated Styles
+#
+
+Style BeginFrame
+  Category         "Deprecated Styles"
+  TocLevel         4
+  KeepEmpty        1
+  LatexType        Command
+  LatexName        lyxframeend{}\lyxframe
+  Argument 1
+    LabelString    "Frame Options"
+    Tooltip        "Frame options (see beamer manual)"
+  EndArgument
+  Margin           First_Dynamic
+  NextNoIndent     1
+  ParSkip          0
+  TopSep           2.5
+  BottomSep        0.5
+  ParSep           0
+  Align            Center
+  LabelType        Static
+  LabelBottomSep   0
+  LeftMargin       M
+  LabelSep         xx
+  LabelString      "Frame"
+  Font
+    Series         Bold
+    Size           Largest
+    Color          Blue
+  EndFont
+  LabelFont 
+    Family         Roman
+    Color          latex
+  EndFont
+  Preamble
+    \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
+    \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
+    \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
+    \def\@@@lyxframe<#1>[{\@ifnextchar<{\@@@@@lyxframe<#1>[}{\@@@@lyxframe<#1>[<*>][}}
+    \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
+    \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
+      \frame<#1>[#2][#3]{\frametitle{#4}#5}}
+  EndPreamble
+End
+
+Style BeginPlainFrame
+  Category          "Deprecated Styles"
+  TocLevel          4
+  KeepEmpty         1
+  LatexType         Command
+  LatexName         lyxframeend{}\lyxplainframe
+  Margin            First_Dynamic
+  NextNoIndent      1
+  ParSkip           0
+  TopSep            2.5
+  BottomSep         0.5
+  ParSep            0
+  Align             Center
+  LabelType         Static
+  LabelBottomSep    0
+  LeftMargin        M
+  LabelSep          xx
+  LabelString       "Frame (no head/foot/sidebars)"
+  Font
+    Series          Bold
+    Size            Largest
+    Color           Blue
+  EndFont
+  LabelFont 
+    Family          Roman
+    Color           latex
+  EndFont
+  Preamble
+    \long\def\lyxplainframe#1{\@lyxplainframe#1\@lyxframestop}%
+    \def\@lyxplainframe{\@ifnextchar<{\@@lyxplainframe}{\@@lyxplainframe<*>}}%
+    \long\def\@@lyxplainframe<#1>#2\@lyxframestop#3\lyxframeend{%
+      \frame<#1>[plain]{\frametitle{#2}#3}}
+  EndPreamble
+End
+
+Style EndFrame
+  Category          "Deprecated Styles"
+  KeepEmpty         1
+  LatexType         Command
+  LatexName         lyxframeend
+  Margin            First_Dynamic
+  ParSkip           0
+  TopSep            0
+  BottomSep         3
+  ParSep            0
+  Align             Center
+  LabelType         Static
+  LabelBottomSep    0
+  LeftMargin        MMMMM
+  LabelString       "________________________________"
+  LabelFont 
+    Family          typewriter
+    Series          Medium
+    Size            Normal
+    Color           latex
+  EndFont
+  Preamble
+    \def\lyxframeend{} % In case there is a superfluous frame end
+  EndPreamble
+End