]> git.lyx.org Git - features.git/blobdiff - lib/layouts/beamer.layout
Allow to separate menu string from label string for arguments
[features.git] / lib / layouts / beamer.layout
index c2d89bec5d8a81a36dae6f5d7773542fc33ddac6..d4ad53be75abf3587c35c5bd7a7bd168c6d54abb 100644 (file)
@@ -1,24 +1,39 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[beamer,amssymb.sty,hyperref.sty,pgf.sty,xcolor.sty,xxcolor.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 41
+
+# Beamer does not work with enumitem.
+# See bug #7047.
+ExcludesModule enumitem
+
+#
+# GLOBAL SETTINGS
+#
 
 # Includes
-Format 36
 Input stdcounters.inc
 Input stdinsets.inc
 
-
 # General textclass parameters
 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
@@ -27,8 +42,24 @@ DefaultFont
   Color            None
 EndFont
 
+# 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
+#
 
-# Standard style definition
 Style Standard
   Category         MainText
   Margin           Static
@@ -41,14 +72,33 @@ Style Standard
   LabelType        No_Label
 End
 
-# List section
-# Itemize style definition
+
+#
+# LISTS
+#
+
 Style Itemize
   Category         List
   Margin           Static
   LatexType        Item_Environment
   LatexName        itemize
-  OptionalArgs     1
+  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
@@ -60,13 +110,32 @@ Style Itemize
   LabelType        Itemize
 End
 
-# Enumerate style definition
 Style Enumerate
   Category         List
   Margin           Static
   LatexType        Item_Environment
   LatexName        enumerate
-  OptionalArgs     2
+  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
@@ -80,13 +149,28 @@ Style Enumerate
   RefPrefix        enu
 End
 
-# Description style definition
 Style Description
   Category         List
   Margin           First_Dynamic
   LatexType        Item_environment
   LatexName        description
-  OptionalArgs     2
+  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
@@ -98,18 +182,31 @@ Style Description
   Align            Left
   LabelType        Manual
   LabelFont 
-    Series        Bold
+    Series         Bold
   EndFont
 End
 
-# Sectioning section
-# Part style definition
+
+#
+# SECTIONING
+#
+
 Style Part
   Category         Section
   Margin           Dynamic
   LatexType        Command
   LatexName        part
-  OptionalArgs     1
+  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
@@ -120,22 +217,18 @@ Style Part
   Align            Center
   LabelType        Static
   LabelString      "Part"
-       RefPrefix        part
-
-  # standard font definition
+  RefPrefix        part
   Font 
     Family         Roman
     Series         Bold
     Size           Huge
   EndFont
-
   LabelFont
     Color          Latex
   EndFont
-       TocLevel 0
+  TocLevel         0
 End
 
-# Section style definition
 Style Section
   Category         Section
   Margin           First_Dynamic
@@ -152,15 +245,23 @@ Style Section
   LabelType        Counter
   LabelCounter     section
   LabelString      "Section \arabic{section}"
-       RefPrefix        sec
-  OptionalArgs     1
-
+  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 
     Color          latex
   EndFont
@@ -168,17 +269,23 @@ Style Section
   TocLevel         1
 End
 
-# Section* style definition
 Style Section*
   CopyStyle        Section
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\section*
+  LatexName        lyxframeend{}\section
   LabelType        No_Label
-  OptionalArgs     0
+  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
   Category         Section
   Margin           First_Dynamic
@@ -195,34 +302,47 @@ Style Subsection
   LabelType        Counter
   LabelCounter     subsection
   LabelString      "Subsection \arabic{section}.\arabic{subsection}"
-       RefPrefix        sub
-  OptionalArgs     1
-
-  # standard font definition
+  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 
     Color          latex
   EndFont
   LabelStringAppendix "\arabic{section}.\arabic{subsection}"
-  TocLevel 2
+  TocLevel         2
 End
 
-# Subsection* style definition
 Style Subsection*
   CopyStyle        Subsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsection*
+  LatexName        lyxframeend{}\subsection
   LabelType        No_Label
-  OptionalArgs     0
+  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
 
-# Subsubsection style definition
 Style Subsubsection
   Category         Section
   Margin           First_Dynamic
@@ -239,41 +359,62 @@ Style Subsubsection
   LabelType        Counter
   LabelCounter     subsubsection
   LabelString      "Subsubsection \arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
-       RefPrefix        sub
-  OptionalArgs     1
-
-  # standard font definition
+  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           large
   EndFont
-
   LabelFont 
     Color          latex
   EndFont
   LabelStringAppendix "\arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
-  TocLevel 2
+  TocLevel         3
 End
 
-# Subsubsection* style definition
 Style Subsubsection*
   CopyStyle        Subsubsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsubsection*
+  LatexName        lyxframeend{}\subsubsection
   LabelType        No_Label
-  OptionalArgs     0
+  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
 
-# Frame control definition
+
+#
+# FRAMES
+#
+
 Style BeginFrame
   Category         Frames
   TocLevel         4
   KeepEmpty        1
   LatexType        Command
   LatexName        lyxframeend{}\lyxframe
-  OptionalArgs     1
+  Argument 1
+    LabelString    "Frame Options"
+    Tooltip        "Frame options (see beamer manual)"
+  EndArgument
   Margin           First_Dynamic
   NextNoIndent     1
   ParSkip          0
@@ -286,18 +427,15 @@ Style BeginFrame
   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<*>}}%
@@ -327,18 +465,15 @@ Style BeginPlainFrame
   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<*>}}%
@@ -351,8 +486,25 @@ Style AgainFrame
   Category          Frames
   KeepEmpty         0
   LatexType         Command
-  LatexName         lyxframeend{}\lyxagainframe
-  OptionalArgs      2
+  LatexName         lyxframeend{}\againframe
+  Argument 1
+    LabelString     "On 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
@@ -364,26 +516,16 @@ Style AgainFrame
   LabelBottomSep    0
   LeftMargin        M
   LabelSep          xx
-  LabelString       "Again frame with label"
-
+  LabelString       "Repeat frame with label"
   Font
     Color           latex
   EndFont
-
   LabelFont 
     Family          Roman
     Color           latex
     Series          Bold
     Size            Largest
   EndFont
-
-  Preamble
-    \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}}
-  EndPreamble
 End
 
 Style EndFrame
@@ -401,20 +543,17 @@ Style EndFrame
   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
 
-# Frame decoration section
 Style FrameSubtitle
   Category         Frames
   Margin           Static
@@ -427,17 +566,24 @@ Style FrameSubtitle
   ParSep           1
   Align            Center
   LabelType        No_Label
-  OptionalArgs     1
-
-  # standard font definition
   Font 
     Series         Bold
     Color          Blue
   EndFont
-
+  Argument 1
+    LabelString    "On Slide"
+    MenuString     "Overlay Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
 End
 
 
+#
+# COLUMS
+#
+
 Style Column
   Category         Columns
   Margin           Static
@@ -452,17 +598,18 @@ Style Column
   LabelType        Static
   LabelSep         xx
   LabelString      "Start column (increase depth!), width:"
-  OptionalArgs     1
+  Argument 1
+    MenuString     "Column Options"
+    LabelString    "Options"
+    Tooltip        "Column options (see beamer manual)"
+  EndArgument
   LeftMargin       "Start column (increase depth!), width:xx"
-
-  # standard font definition
   LabelFont 
     Family         Roman
     Color          latex
   EndFont
 End
 
-
 Style Columns
   Category         Columns
   KeepEmpty        1
@@ -473,19 +620,17 @@ Style Columns
   Align            Left
   LabelType        Static
   LabelSep         xx
-
-  LatexName        columns}%{
+  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
-
-
-  # font & label font definition
-
   LabelFont 
     Family         Roman
     Color          latex
@@ -493,91 +638,51 @@ Style Columns
 End
 
 Style ColumnsCenterAligned
-  Category         Columns
-  KeepEmpty        1
-  Margin           Static
-  LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
-  Align            left
-  LabelType        Static
-  LabelSep         xx
-
-  LatexName        centercolumns}%{
+  CopyStyle        Columns
+  LatexParam       [c]
   LabelString      "Columns (center aligned)"
   LeftMargin       "Columns (center aligned)xx"
-
-  ParSkip          0.5
-  TopSep           1
-  BottomSep        1
-  ParSep           0
-
-  Preamble
-  \newenvironment{centercolumns}{\begin{columns}[c]}{\end{columns}}
-  EndPreamble
-  # font & label font definition
-
-  LabelFont 
-    Family         Roman
-    Color          latex
-  EndFont
+  ResetArgs        1
 End
 
 Style ColumnsTopAligned
-  Category         Columns
-  KeepEmpty        1
-  Margin           Static
-  LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
-  Align            left
-  LabelType        Static
-  LabelSep         xx
-
-  LatexName        topcolumns}%{
+  CopyStyle        Columns
+  LatexParam       [t]
   LabelString      "Columns (top aligned)"
   LeftMargin       "Columns (top aligned)xx"
+  ResetArgs        1
+End
 
-  ParSkip          0.5
-  TopSep           1
-  BottomSep        1
-  ParSep           0
-
-  Preamble
-  \newenvironment{topcolumns}{\begin{columns}[t]}{\end{columns}}
-  EndPreamble
-  # font & label font definition
 
-  LabelFont 
-    Family         Roman
-    Color          latex
-  EndFont
-End
+#
+# OVERLAYS
+#
 
-# Frame progression section
 Style Pause
-  Category          Overlays
-  KeepEmpty         1
-  LatexType         Command
-  LatexName         pause
-  Margin            First_Dynamic
-  OptionalArgs      1
-  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
+  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
 
@@ -590,22 +695,22 @@ Style Overprint
   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
   EndFont
+  Argument 1
+    MenuString     "Overprint Area Width"
+    LabelString    "Width"
+    Tooltip        "The width of the overprint area (default: text width)"
+  EndArgument
 End
 
 Style OverlayArea
@@ -617,21 +722,27 @@ Style OverlayArea
   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
   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 Uncover
@@ -642,22 +753,24 @@ Style Uncover
   ParIndent        MM
   Align            Left
   LabelType        Static
-
-  LatexName        uncoverenv}%{
+  LatexName        uncoverenv
   LabelSep         xx
   LabelString      "Uncovered on slides"
-
   ParSkip          0.5
   TopSep           1
   BottomSep        1
   ParSep           0
-
-  # font & label font definition
-
   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 Only
@@ -668,113 +781,91 @@ Style Only
   ParIndent        MM
   Align            Left
   LabelType        Static
-
-  LatexName        onlyenv}%{
+  LatexName        onlyenv
   LabelSep         xx
   LabelString      "Only on slides"
-
   ParSkip          0.5
   TopSep           1
   BottomSep        1
   ParSep           0
-
-  # font & label font definition
-
   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
 
-# Blocks section
+
+#
+# BLOCKS
+#
+
 Style Block
   Category         Blocks
   Margin           Dynamic
   LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
+  NextNoIndent     1
   Align            Left
   LabelType        Static
   LabelSep         xx
-
   LatexName        block
-  LabelString      "Block:"
-  
+  LabelString      "Block:"  
   ParSkip          0.5
   TopSep           1
   BottomSep        1
   ParSep           0
-
-  # font & label font definition
-
   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
+  EndArgument
 End
 
 Style ExampleBlock
-  Category         Blocks
-  Margin           First_Dynamic
-  LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
-  Align            Left
-  LabelType        Static
-  LabelSep         xx
-
+  CopyStyle        Block
   LatexName        exampleblock
   LabelString      "Example Block:"
-  
-  ParSkip          0.5
-  TopSep           1
-  BottomSep        1
-  ParSep           0
-
-  # font & label font definition
-
   Font
     Color          green
   EndFont
-
-  LabelFont 
-    Family         Roman
-    Color          latex
-  EndFont
 End
 
 Style AlertBlock
-  Category         Blocks
-  Margin           First_Dynamic
-  LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
-  Align            Left
-  LabelType        Static
-  LabelSep         xx
-
+  CopyStyle        Block
   LatexName        alertblock
   LabelString      "Alert Block:"
-  
-  ParSkip          0.5
-  TopSep           1
-  BottomSep        1
-  ParSep           0
-
-  # font & label font definition
-
   Font
     Color          red
   EndFont
-
-  LabelFont 
-    Family         Roman
-    Color          latex
-  EndFont
 End
 
-# Title slide data section
-# Title style definition
+
+#
+# TITLING
+#
+
 Style Title
   Category         Titling
   Margin           Static
@@ -788,15 +879,15 @@ Style Title
   ParSep           1
   Align            Center
   LabelType        No_Label
-  OptionalArgs     1
-
-  # standard font definition
+  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 Title_(Plain_Frame)
@@ -820,18 +911,17 @@ Style Subtitle
   ParSep           1
   Align            Center
   LabelType        No_Label
-  OptionalArgs     1
-
-  # standard font definition
+  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
 
-# Author style definition
 Style Author
   Category         Titling
   Margin           Static
@@ -844,14 +934,14 @@ Style Author
   ParSep           0.7
   Align            Center
   LabelType        No_Label
-  OptionalArgs     1
-
-  # standard font definition
+  Argument 1
+    LabelString   "Short Author|S"
+    Tooltip       "Short author which appears in the sidebar/header"
+  EndArgument
   Font 
     Size           Largest
     Color          Blue
   EndFont
-
 End
 
 Style Institute
@@ -866,9 +956,10 @@ Style Institute
   ParSep           1
   Align            Center
   LabelType        No_Label
-  OptionalArgs     1
-
-  # standard font definition
+  Argument 1
+    LabelString   "Short Institute|S"
+    Tooltip       "Short institute which appears in the sidebar/header"
+  EndArgument
   Font 
     Size           Large
     Color          Blue
@@ -879,7 +970,7 @@ InsetLayout "Flex:InstituteMark"
   LyxType          custom
   LatexType        command
   LatexName        inst
-  LabelString      "Institute mark"
+  LabelString      "Institute Mark"
   Font
     Color          foreground
     Size           Small
@@ -896,7 +987,6 @@ InsetLayout "Flex:InstituteMark"
   EndFont
 End
 
-# Date style definition
 Style Date
   Category         Titling
   Margin           Dynamic
@@ -909,17 +999,41 @@ Style Date
   ParSep           1
   Align            Center
   LabelType        No_Label
-  OptionalArgs     1
-
-  # standard font definition
+  Argument 1
+    LabelString   "Short Date|S"
+    Tooltip       "Short date which appears in the sidebar/header"
+  EndArgument
   Font 
     Size           Largest
     Color          Blue
   EndFont
 End
 
-# Titles & bibliography section
-# Bibliography style definition
+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
@@ -936,19 +1050,22 @@ Style Bibliography
   LabelType        Bibliography
   LabelString      "References"
   LabelBottomSep   0.7
-
-  # label font definition
   LabelFont 
     Series         Bold
     Size           Larger
   EndFont
 End
 
+
+#
+# QUOTATION
+#
+
 Style Quotation
   Category         MainText
   Margin           Static
   LatexType        Environment
-  LatexName        quotation}%{
+  LatexName        quotation
   NextNoIndent     1
   LeftMargin       MMM
   RightMargin      MMM
@@ -960,14 +1077,20 @@ Style Quotation
   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 Quote
   Category         MainText
   Margin           Static
   LatexType        Environment
-  LatexName        quote}%{
+  LatexName        quote
   NextNoIndent     1
   LeftMargin       MMM
   RightMargin      MMM
@@ -977,15 +1100,21 @@ Style Quote
   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
 
-
 Style Verse
   # LaTeX type is first dynamic because of LaTeX implementation.
   # In LyX this does not make sense.
   Category         MainText
   LatexType        Environment
-  LatexName        verse}%{
+  LatexName        verse
   Margin           First_Dynamic
   NextNoIndent     1
   LeftMargin       MMMM
@@ -997,33 +1126,20 @@ Style Verse
   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
 
 
-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
-
-  # standard font definition
-  Font 
-    Size           Huge
-    Series         Bold
-    Color          Blue
-  EndFont
-End
-
+#
+# THEOREMS AND SUCH
+#
 
-# Theorems and such section
 Style Corollary
    Category        Theorems
    Margin          First_Dynamic
@@ -1033,42 +1149,47 @@ Style Corollary
    Align           Left
    LabelType       Static
    LabelSep        xx
-
-   LatexName       corollary}%{
+   LatexName       corollary
    LabelString     "Corollary."
    ParSkip         0.5
    TopSep          1
    BottomSep       1
    ParSep          0
    KeepEmpty       1
-   # font & label font definition
    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}%{
+  LatexName        definition
   LabelString      "Definition."
 End
 
 Style Definitions
   CopyStyle        Corollary
-  LatexName        definitions}%{
+  LatexName        definitions
   LabelString      "Definitions."
 End
 
 Style Example
   CopyStyle        Corollary
-  LatexName        example}%{
+  LatexName        example
   LabelString      "Example."
-
   LabelFont
     Series         Bold
     Color          Green
@@ -1077,31 +1198,33 @@ End
 
 Style Examples
   CopyStyle        Corollary
-  LatexName        examples}%{
+  LatexName        examples
   LabelString      "Examples."
 End
 
-
 Style Fact
   CopyStyle        Corollary
-  LatexName        fact}%{
+  LatexName        fact
   LabelString      "Fact."
 End
 
 Style Proof
   CopyStyle        Corollary
-  LatexName        proof}%{
+  LatexName        proof
   LabelString      "Proof."
 End
 
 Style Theorem
   CopyStyle        Corollary
-  LatexName        theorem}%{
+  LatexName        theorem
   LabelString      "Theorem."
 End
 
-# Misc. section
-# Separator style definition
+
+#
+# MISC.
+#
+
 Style Separator
   Category         MainText
   LatexType        Paragraph
@@ -1118,7 +1241,6 @@ Style Separator
   LabelBottomSep   0
   LabelString      "___"
   KeepEmpty        1
-
   LabelFont 
     Series         Medium
     Size           Normal
@@ -1127,7 +1249,7 @@ Style Separator
 End
  
 Style LyX-Code
-  Category              MainText
+  Category         MainText
   Margin           Static
   LatexType        Environment
   LatexName        lyxcode
@@ -1140,8 +1262,6 @@ Style LyX-Code
   AlignPossible    Block, Left, Right, Center
   LabelType        No_Label
   FreeSpacing      1
-
-  # define the environment lyxcode
   Preamble
   \newenvironment{lyxcode}
     {\par\begin{list}{}{
@@ -1157,8 +1277,6 @@ Style LyX-Code
      \item[]}
     {\end{list}}
   EndPreamble
-
-  # standard font definition
   Font 
     Family         Typewriter
   EndFont
@@ -1168,7 +1286,8 @@ Style NoteItem
   Category         MainText
   Margin           Static
   LatexType        Command
-  LatexName        note[item]
+  LatexName        note
+  LatexParam       [item]
   ParSkip          0.5
   TopSep           1
   BottomSep        1
@@ -1177,63 +1296,213 @@ Style NoteItem
   LabelType        Static
   LabelSep         xx
   LabelString      "Note:"
-  OptionalArgs     1
   LeftMargin       "Note:xx"
-  # standard font definition
   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
  
 
-# Input lyxmacros.inc
+#
+# CHARSTYLES
+#
 
-# Charstyles:
+InsetLayout Flex:Emphasize
+  LyXType          charstyle
+  LabelString      Emphasize
+  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
 
 InsetLayout Flex:Alert
-  LyXType charstyle
-  LabelString 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
 
-
 InsetLayout Flex:Structure
-  LyXType charstyle
-  LabelString 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
 
+InsetLayout Flex:Only
+  LyXType          charstyle
+  LabelString      Only
+  LatexType        command
+  LatexName        only
+  Font
+    Color          red
+  EndFont
+  Argument 1
+    LabelString    "Action"
+    MenuString     "Action Specifications|S"
+    Tooltip        "Specify the overlay settings (see beamer manual)"
+    LeftDelim      <
+    RightDelim     >
+  EndArgument
+End
 
-InsetLayout Flex:ArticleMode
-   LyXType     custom
-   LatexName   mode<article>
-   LatexType   command
-   Decoration   classic
-   LabelString Article
-   MultiPar     true
+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     >
+  EndArgument
+End
+
+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     >
+  EndArgument
+End
+
+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     >
+  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
+
+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
 
 InsetLayout Flex:PresentationMode
-   LyXType     custom
-   LatexName   mode<presentation>
-   LatexType   command
-   Decoration   classic
-   LabelString Presentation
-   MultiPar     true
+   LyXType         custom
+   LatexName       mode
+   LatexParam      <presentation>
+   LatexType       command
+   Decoration      classic
+   LabelString     Presentation
+   MultiPar        true
 End
 
 
+#
+# FLOATS
+#
+
 Float
   Type             table
   GuiName          Table
@@ -1247,7 +1516,6 @@ Float
   ListCommand      listoftables
 End
 
-
 Float
   Type             figure
   GuiName          Figure
@@ -1262,18 +1530,4 @@ Float
 End
 
 
-# to give users the choice of a title frame with and without
-# head-/footline, we define our own maketitle command
-TitleLaTeXName makebeamertitle
-
-AddToPreamble
-  % this default might be overridden by plain title style
-  \newcommand\makebeamertitle{\frame{\maketitle}}%
-  \AtBeginDocument{
-    \let\origtableofcontents=\tableofcontents
-    \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
-    \def\gobbletableofcontents#1{\origtableofcontents}
-  }
-EndPreamble
-
 Input theorems-refprefix.inc