]> 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 bf355d0470e7b3de09345831c48610ad9e6c923f..a4644f3ae4e1eb6ac0031e7b780cf060d9c434f8 100644 (file)
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[beamer,pgf.sty,xcolor.sty]{presentation (beamer)}
-# Author : Till Tantau <tantau@users.sourceforge.net>
+#  \DeclareLaTeXClass[beamer,amssymb.sty,hyperref.sty,pgf.sty,xcolor.sty,xxcolor.sty]{Beamer}
+#  \DeclareCategory{Presentations}
+# Original Author: Till Tantau <tantau@users.sourceforge.net>
+# Revised and extended by Jürgen Spitzmüller <spitz@lyx.org>, Uwe Stöhr <uwestoehr@lyx.org>,
+#   Richard Heck <rgheck@lyx.org>, Martin Vermeer <martin.vermeer@hut.fi> and probably others.
 
-# $Header: /cvsroot/latex-beamer/latex-beamer/lyx/layouts/beamer.layout,v 1.16 2004/10/07 20:53:07 tantau Exp $
+
+Format 44
+
+#
+# GLOBAL SETTINGS
+#
 
 # Includes
-Format 4
 Input stdcounters.inc
+Input stdinsets.inc
+
+# Beamer does not work with enumitem.
+# See bug #7047.
+ExcludesModule enumitem
 
 # General textclass parameters
-Columns                        1
-Sides                  1
-SecNumDepth            2
-TocDepth               2
-DefaultStyle           Standard
-
-# This is just to show how to declare the default font.
-# The defaults are exactly those shown here.
+Columns            1
+Sides              1
+SecNumDepth        2
+TocDepth           2
+DefaultStyle       Standard
+
+# Pre-loaded packages
+Provides hyperref  1
+Provides geometry  1
+Provides color     1
+Provides xcolor    1
+
+# The default font layout
 DefaultFont
-  Family               Sans
-  Series               Medium
-  Shape                        Up
-  Size                 Normal
-  Color                        None
+  Family           Sans
+  Series           Medium
+  Shape            Up
+  Size             Normal
+  Color            None
 EndFont
 
-# Standard style definition
+# Provide an own maketitle command, which can be altered by Title_(Plain_Frame)
+TitleLaTeXName makebeamertitle
+AddToPreamble
+  % this default might be overridden by plain title style
+  \newcommand\makebeamertitle{\frame{\maketitle}}%
+  % (ERT) argument for the TOC
+  \AtBeginDocument{%
+    \let\origtableofcontents=\tableofcontents
+    \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
+    \def\gobbletableofcontents#1{\origtableofcontents}
+  }
+EndPreamble
+
+
+#
+# STANDARD STYLE
+#
+
 Style Standard
-  Margin               Static
-  LatexType            Paragraph
-  LatexName            dummy
-  ParIndent            MM
-  ParSkip              0.4
-  Align                Left
-  AlignPossible        Block, Left, Right, Center
-  LabelType            No_Label  
+  Category         MainText
+  Margin           Static
+  LatexType        Paragraph
+  LatexName        dummy
+  ParIndent        MM
+  ParSkip          0.4
+  Align            Left
+  AlignPossible    Block, Left, Right, Center
+  LabelType        No_Label
 End
 
-# Itemize style definition
+
+#
+# LISTS
+#
+
 Style Itemize
-  Margin               Static
-  LatexType            Item_Environment
-  LatexName            itemize
-  NextNoIndent         1
-  LeftMargin           MMN
-  LabelSep             xx
-  ItemSep              0.2
-  TopSep               0.7
-  BottomSep            0.7
-  ParSep               0.3
-  Align                        Left
-  AlignPossible                Left
-  LabelType            Itemize
-  LabelString          "*"
-End
-
-# Enumerate style definition
+  Category         List
+  Margin           Static
+  LatexType        Item_Environment
+  LatexName        itemize
+  Argument 1
+    LabelString    "Overlay Specifications|S"
+    Tooltip        "Overlay specifications for this list"
+    LeftDelim      [<
+    RightDelim     >]
+  EndArgument
+  Argument item:1
+    LabelString   "Custom Item|s"
+    Tooltip       "A customized item string"
+  EndArgument
+  Argument item:2
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
+    Tooltip       "Overlay specifications for this item"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  NextNoIndent     1
+  LeftMargin       MMN
+  LabelSep         xx
+  ItemSep          0.2
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.3
+  Align            Left
+  LabelType        Itemize
+End
+
 Style Enumerate
-  Margin               Static
-  LatexType            Item_Environment
-  LatexName            enumerate
-  NextNoIndent         1
-  LeftMargin           MMN
-  LabelSep             xx
-  ParSkip              0.0
-  ItemSep              0.2
-  TopSep               0.7
-  BottomSep            0.7
-  ParSep               0.3
-  Align                        Left
-  AlignPossible                Left
-  LabelType            Enumerate
-End
-
-# Description style definition
+  Category         List
+  Margin           Static
+  LatexType        Item_Environment
+  LatexName        enumerate
+  Argument 1
+    LabelString    "Overlay Specifications|S"
+    Tooltip        "Overlay specifications for this list"
+    LeftDelim      [<
+    RightDelim     >]
+  EndArgument
+  Argument 2
+    LabelString    "Mini Template"
+    Tooltip        "Mini template for this list (see beamer manual for details)"
+  EndArgument
+  Argument item:1
+    LabelString   "Custom Item|s"
+    Tooltip       "A customized item string"
+  EndArgument
+  Argument item:2
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
+    Tooltip       "Overlay specifications for this item"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  NextNoIndent     1
+  LeftMargin       MMN
+  LabelSep         xx
+  ParSkip          0.0
+  ItemSep          0.2
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.3
+  Align            Left
+  LabelType        Enumerate
+  RefPrefix        enu
+End
+
 Style Description
-  Margin               First_Dynamic
-  LatexType            Item_environment
-  LatexName            description
-  NextNoIndent         1
-  LeftMargin           MM
-  LabelSep             xxx
-  ParSkip              0.4
-  ItemSep              0.2
-  TopSep               0.7
-  BottomSep            0.7
-  ParSep               0.3
-  Align                        Left
-  AlignPossible                Left
-  LabelType            Manual
-  LabelString          "MM"
-
-  # label font definition
+  Category         List
+  Margin           First_Dynamic
+  LatexType        Item_environment
+  LatexName        description
+  Argument 1
+    LabelString    "Overlay Specifications|S"
+    Tooltip        "Overlay specifications for this list"
+    LeftDelim      [<
+    RightDelim     >]
+  EndArgument
+  Argument 2
+    LabelString    "Longest label|s"
+    Tooltip        "The longest label in this list (to determine the indendation width)"
+  EndArgument
+  Argument item:1
+    MenuString    "Item Overlay Specifications"
+    LabelString   "On Slide"
+    Tooltip       "Overlay specifications for this item"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  NextNoIndent     1
+  LeftMargin       MM
+  LabelSep         xx
+  ParSkip          0.4
+  ItemSep          0.2
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.3
+  Align            Left
+  LabelType        Manual
   LabelFont 
-    Series             Bold
+    Series         Bold
   EndFont
 End
 
-Style BeginFrame
-  KeepEmpty    1
-  LatexType    Command
-  LatexName    lyxframeend{}\lyxframe
-  Margin            First_Dynamic
-  NextNoIndent      1
-  ParSkip           0
-  TopSep            2.5
-  BottomSep         0.5
-  ParSep            0
-  Align             Center
-  AlignPossible     Center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        M
-  LabelString       "Frame   "
 
-  Font
-    Series          Bold
-    Size            Largest
-    Color           Blue
-  EndFont
+#
+# SECTIONING
+#
 
-  LabelFont 
-    Family          Roman
-    Color           latex
+Style Part
+  Category         Sectioning
+  Margin           Dynamic
+  LatexType        Command
+  LatexName        part
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Short Title|S"
+    Tooltip        "The part as it appears in the table of contents/running headers"
+  EndArgument
+  NeedProtect      1
+  NextNoIndent     1
+  Labelsep         xx
+  ParSkip          0.4
+  TopSep           4
+  BottomSep        4
+  ParSep           0.8
+  Align            Center
+  LabelType        Static
+  LabelString      "Part"
+  RefPrefix        part
+  Font 
+    Family         Roman
+    Series         Bold
+    Size           Huge
   EndFont
-
-  Preamble
-    \makeatletter
-    \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}}
-    \makeatother
-  EndPreamble
+  LabelFont
+    Color          Latex
+  EndFont
+  TocLevel         0
 End
 
-Style BeginPlainFrame
-  KeepEmpty    1
-  LatexType    Command
-  LatexName    lyxframeend{}\lyxplainframe
-  Margin            First_Dynamic
-  NextNoIndent      1
-  ParSkip           0
-  TopSep            2.5
-  BottomSep         0.5
-  ParSep            0
-  Align             Center
-  AlignPossible     center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        M
-  LabelString       "Frame (no head/foot/sidebars)  "
-
-  Font
-    Series          Bold
-    Size            Largest
-    Color           Blue
+Style Section
+  Category         Sectioning
+  Margin           First_Dynamic
+  LatexType        Command
+  LatexName        section
+  NeedProtect      1
+  NextNoIndent     1
+  LabelSep         xx
+  ParSkip          0.4
+  TopSep           2
+  BottomSep        0.25
+  ParSep           0.7
+  Align            Left
+  LabelType        Static
+  LabelCounter     section
+  LabelString      "Section \arabic{section}"
+  RefPrefix        sec
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Short Title|S"
+    Tooltip        "The section as it appears in the table of contents/running headers"
+  EndArgument
+  Font 
+    Family         Roman
+    Series         Bold
+    Size           huge
   EndFont
-
   LabelFont 
-    Family          Roman
-    Color           latex
+    Color          latex
   EndFont
-
-  Preamble
-    \makeatletter
-    \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}}
-    \makeatother
-  EndPreamble
+  LabelStringAppendix "\Alph{section}"
+  TocLevel         1
 End
 
-Style EndFrame
-  KeepEmpty        1
-  LatexType        Command
-  LatexName        lyxframeend
-  Margin            First_Dynamic
-  ParSkip           0
-  TopSep            0
-  BottomSep         3
-  ParSep            0
-  Align             Center
-  AlignPossible     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
+Style Section*
+  CopyStyle        Section
+  Category         Unnumbered
+  Margin           Static
+  LatexName        section
+  LabelType        No_Label
+  ResetArgs        1
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  LaTeXParam       *
 End
 
-Style Pause
-  KeepEmpty    1
-  LatexType    Command
-  LatexName    pause
-  Margin            First_Dynamic
-  NextNoIndent      1
-  ParSkip           0
-  TopSep            0
-  BottomSep         0.25
-  ParSep            0
-  Align             Center
-  AlignPossible     Center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        MMMMM
-  LabelString       "_ _ _ _ _ _ _ _ _ _ _ _ _ _"
-
+Style Subsection
+  Category         Sectioning
+  Margin           First_Dynamic
+  LatexType        Command
+  LatexName        subsection
+  NeedProtect      1
+  NextNoIndent     1
+  LabelSep         xx
+  ParSkip          0.4
+  TopSep           2
+  BottomSep        0.25
+  ParSep           0.5
+  Align            Left
+  LabelType        Static
+  LabelCounter     subsection
+  LabelString      "Subsection \arabic{section}.\arabic{subsection}"
+  RefPrefix        sub
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Short Title|S"
+    Tooltip        "The subsection as it appears in the table of contents/running headers"
+  EndArgument
+  Font 
+    Family         Roman
+    Series         Bold
+    Size           larger
+  EndFont
   LabelFont 
-    Family          typewriter
-    Series          Medium
-    Size            Normal
-    Color           latex
+    Color          latex
   EndFont
+  LabelStringAppendix "\arabic{section}.\arabic{subsection}"
+  TocLevel         2
 End
 
-Counter
-  Name                 section 
-End
-
-Counter
-  Name                 subsection
-  Within               section
-End
-
-Counter
-  Name                 bibitem
-End
-
-Counter
-  Name                 figure
-  Name                 lyxframeend{}\section
-End
-
-Counter
-  Name                 table
-End
-
-Counter
-  Name                 enumi
-End
-
-Counter
-  Name                 enumii
-  Within               enumi
+Style Subsection*
+  CopyStyle        Subsection
+  Category         Unnumbered
+  Margin           Static
+  LatexName        subsection
+  LabelType        No_Label
+  ResetArgs        1
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  LaTeXParam       *
 End
 
-
-# Section style definition
-Style Section
-  Margin               First_Dynamic
-  LatexType            Command
-  LatexName            lyxframeend{}\section
-  NeedProtect          1
-  NextNoIndent         1
-  LabelSep             xxx
-  ParSkip              0.4
-  TopSep               2
-  BottomSep            0.25
-  ParSep               0.7
-  Align                        Left
-  AlignPossible                Left
-  LabelType            Counter
-  LabelCounter section
-  LabelString          "Section \arabic{section}"
-  OptionalArgs                         1
-
+Style Subsubsection
+  Category         Sectioning
+  Margin           First_Dynamic
+  LatexType        Command
+  LatexName        subsubsection
+  NeedProtect      1
+  NextNoIndent     1
+  LabelSep         xx
+  ParSkip          0.4
+  TopSep           2
+  BottomSep        0.25
+  ParSep           0.5
+  Align            Left
+  LabelType        Static
+  LabelCounter     subsubsection
+  LabelString      "Subsubsection \arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
+  RefPrefix        sub
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Short Title|S"
+    Tooltip        "The subsubsection as it appears in the table of contents/running headers"
+  EndArgument
   Font 
-    Family              Roman
-    Series             Bold
-    Size               huge
+    Family         Roman
+    Series         Bold
+    Size           large
   EndFont
-
   LabelFont 
-    Color           latex
+    Color          latex
   EndFont
-  LabelStringAppendix "\Alph{section}"
-  TocLevel 1
+  LabelStringAppendix "\arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
+  TocLevel         3
 End
 
-# Section* style definition
-Style Section*
-  CopyStyle            Section
-  Margin               Static
-  LatexName            lyxframeend{}\section*
-  LabelType            No_Label
-  OptionalArgs         0
+Style Subsubsection*
+  CopyStyle        Subsubsection
+  Category         Unnumbered
+  Margin           Static
+  LatexName        subsubsection
+  LabelType        No_Label
+  ResetArgs        1
+  Argument 1
+    LabelString    "Mode"
+    MenuString     "Mode Specification|S"
+    Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  LaTeXParam       *
 End
 
-# Subsection style definition
-Style Subsection
-  Margin               First_Dynamic
-  LatexType            Command
-  LatexName            lyxframeend{}\subsection
-  NeedProtect          1
-  NextNoIndent         1
-  LabelSep             xxx
-  ParSkip              0.4
-  TopSep               2
-  BottomSep            0.25
-  ParSep               0.5
-  Align                        Left
-  AlignPossible                Left
-  LabelType            Counter
-  LabelCounter subsection
-  LabelString          "Subsection \arabic{section}.\arabic{subsection}"
-  OptionalArgs                         1
-
-  # standard font definition
-  Font 
-    Family              Roman
-    Series             Bold
-    Size               larger
-  EndFont
 
-  LabelFont 
-    Color           latex
+#
+# FRAMES
+#
+
+Style Frame
+  Category         Frames
+  Margin           Dynamic
+  LatexType        Environment
+  LatexName        frame
+  LabelString      "Frame"  
+  TocLevel         4
+  KeepEmpty        1
+  NextNoIndent     1
+  Align            Left
+  LabelType        Static
+  LabelSep         xx
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  LabelFont
+    Size           largest
+    Family         Roman
+    Color          latex
   EndFont
-  LabelStringAppendix "\arabic{section}.\arabic{subsection}"
-  TocLevel 2
+  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
 
-# Subsection* style definition
-Style Subsection*
-  CopyStyle            Subsection
-  Margin               Static
-  LatexName            lyxframeend{}\subsection*
-  LabelType            No_Label
-  OptionalArgs         0
+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
-  KeepEmpty        0
-  LatexType        Command
-  LatexName        lyxframeend{}\lyxagainframe
+  Category          Frames
+  KeepEmpty         0
+  LatexType         Command
+  LatexName         againframe
+  Argument 1
+    LabelString     "Slide"
+    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
   Margin            First_Dynamic
   NextNoIndent      1
   ParSkip           0
   TopSep            3
   BottomSep         3
   ParSep            0
-  Align             Center
-  AlignPossible     Center
   LabelType         Static
   LabelBottomSep    0
   LeftMargin        M
-  LabelString       "Again frame with label   "
-
+  LabelSep          xx
+  LabelString       "Repeat frame with label"
   Font
     Color           latex
   EndFont
-
   LabelFont 
     Family          Roman
     Color           latex
-    Series          Bold
     Size            Largest
   EndFont
+End
 
-  Preamble
-    \makeatletter
-    \long\def\lyxagainframe#1{\@lyxagainframe#1\@lyxframestop}%
-    \def\@lyxagainframe{\@ifnextchar<{\@@lyxagainframe}{\@@lyxagainframe<*>}}%
-    \def\@@lyxagainframe<#1>{\@ifnextchar[{\@@@lyxagainframe<#1>}{\@@@lyxagainframe<#1>[]}}
-    \long\def\@@@lyxagainframe<#1>[#2]#3\@lyxframestop{%
-      \againframe<#1>[#2]{#3}}
-    \makeatother
-  EndPreamble
+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
+  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 AlertBlock
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            alertblock
-  LabelString          "block with alerted text" 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
+Style FrameSubtitle
+  Category         Frames
+  Margin           Static
+  LatexType        Command
+  LatexName        framesubtitle
+  ParSkip          0.4
+  ItemSep          0
+  TopSep           0
+  BottomSep        1
+  ParSep           1
+  Align            Block
+  LabelType        No_Label
+  Font 
+    Color          Blue
+  EndFont
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
 
-  # font & label font definition
 
-  Font
-    Color               red
-  EndFont
+#
+# COLUMS
+#
 
+Style Column
+  Category         Columns
+  Margin           Static
+  LatexType        Command
+  LatexName        column
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  ParIndent        MM
+  Align            Left
+  LabelType        Static
+  LabelSep         xx
+  LabelString      "Start column (increase depth!), width:"
+  Argument 1
+    MenuString     "Column Options"
+    LabelString    "Options"
+    Tooltip        "Column options (see beamer manual)"
+  EndArgument
+  LeftMargin       "Start column (increase depth!), width:xx"
   LabelFont 
-    Family              Roman
-    Color               latex
+    Family         Roman
+    Color          latex
   EndFont
 End
 
-# Author style definition
-Style Author
-  Margin               Static
-  LatexType            Command
-  InTitle              1
-  LatexName            author
-  LabelSep             xxx
-  ParSkip              0.4
-  TopSep               1.3
-  BottomSep            0.7
-  ParSep               0.7
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-  OptionalArgs                         1
-
-  # standard font definition
-  Font 
-    Size               Largest
-    Color               Blue
+Style Columns
+  Category         Columns
+  KeepEmpty        1
+  Margin           Static
+  LatexType        Environment
+  NextNoIndent     0
+  ParIndent        MM
+  Align            Left
+  LabelType        Static
+  LabelSep         xx
+  LatexName        columns
+  LabelString      "Columns"
+  LeftMargin       "Columnsxx"
+  Argument 1
+    LabelString    "Column Placement Options"
+    Tooltip        "Column placement options (t, T, c, b)"
+  EndArgument
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  LabelFont 
+    Family         Roman
+    Color          latex
   EndFont
+End
 
+Style ColumnsCenterAligned
+  CopyStyle        Columns
+  LatexParam       [c]
+  LabelString      "Columns (center aligned)"
+  LeftMargin       "Columns (center aligned)xx"
+  ResetArgs        1
 End
 
-# Bibliography style definition
-Style Bibliography
-  Margin               First_Dynamic
-  LatexType            Bib_Environment
-  LatexName            thebibliography
-  NextNoIndent         1
-  LeftMargin           MM
-  ParSkip              0.4
-  ItemSep              0
-  TopSep               0.7
-  BottomSep            0.7
-  ParSep               0.5
-  Align                        Left
-  AlignPossible                Left
-  LabelType            Bibliography
-  LabelString          "References"
-  LabelBottomSep    0.7
-
-  # label font definition
-  LabelFont 
-    Series             Bold
-    Size               Larger
-  EndFont
+Style ColumnsTopAligned
+  CopyStyle        Columns
+  LatexParam       [t]
+  LabelString      "Columns (top aligned)"
+  LeftMargin       "Columns (top aligned)xx"
+  ResetArgs        1
 End
 
-Style Block
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            block
-  LabelString          "block" 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
 
-  # font & label font definition
+#
+# OVERLAYS
+#
 
-  LabelFont 
-    Family              Roman
-    Color               latex
+Style Pause
+  Category         Overlays
+  KeepEmpty        1
+  LatexType        Command
+  LatexName        pause
+  Margin           First_Dynamic
+  Argument 1
+    LabelString    "Pause number"
+    Tooltip        "Number of slide where the context below the pause gets visible"
+  EndArgument
+  NextNoIndent     1
+  ParSkip          0
+  TopSep           0
+  BottomSep        0.25
+  ParSep           0
+  Align            Center
+  LabelType        Static
+  LabelBottomSep   0
+  LeftMargin       MMMMM
+  LabelString      "_ _ _ _ _ _ _ _ _ _ _ _ _ _"
+  LabelFont
+    Family         typewriter
+    Series         Medium
+    Size           Normal
+    Color          latex
   EndFont
 End
 
-Style Corollary
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            corollary}%{
-  LabelString          "Corollary. " 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
-  KeepEmpty             1
-
-  # font & label font definition
+Style Overprint
+  Category         Overlays
+  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
+  LabelString      "Overprint"
+  LabelFont 
+    Family         Roman
+    Color          latex
+  EndFont
+End
 
+Style OverlayArea
+  Category         Overlays
+  Margin           First_Dynamic
+  LatexType        Environment
+  NextNoIndent     0
+  ParIndent        MM
+  Align            Left
+  LabelType        Static
+  LabelSep         xx
+  LatexName        overlayarea
+  LabelString      "Overlayarea"
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
   LabelFont 
-    Series             Bold
-    Color               Blue
-    Size                Large
+    Family         Roman
+    Color          latex
   EndFont
+  Argument 1
+    LabelString    "Overlay Area Width"
+    Tooltip        "The width of the overlay area"
+    Mandatory      1
+  EndArgument
+  Argument 2
+    MenuString     "Overlay Area Height"
+    LabelString    "Height"
+    Tooltip        "The height of the overlay area"
+    Mandatory      1
+  EndArgument
 End
 
-Style Column
-  Margin               Static
-  LatexType            Command
-  LatexName            column
-  ParSkip               0.5
-  TopSep                1
-  BottomSep             1
-  ParSep                0
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-  LabelString          "start column of width: " 
-  OptionalArgs         1
-  LeftMargin        MMMMMMMMM
-
-  # standard font definition
+Style Uncover
+  Category         Overlays
+  Margin           First_Dynamic
+  LatexType        Environment
+  NextNoIndent     0
+  ParIndent        MM
+  Align            Left
+  LabelType        Static
+  LatexName        uncoverenv
+  LabelSep         xx
+  LabelString      "Uncovered on slides"
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
   LabelFont 
-    Family             Roman
-    Color               latex
+    Family         Roman
+    Color          Latex
   EndFont
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
 End
 
+Style Only
+  Category         Overlays
+  Margin           First_Dynamic
+  LatexType        Environment
+  NextNoIndent     0
+  ParIndent        MM
+  Align            Left
+  LabelType        Static
+  LatexName        onlyenv
+  LabelSep         xx
+  LabelString      "Only on slides"
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  LabelFont
+    Family         Roman
+    Color          Latex
+  EndFont
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
 
-Style Columns
 
-  KeepEmpty             1
-  Margin               Static
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            columns}%{
-  LabelString          "columns" 
-  LeftMargin        columns
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
+#
+# BLOCKS
+#
 
+Style Block
+  Category         Blocks
+  Margin           Dynamic
+  LatexType        Environment
+  NextNoIndent     1
+  KeepEmpty        1
+  Align            Left
+  LabelType        Static
+  LabelSep         xx
+  LatexName        block
+  LabelString      "Block:"
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  LabelFont
+    Family         Roman
+    Color          latex
+  EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specification|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Block Title"
+    Tooltip        "Enter the block title here"
+    Mandatory      1
+    Decoration     conglomerate
+    Font
+      Color        blue
+      Size         large
+    EndFont
+    AutoInsert     1
+  EndArgument
+End
 
-  # font & label font definition
+Style ExampleBlock
+  CopyStyle        Block
+  LatexName        exampleblock
+  LabelString      "Example Block:"
+  Font
+    Color          green
+  EndFont
+End
 
-  LabelFont 
-    Family             Roman
-    Color               latex
+Style AlertBlock
+  CopyStyle        Block
+  LatexName        alertblock
+  LabelString      "Alert Block:"
+  Font
+    Color          red
   EndFont
 End
 
-Style ColumnsCenterAligned
-  KeepEmpty             1
-  Margin               Static
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            centercolumns}%{
-  LabelString          "columns (center aligned)" 
-  LeftMargin            "columns (center aligned)"
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
 
-  Preamble
-  \newenvironment{centercolumns}{\begin{columns}[c]}{\end{columns}}
-  EndPreamble
-  # font & label font definition
+#
+# TITLING
+#
 
-  LabelFont 
-    Family             Roman
-    Color               latex
+Style Title
+  Category         Titling
+  Margin           Static
+  LatexType        Command
+  InTitle          1
+  LatexName        title
+  ParSkip          0.4
+  ItemSep          0
+  TopSep           0
+  BottomSep        1
+  ParSep           1
+  Align            Center
+  LabelType        No_Label
+  Argument 1
+    LabelString   "Short Title|S"
+    Tooltip       "Short title which appears in the sidebar/header"
+  EndArgument
+  Font 
+    Size           Huge
+    Series         Bold
+    Color          Blue
   EndFont
 End
 
-Style ColumnsTopAligned
-  KeepEmpty             1
-  Margin               Static
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            topcolumns}%{
-  LabelString          "columns (top aligned)" 
-  LeftMargin            "columns (top aligned)"
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
-
+Style Title_(Plain_Frame)
+  CopyStyle        Title
   Preamble
-  \newenvironment{topcolumns}{\begin{columns}[t]}{\end{columns}}
+     % plain title style, override default
+     \renewcommand\makebeamertitle{\frame[plain]{\maketitle}}%
   EndPreamble
-  # font & label font definition
+End
 
-  LabelFont 
-    Family             Roman
-    Color               latex
+Style Subtitle
+  Category         Titling
+  Margin           Static
+  LatexType        Command
+  InTitle          1
+  LatexName        subtitle
+  ParSkip          0.4
+  ItemSep          0
+  TopSep           0
+  BottomSep        1
+  ParSep           1
+  Align            Center
+  LabelType        No_Label
+  Argument 1
+    LabelString   "Short Subtitle|S"
+    Tooltip       "Short subtitle which appears in the sidebar/header"
+  EndArgument
+  Font 
+    Size           Large
+    Series         Bold
+    Color          Blue
   EndFont
 End
 
+Style Author
+  Category         Titling
+  Margin           Static
+  LatexType        Command
+  InTitle          1
+  LatexName        author
+  ParSkip          0.4
+  TopSep           1.3
+  BottomSep        0.7
+  ParSep           0.7
+  Align            Center
+  LabelType        No_Label
+  Argument 1
+    LabelString   "Short Author|S"
+    Tooltip       "Short author which appears in the sidebar/header"
+  EndArgument
+  Font 
+    Size           Largest
+    Color          Blue
+  EndFont
+End
 
-# Date style definition
-Style Date
-  Margin               Dynamic
-  LatexType            Command
-  InTitle              1
-  LatexName            date
-  LabelSep             xxx
-  ParSkip              0.4
-  TopSep               0.9
-  BottomSep            0.5
-  ParSep               1
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-  OptionalArgs                         1
-
-  # standard font definition
+Style Institute
+  Category         Titling
+  Margin           Dynamic
+  LatexType        Command
+  InTitle          1
+  LatexName        institute
+  ParSkip          0.4
+  TopSep           0.9
+  BottomSep        0.5
+  ParSep           1
+  Align            Center
+  LabelType        No_Label
+  Argument 1
+    LabelString   "Short Institute|S"
+    Tooltip       "Short institute which appears in the sidebar/header"
+  EndArgument
   Font 
-    Size               Largest
-    Color               Blue
+    Size           Large
+    Color          Blue
   EndFont
 End
 
-Style Definition
-  CopyStyle            Corollary
-  LatexName            definition}%{
-  LabelString          "Definition. " 
+InsetLayout "Flex:InstituteMark"
+  LyxType          custom
+  LatexType        command
+  LatexName        inst
+  LabelString      "Institute Mark"
+  Font
+    Color          foreground
+    Size           Small
+    Family         Roman
+    Shape          Up
+    Series         Medium
+    Misc           No_Emph
+    Misc           No_Noun
+    Misc           No_Bar
+  EndFont
+  LabelFont
+    Color          blue
+    Size           Small
+  EndFont
 End
 
-Style Definitions
-  CopyStyle            Corollary
-  LatexName            definitions}%{
-  LabelString          "Definitions. " 
+Style Date
+  Category         Titling
+  Margin           Dynamic
+  LatexType        Command
+  InTitle          1
+  LatexName        date
+  ParSkip          0.4
+  TopSep           0.9
+  BottomSep        0.5
+  ParSep           1
+  Align            Center
+  LabelType        No_Label
+  Argument 1
+    LabelString   "Short Date|S"
+    Tooltip       "Short date which appears in the sidebar/header"
+  EndArgument
+  Font 
+    Size           Largest
+    Color          Blue
+  EndFont
 End
 
-Style Example
-  CopyStyle            Corollary
-  LatexName            example}%{
-  LabelString          "Example. " 
+Style TitleGraphic
+  Category         Titling
+  Margin           Static
+  LatexType        Command
+  InTitle          1
+  LatexName        titlegraphic
+  ParSkip          0.4
+  ItemSep          0
+  TopSep           0
+  BottomSep        1
+  ParSep           1
+  Align            Center
+  LabelType        No_Label
+  Font 
+    Size           Huge
+    Series         Bold
+    Color          Blue
+  EndFont
+End
 
+
+#
+# BACK MATTER
+#
+
+Style Bibliography
+  Category         BackMatter
+  Margin           First_Dynamic
+  LatexType        Bib_Environment
+  LatexName        thebibliography
+  NextNoIndent     1
+  LeftMargin       MM
+  ParSkip          0.4
+  ItemSep          0
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.5
+  Align            Left
+  LabelType        Bibliography
+  LabelString      "References"
+  LabelBottomSep   0.7
   LabelFont 
-    Series             Bold
-    Color               Green
+    Series         Bold
+    Size           Larger
   EndFont
 End
 
-Style Examples
-  CopyStyle            Corollary
-  LatexName            examples}%{
-  LabelString          "Examples. " 
+
+#
+# QUOTATION
+#
+
+Style Quotation
+  Category         MainText
+  Margin           Static
+  LatexType        Environment
+  LatexName        quotation
+  NextNoIndent     1
+  LeftMargin       MMM
+  RightMargin      MMM
+  ParIndent        MM
+  ParSkip          0
+  ItemSep          0
+  TopSep           0.5
+  BottomSep        0.5
+  ParSep           0
+  Align            Block
+  AlignPossible    Block, Left, Right, Center
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
 End
 
-Style ExampleBlock
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            exampleblock
-  LabelString          "block showing an example" 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
+Style Quote
+  Category         MainText
+  Margin           Static
+  LatexType        Environment
+  LatexName        quote
+  NextNoIndent     1
+  LeftMargin       MMM
+  RightMargin      MMM
+  TopSep           0.5
+  ParSep           0.5
+  BottomSep        0.5
+  Align            Block
+  AlignPossible    Block, Left, Right, Center
+  LabelType        No_Label
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
 
-  # font & label font definition
+Style Verse
+  # LaTeX type is first dynamic because of LaTeX implementation.
+  # In LyX this does not make sense.
+  Category         MainText
+  LatexType        Environment
+  LatexName        verse
+  Margin           First_Dynamic
+  NextNoIndent     1
+  LeftMargin       MMMM
+  LabelIndent      MMMM
+  ParSkip          0.4
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.5
+  Align            Block
+  AlignPossible    Block, Left
+  LabelType        No_Label
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
 
-  Font
-    Color               green
-  EndFont
 
-  LabelFont 
-    Family              Roman
-    Color               latex
+#
+# THEOREMS AND SUCH
+#
+
+Style Corollary
+   Category        Reasoning
+   Margin          First_Dynamic
+   LatexType       Environment
+   NextNoIndent    0
+   ParIndent       MM
+   Align           Left
+   LabelType       Static
+   LabelSep        xx
+   LatexName       corollary
+   LabelString     "Corollary."
+   ParSkip         0.5
+   TopSep          1
+   BottomSep       1
+   ParSep          0
+   KeepEmpty       1
+   LabelFont
+     Series        Bold
+     Color         Blue
+     Size          Large
+   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Additional Theorem Text"
+    Tooltip        "Additional text appended to the theorem header"
+  EndArgument
+End
+
+Style Definition
+  CopyStyle        Corollary
+  LatexName        definition
+  LabelString      "Definition."
+End
+
+Style Definitions
+  CopyStyle        Corollary
+  LatexName        definitions
+  LabelString      "Definitions."
+End
+
+Style Example
+  CopyStyle        Corollary
+  LatexName        example
+  LabelString      "Example."
+  LabelFont
+    Series         Bold
+    Color          Green
   EndFont
 End
 
+Style Examples
+  CopyStyle        Corollary
+  LatexName        examples
+  LabelString      "Examples."
+End
+
 Style Fact
-  CopyStyle            Corollary
-  LatexName            fact}%{
-  LabelString          "Fact. " 
+  CopyStyle        Corollary
+  LatexName        fact
+  LabelString      "Fact."
 End
 
-Style FrameSubtitle
-  Margin               Static
-  LatexType            Command
-  LatexName            framesubtitle
-  ParSkip              0.4
-  ItemSep              0
-  TopSep               0
-  BottomSep            1
-  ParSep               1
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-  OptionalArgs                         1
-
-  # standard font definition
-  Font 
-    Series             Bold
-    Color               Blue
-  EndFont
+Style Proof
+  CopyStyle        Corollary
+  LatexName        proof
+  LabelString      "Proof."
+End
 
+Style Theorem
+  CopyStyle        Corollary
+  LatexName        theorem
+  LabelString      "Theorem."
 End
 
-# Date style definition
-Style Institute
-  Margin               Dynamic
-  LatexType            Command
-  InTitle              1
-  LatexName            institute
-  LabelSep             xxx
-  ParSkip              0.4
-  TopSep               0.9
-  BottomSep            0.5
-  ParSep               1
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-  OptionalArgs                         1
-
-  # standard font definition
-  Font 
-    Size               Large
-    Color               Blue
+
+#
+# MISC.
+#
+
+Style Separator
+  Category         MainText
+  LatexType        Paragraph
+  LatexName        dummy
+  ParIndent        MM
+  ParSkip          0.4
+  Align            Left
+  AlignPossible    Block, Left, Right, Center
+  Margin           First_Dynamic
+  TopSep           0
+  BottomSep        0
+  ParSep           0
+  LabelType        Static
+  LabelBottomSep   0
+  LabelString      "___"
+  KeepEmpty        1
+  LabelFont 
+    Series         Medium
+    Size           Normal
+    Color          latex
   EndFont
 End
-
 Style LyX-Code
-  Margin               Static
-  LatexType            Environment
-  LatexName            lyxcode
-  NextNoIndent         1
-  LeftMargin           MMM
-  RightMargin          MMM
-  TopSep               0.5
-  BottomSep            0.5
-  Align                        Left
-  AlignPossible                Block, Left, Right, Center
-  LabelType            No_Label
-  FreeSpacing          1
-
-  # define the environment lyxcode
+  Category         MainText
+  Margin           Static
+  LatexType        Environment
+  LatexName        lyxcode
+  NextNoIndent     1
+  LeftMargin       MMM
+  RightMargin      MMM
+  TopSep           0.5
+  BottomSep        0.5
+  Align            Left
+  AlignPossible    Block, Left, Right, Center
+  LabelType        No_Label
+  FreeSpacing      1
   Preamble
   \newenvironment{lyxcode}
-    {\begin{list}{}{
+    {\par\begin{list}{}{
       \setlength{\rightmargin}{\leftmargin}
       \setlength{\listparindent}{0pt}% needed for AMS classes
       \raggedright
@@ -788,328 +1285,434 @@ Style LyX-Code
      \item[]}
     {\end{list}}
   EndPreamble
-
-  # standard font definition
   Font 
-    Family             Typewriter
+    Family         Typewriter
   EndFont
 End
-
 Style NoteItem
-  Margin               Static
-  LatexType            Command
-  LatexName            note[item]
-  ParSkip               0.5
-  TopSep                1
-  BottomSep             1
-  ParSep                0
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-  LabelString          "note: " 
-  OptionalArgs         1
-  LeftMargin        MMM
-
-  # standard font definition
+  Category         MainText
+  Margin           Static
+  LatexType        Command
+  LatexName        note
+  LatexParam       [item]
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  Align            Left
+  LabelType        Static
+  LabelSep         xx
+  LabelString      "Note:"
+  LeftMargin       "Note:xx"
   LabelFont 
-    Family             Roman
-    Color               latex
+    Family         Roman
+    Color          latex
   EndFont
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
 End
 
+#
+# CHARSTYLES
+#
 
-Style Only
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-
-  LatexName            onlyenv}%{
-  LabelString          "only on slides " 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
-
-  # font & label font definition
 
-  LabelFont 
-    Family             Roman           
-    Color               Latex
+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
 
-Style Overprint
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            overprint
-  LabelString          "overprint" 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
-  KeepEmpty            1
-
-  # font & label font definition
-
-  LabelFont 
-    Family              Roman
-    Color               latex
+InsetLayout Flex:Emphasize
+  LyXType          charstyle
+  LabelString      Emph.
+  LatexType        command
+  LatexName        emph
+  Font
+    Shape          italic
   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
 End
 
-Style OverlayArea
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-  LabelSep              xx
-
-  LatexName            overlayarea
-  LabelString          "overlayarea" 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
-
-  # font & label font definition
-
-  LabelFont 
-    Family              Roman
-    Color               latex
+InsetLayout Flex:Alert
+  LyXType          charstyle
+  LabelString      Alert
+  LatexType        command
+  LatexName        alert
+  Font
+    Color          red
   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
 End
 
-# Part style definition
-Style Part
-  Margin               Dynamic
-  LatexType            Command
-  LatexName            part
-  NeedProtect          1
-  NextNoIndent          1
-  Labelsep             xxx
-  ParSkip               0.4
-  TopSep                4
-  BottomSep             4
-  ParSep                0.8
-  Align                        Center         
-  Alignpossible         Center
-  LabelType             Static
-  LabelString          "Part "
-
-  # standard font definition
-  Font 
-    Family              Roman
-    Series              Bold
-    Size                Huge
+InsetLayout Flex:Structure
+  LyXType          charstyle
+  LabelString      Structure
+  LatexType        command
+  LatexName        structure
+  Font
+    Color          blue
   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
 
-  LabelFont
-    Color               Latex
+InsetLayout Flex:Only
+  LyXType          charstyle
+  LabelString      Only
+  LatexType        command
+  LatexName        only
+  Font
+    Color          red
   EndFont
-End
-  
-Style Proof
-  CopyStyle            Corollary
-  LatexName            proof}%{
-  LabelString          "Proof. " 
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+    AutoInsert     1
+  EndArgument
 End
 
-# Separator style definition
-Style Separator
-  LatexType            Paragraph
-  LatexName            dummy
-  ParIndent            MM
-  ParSkip              0.4
-  Align                Left
-  AlignPossible        Block, Left, Right, Center
-  Margin                First_Dynamic
-  TopSep                0
-  BottomSep             0
-  ParSep                0
-  LabelType             Static
-  LabelBottomSep        0
-  LabelString           "___"
-  KeepEmpty             1
+InsetLayout Flex:Uncover
+  LyXType          charstyle
+  LabelString      Uncover
+  LatexType        command
+  LatexName        uncover
+  Font
+    Color          red
+  EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+    AutoInsert     1
+  EndArgument
+End
 
-  LabelFont 
-    Series          Medium
-    Size            Normal
-    Color           latex
+InsetLayout Flex:Visible
+  LyXType          charstyle
+  LabelString      Visible
+  LatexType        command
+  LatexName        visible
+  Font
+    Color          red
   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+    AutoInsert     1
+  EndArgument
 End
 
-# Title style definition
-Style Title
-  Margin               Static
-  LatexType            Command
-  InTitle              1
-  LatexName            title
-  ParSkip              0.4
-  ItemSep              0
-  TopSep               0
-  BottomSep            1
-  ParSep               1
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-  OptionalArgs                         1
-
-  # standard font definition
-  Font 
-    Size               Huge
-    Series             Bold
-    Color               Blue
+InsetLayout Flex:Invisible
+  LyXType          charstyle
+  LabelString      Invisible
+  LatexType        command
+  LatexName        invisible
+  Font
+    Color          red
   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+    AutoInsert     1
+  EndArgument
+End
 
+InsetLayout Flex:Alternative
+  LyXType          charstyle
+  LabelString      Alternative
+  LatexType        command
+  LatexName        alt
+  Font
+    Color          red
+  EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Default Text"
+    Tooltip        "Enter the default text here"
+    Mandatory      1
+  EndArgument
 End
 
-Style TitleGraphic
-  Margin               Static
-  LatexType            Command
-  InTitle              1
-  LatexName            titlegraphic
-  ParSkip              0.4
-  ItemSep              0
-  TopSep               0
-  BottomSep            1
-  ParSep               1
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-
-  # standard font definition
-  Font 
-    Size               Huge
-    Series             Bold
-    Color               Blue
+InsetLayout Flex:Beamer_Note
+  LyXType          custom
+  LabelString      Note
+  LatexType        command
+  LatexName        note
+  Decoration       Classic
+  Font
+    Color          blue
   EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+  Argument 2
+    LabelString    "Note Options"
+    Tooltip        "Specifiy note options (see beamer manual)"
+  EndArgument
+End
 
+InsetLayout Flex:ArticleMode
+   LyXType         custom
+   LatexName       mode
+   LatexParam      <article>
+   LatexType       command
+   Decoration      classic
+   LabelString     Article
+   MultiPar        true
 End
 
-Style Theorem
-  CopyStyle            Corollary
-  LatexName            theorem}%{
-  LabelString          "Theorem. " 
+InsetLayout Flex:PresentationMode
+   LyXType         custom
+   LatexName       mode
+   LatexParam      <presentation>
+   LatexType       command
+   Decoration      classic
+   LabelString     Presentation
+   MultiPar        true
 End
 
-Style Subtitle
-  Margin               Static
-  LatexType            Command
-  InTitle              1
-  LatexName            subtitle
-  ParSkip              0.4
-  ItemSep              0
-  TopSep               0
-  BottomSep            1
-  ParSep               1
-  Align                        Center
-  AlignPossible                Center
-  LabelType            No_Label
-  OptionalArgs                         1
-
-  # standard font definition
-  Font 
-    Size               Large
-    Series             Bold
-    Color               Blue
-  EndFont
 
+#
+# FLOATS
+#
+
+Float
+  Type             table
+  GuiName          Table
+  Placement        tbp
+  Extension        lot
+  NumberWithin     none
+  Style            plain
+  ListName         "List of Tables"
+  IsPredefined     true
+  UsesFloatPkg     false
+  ListCommand      listoftables
 End
 
+Float
+  Type             figure
+  GuiName          Figure
+  Placement        tbp
+  Extension        lof
+  NumberWithin     none
+  Style            plain
+  ListName         "List of Figures"
+  IsPredefined     true
+  UsesFloatPkg     false
+  ListCommand      listoffigures
+End
 
-Style Uncover
-  Margin               First_Dynamic
-  LatexType            Environment
-  NextNoIndent         0
-  ParIndent            MM
-  Align                        Left
-  LabelType            Static
-
-  LatexName            uncoverenv}%{
-  LabelString          "uncovered on slides " 
-
-  ParSkip           0.5
-  TopSep            1
-  BottomSep         1
-  ParSep            0
 
-  # font & label font definition
+Input theorems-refprefix.inc
 
-  LabelFont 
-    Family             Roman           
-    Color               Latex
-  EndFont
-End
 
-# Input lyxmacros.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
+#
 
-# Charstyles:
+AddToPreamble
+\providecommand\lyxframeend{}
+EndPreamble
 
-CharStyle Alert
-        LatexType             Command
-        LatexName             alert
-        Font
-          Color               red
-        EndFont
+IfStyle Section
+  LatexName        lyxframeend{}\section
 End
 
+IfStyle Section*
+  LatexName        lyxframeend{}\section
+End
 
-CharStyle Structure
-        LatexType             Command
-        LatexName             structure
-        Font
-          Color               blue 
-        EndFont
+IfStyle Subsection
+  LatexName        lyxframeend{}\subsection
 End
 
+IfStyle Subsection*
+  LatexName        lyxframeend{}\subsection
+End
 
-Float
-  Type                  table
-  GuiName              Table
-  Placement             tbp
-  Extension             lot
-  NumberWithin          none
-  Style                 plain
-  ListName              "List of Tables"
-  LaTeXBuiltin          true
-End
-  
-Float
-  Type                  figure
-  GuiName               Figure
-  Placement             tbp
-  Extension             lof
-  NumberWithin          none
-  Style                 plain
-  ListName              "List of Figures"
-  LaTeXBuiltin          true
+IfStyle Subsubsection
+  LatexName        lyxframeend{}\subsubsection
 End
 
-TitleLaTeXName frame{\maketitle}
+IfStyle Subsubsection*
+  LatexName        lyxframeend{}\subsubsection
+End
 
-SecNumDepth            2
-TocDepth               2
+IfStyle AgainFrame
+  LatexName        lyxframeend{}\againframe
+End
 
 
-Preamble
-  \AtBeginDocument{
-    \let\origtableofcontents=\tableofcontents
-    \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
-    \def\gobbletableofcontents#1{\origtableofcontents}
-  }
-EndPreamble
+#
+# 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