]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/beamer.layout
Introduce NeedCProtect -1 layout option
[lyx.git] / lib / layouts / beamer.layout
index 75b4a60a5dc55c488725710bf3054a79e49e5023..9649aeb531f462dedcbd25b2a255cd86fa9a0dd5 100644 (file)
@@ -1,12 +1,12 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[beamer,amssymb.sty,hyperref.sty,pgf.sty,xcolor.sty,xxcolor.sty]{Beamer}
+#  \DeclareLaTeXClass[beamer]{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.
+#   Richard Kimberly Heck <rikiheck@lyx.org>, Martin Vermeer <martin.vermeer@hut.fi> and probably others.
 
 
-Format 42
+Format 104
 
 #
 # GLOBAL SETTINGS
@@ -18,6 +18,8 @@ Input stdinsets.inc
 
 # Beamer does not work with enumitem.
 # See bug #7047.
+# For upstream (Beamer) feature request:
+#   https://github.com/josephwright/beamer/issues/342
 ExcludesModule enumitem
 
 # General textclass parameters
@@ -28,6 +30,7 @@ TocDepth           2
 DefaultStyle       Standard
 
 # Pre-loaded packages
+Provides amsmath   1
 Provides hyperref  1
 Provides geometry  1
 Provides color     1
@@ -70,6 +73,7 @@ Style Standard
   Align            Left
   AlignPossible    Block, Left, Right, Center
   LabelType        No_Label
+  DocBookTag       para
 End
 
 
@@ -83,10 +87,11 @@ Style Itemize
   LatexType        Item_Environment
   LatexName        itemize
   Argument 1
-    LabelString    "Overlay Specifications|S"
+    LabelString    "Overlay Specifications|v"
     Tooltip        "Overlay specifications for this list"
     LeftDelim      [<
     RightDelim     >]
+    PassThru       1
   EndArgument
   Argument item:1
     LabelString   "Custom Item|s"
@@ -98,8 +103,20 @@ Style Itemize
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
+  EndArgument
+  Argument listpreamble:1
+    LabelString    "List preamble"
+    MenuString     "List Preamble"
+    Tooltip        "LaTeX code to be inserted before the first item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
   EndArgument
   NextNoIndent     1
+  ToggleIndent     Never
   LeftMargin       MMN
   LabelSep         xx
   ItemSep          0.2
@@ -108,6 +125,9 @@ Style Itemize
   ParSep           0.3
   Align            Left
   LabelType        Itemize
+  DocBookTag            itemizedlist
+  DocBookItemTag        listitem
+  DocBookItemInnerTag   para
 End
 
 Style Enumerate
@@ -116,10 +136,11 @@ Style Enumerate
   LatexType        Item_Environment
   LatexName        enumerate
   Argument 1
-    LabelString    "Overlay Specifications|S"
+    LabelString    "Overlay Specifications|v"
     Tooltip        "Overlay specifications for this list"
     LeftDelim      [<
     RightDelim     >]
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Mini Template"
@@ -135,8 +156,20 @@ Style Enumerate
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
+  EndArgument
+  Argument listpreamble:1
+    LabelString    "List preamble"
+    MenuString     "List Preamble"
+    Tooltip        "LaTeX code to be inserted before the first item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
   EndArgument
   NextNoIndent     1
+  ToggleIndent     Never
   LeftMargin       MMN
   LabelSep         xx
   ParSkip          0.0
@@ -147,6 +180,15 @@ Style Enumerate
   Align            Left
   LabelType        Enumerate
   RefPrefix        enu
+  DocBookTag            orderedlist
+  DocBookItemTag        listitem
+  DocBookItemInnerTag   para
+  HTMLStyle
+      ol.enumi   { list-style-type: decimal; }
+      ol.enumii  { list-style-type: lower-latin; }
+      ol.enumiii { list-style-type: lower-roman; }
+      ol.enumiv  { list-style-type: upper-latin; }
+  EndHTMLStyle
 End
 
 Style Description
@@ -155,21 +197,33 @@ Style Description
   LatexType        Item_environment
   LatexName        description
   Argument 1
-    LabelString    "Overlay Specifications|S"
+    LabelString    "Overlay Specifications|v"
     Tooltip        "Overlay specifications for this list"
     LeftDelim      [<
     RightDelim     >]
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Longest label|s"
     Tooltip        "The longest label in this list (to determine the indendation width)"
   EndArgument
+  Argument listpreamble:1
+    LabelString    "List preamble"
+    MenuString     "List Preamble"
+    Tooltip        "LaTeX code to be inserted before the first item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
+  EndArgument
   Argument item:1
     MenuString    "Item Overlay Specifications"
     LabelString   "On Slide"
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   NextNoIndent     1
   LeftMargin       MM
@@ -181,9 +235,15 @@ Style Description
   ParSep           0.3
   Align            Left
   LabelType        Manual
-  LabelFont 
+  LabelFont
     Series         Bold
   EndFont
+  DocBookTag            variablelist
+  DocBookItemWrapperTag varlistentry
+  DocBookItemTag        listitem
+  DocBookItemInnerTag   para
+  DocBookItemLabelTag   term
+  DocBookItemLabelTagType   paragraph
 End
 
 
@@ -202,13 +262,17 @@ Style Part
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Short Title|S"
     Tooltip        "The part as it appears in the table of contents/running headers"
+    InsertCotext   1
+    IsTocCaption   1
   EndArgument
   NeedProtect      1
   NextNoIndent     1
+  ToggleIndent     Never
   Labelsep         xx
   ParSkip          0.4
   TopSep           4
@@ -218,7 +282,7 @@ Style Part
   LabelType        Static
   LabelString      "Part"
   RefPrefix        part
-  Font 
+  Font
     Family         Roman
     Series         Bold
     Size           Huge
@@ -226,23 +290,25 @@ Style Part
   LabelFont
     Color          Latex
   EndFont
-  TocLevel         0
+  TocLevel         -1
+  HTMLTag          h2
 End
 
 Style Section
   Category         Sectioning
   Margin           First_Dynamic
   LatexType        Command
-  LatexName        lyxframeend{}\section
+  LatexName        section
   NeedProtect      1
   NextNoIndent     1
+  ToggleIndent     Never
   LabelSep         xx
   ParSkip          0.4
   TopSep           2
   BottomSep        0.25
   ParSep           0.7
   Align            Left
-  LabelType        Counter
+  LabelType        Static
   LabelCounter     section
   LabelString      "Section \arabic{section}"
   RefPrefix        sec
@@ -252,28 +318,32 @@ Style Section
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Short Title|S"
     Tooltip        "The section as it appears in the table of contents/running headers"
+    InsertCotext   1
+    IsTocCaption   1
   EndArgument
-  Font 
+  Font
     Family         Roman
     Series         Bold
     Size           huge
   EndFont
-  LabelFont 
+  LabelFont
     Color          latex
   EndFont
   LabelStringAppendix "\Alph{section}"
   TocLevel         1
+  HTMLTag          h3
 End
 
 Style Section*
   CopyStyle        Section
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\section
+  LatexName        section
   LabelType        No_Label
   ResetArgs        1
   Argument 1
@@ -282,55 +352,63 @@ Style Section*
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   LaTeXParam       *
+  HTMLInToc        0
+  HTMLTag          h3
 End
 
 Style Subsection
   Category         Sectioning
   Margin           First_Dynamic
   LatexType        Command
-  LatexName        lyxframeend{}\subsection
+  LatexName        subsection
   NeedProtect      1
   NextNoIndent     1
+  ToggleIndent     Never
   LabelSep         xx
   ParSkip          0.4
   TopSep           2
   BottomSep        0.25
   ParSep           0.5
   Align            Left
-  LabelType        Counter
+  LabelType        Static
   LabelCounter     subsection
   LabelString      "Subsection \arabic{section}.\arabic{subsection}"
-  RefPrefix        sub
+  RefPrefix        subsec
   Argument 1
     LabelString    "Mode"
     MenuString     "Mode Specification|S"
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Short Title|S"
     Tooltip        "The subsection as it appears in the table of contents/running headers"
+    InsertCotext   1
+    IsTocCaption   1
   EndArgument
-  Font 
+  Font
     Family         Roman
     Series         Bold
     Size           larger
   EndFont
-  LabelFont 
+  LabelFont
     Color          latex
   EndFont
   LabelStringAppendix "\arabic{section}.\arabic{subsection}"
   TocLevel         2
+  HTMLTag          h4
 End
 
 Style Subsection*
   CopyStyle        Subsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsection
+  LatexName        subsection
   LabelType        No_Label
   ResetArgs        1
   Argument 1
@@ -339,24 +417,27 @@ Style Subsection*
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   LaTeXParam       *
+  HTMLInToc        0
 End
 
 Style Subsubsection
   Category         Sectioning
   Margin           First_Dynamic
   LatexType        Command
-  LatexName        lyxframeend{}\subsubsection
+  LatexName        subsubsection
   NeedProtect      1
   NextNoIndent     1
+  ToggleIndent     Never
   LabelSep         xx
   ParSkip          0.4
   TopSep           2
   BottomSep        0.25
   ParSep           0.5
   Align            Left
-  LabelType        Counter
+  LabelType        Static
   LabelCounter     subsubsection
   LabelString      "Subsubsection \arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
   RefPrefix        sub
@@ -366,17 +447,20 @@ Style Subsubsection
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Short Title|S"
     Tooltip        "The subsubsection as it appears in the table of contents/running headers"
+    InsertCotext   1
+    IsTocCaption   1
   EndArgument
-  Font 
+  Font
     Family         Roman
     Series         Bold
     Size           large
   EndFont
-  LabelFont 
+  LabelFont
     Color          latex
   EndFont
   LabelStringAppendix "\arabic{section}.\arabic{subsection}.\arabic{subsubsection}"
@@ -387,7 +471,7 @@ Style Subsubsection*
   CopyStyle        Subsubsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsubsection
+  LatexName        subsubsection
   LabelType        No_Label
   ResetArgs        1
   Argument 1
@@ -396,8 +480,10 @@ Style Subsubsection*
     Tooltip        "Specify in which mode (article, presentation etc.) this header appears"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   LaTeXParam       *
+  HTMLInToc        0
 End
 
 
@@ -405,100 +491,112 @@ End
 # FRAMES
 #
 
-Style BeginFrame
+Style Frame
   Category         Frames
+  Margin           First_Dynamic
+  LeftMargin       xx
+  LatexType        Environment
+  LatexName        frame
+  LabelString      "Frame"
   TocLevel         4
   KeepEmpty        1
-  LatexType        Command
-  LatexName        lyxframeend{}\lyxframe
-  Argument 1
-    LabelString    "Frame Options"
-    Tooltip        "Frame options (see beamer manual)"
-  EndArgument
-  Margin           First_Dynamic
   NextNoIndent     1
-  ParSkip          0
-  TopSep           2.5
-  BottomSep        0.5
-  ParSep           0
-  Align            Center
+  Align            Left
   LabelType        Static
-  LabelBottomSep   0
-  LeftMargin       M
   LabelSep         xx
-  LabelString      "Frame"
-  Font
-    Series         Bold
-    Size           Largest
-    Color          Blue
-  EndFont
-  LabelFont 
+  ParSkip          0.5
+  TopSep           1
+  BottomSep        1
+  ParSep           0
+  HTMLLabel        NONE
+  LabelFont
+    Size           largest
     Family         Roman
     Color          latex
   EndFont
-  Preamble
-    \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
-    \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
-    \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
-    \def\@@@lyxframe<#1>[{\@ifnextchar<{\@@@@@lyxframe<#1>[}{\@@@@lyxframe<#1>[<*>][}}
-    \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
-    \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
-      \frame<#1>[#2][#3]{\frametitle{#4}#5}}
-  EndPreamble
+  Argument 1
+    LabelString     "Action"
+    MenuString      "Overlay Specifications|v"
+    Tooltip         "Overlay specifications for this frame"
+    LeftDelim       <
+    RightDelim      >
+    PassThru       1
+  EndArgument
+  Argument 2
+    LabelString     "Default Overlay Specifications"
+    Tooltip         "Default overlay specifications within this frame"
+    LeftDelim       [<
+    RightDelim      >]
+    PassThru       1
+  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        textlabel1
+      Size         largest
+    EndFont
+    AutoInsert     1
+    IsTocCaption   1
+  EndArgument
+  AutoNests 
+       Standard,Itemize,Enumerate,Description,FrameTitle,FrameSubtitle,Column,
+       Columns,ColumnsCenterAligned,ColumnsTopAligned,Pause,Overprint,OverlayArea,Only,Block,
+       ExampleBlock,AlertBlock,Bibliography,Quotation,Quote,Verse,Corollary,Definition,Definitions,
+       Example,Examples,Fact,Lemma,Proof,Theorem,LyX-Code
+  EndAutoNests
+  NeedCProtect    -1
+End
+
+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 BeginPlainFrame
-  Category          Frames
-  TocLevel          4
-  KeepEmpty         1
-  LatexType         Command
-  LatexName         lyxframeend{}\lyxplainframe
-  Margin            First_Dynamic
-  NextNoIndent      1
-  ParSkip           0
-  TopSep            2.5
-  BottomSep         0.5
-  ParSep            0
-  Align             Center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        M
-  LabelSep          xx
-  LabelString       "Frame (no head/foot/sidebars)"
-  Font
-    Series          Bold
-    Size            Largest
-    Color           Blue
-  EndFont
-  LabelFont 
-    Family          Roman
-    Color           latex
-  EndFont
-  Preamble
-    \long\def\lyxplainframe#1{\@lyxplainframe#1\@lyxframestop}%
-    \def\@lyxplainframe{\@ifnextchar<{\@@lyxplainframe}{\@@lyxplainframe<*>}}%
-    \long\def\@@lyxplainframe<#1>#2\@lyxframestop#3\lyxframeend{%
-      \frame<#1>[plain]{\frametitle{#2}#3}}
-  EndPreamble
+Style FragileFrame
+  CopyStyle         Frame
+  LabelString       "Frame (fragile)"
+  Argument 3
+    MenuString      "Frame Options"
+    LabelString     "Options"
+    Tooltip         "Frame options (see beamer manual)"
+    PresetArg       "fragile"
+  EndArgument
 End
 
 Style AgainFrame
   Category          Frames
   KeepEmpty         0
   LatexType         Command
-  LatexName         lyxframeend{}\againframe
+  LatexName         againframe
   Argument 1
-    LabelString     "On Slide"
-    MenuString      "Overlay Specifications|S"
+    LabelString     "Slide"
+    MenuString      "Overlay Specifications|v"
     Tooltip         "Overlay specifications for this frame"
     LeftDelim       <
     RightDelim      >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString     "Default Overlay Specifications"
     Tooltip         "Default overlay specifications within this frame"
     LeftDelim       [<
     RightDelim      >]
+    PassThru       1
   EndArgument
   Argument 3
     MenuString      "Frame Options"
@@ -511,7 +609,6 @@ Style AgainFrame
   TopSep            3
   BottomSep         3
   ParSep            0
-  Align             Center
   LabelType         Static
   LabelBottomSep    0
   LeftMargin        M
@@ -520,38 +617,12 @@ Style AgainFrame
   Font
     Color           latex
   EndFont
-  LabelFont 
+  LabelFont
     Family          Roman
     Color           latex
-    Series          Bold
     Size            Largest
   EndFont
-End
-
-Style EndFrame
-  Category          Frames
-  KeepEmpty         1
-  LatexType         Command
-  LatexName         lyxframeend
-  Margin            First_Dynamic
-  ParSkip           0
-  TopSep            0
-  BottomSep         3
-  ParSep            0
-  Align             Center
-  LabelType         Static
-  LabelBottomSep    0
-  LeftMargin        MMMMM
-  LabelString       "________________________________"
-  LabelFont 
-    Family          typewriter
-    Series          Medium
-    Size            Normal
-    Color           latex
-  EndFont
-  Preamble
-    \def\lyxframeend{} % In case there is a superfluous frame end
-  EndPreamble
+  TocLevel          4
 End
 
 Style FrameTitle
@@ -564,23 +635,24 @@ Style FrameTitle
   TopSep           0
   BottomSep        1
   ParSep           1
-  Align            Center
+  Align            Block
   LabelType        No_Label
-  Font 
-    Series         Bold
-    Color          Blue
+  Font
+    Color          textlabel1
     Size           Largest
   EndFont
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Short Frame Title|S"
     Tooltip        "A short form of the frame title used in some themes"
+    InsertCotext   1
   EndArgument
 End
 
@@ -594,29 +666,29 @@ Style FrameSubtitle
   TopSep           0
   BottomSep        1
   ParSep           1
-  Align            Center
+  Align            Block
   LabelType        No_Label
-  Font 
-    Series         Bold
-    Color          Blue
+  Font
+    Color          textlabel1
   EndFont
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
 End
 
 
 #
-# COLUMS
+# COLUMNS
 #
 
 Style Column
   Category         Columns
-  Margin           Static
+  Margin           Dynamic
   LatexType        Command
   LatexName        column
   ParSkip          0.5
@@ -628,13 +700,13 @@ Style Column
   LabelType        Static
   LabelSep         xx
   LabelString      "Start column (increase depth!), width:"
+  ToggleIndent     Never
   Argument 1
     MenuString     "Column Options"
     LabelString    "Options"
     Tooltip        "Column options (see beamer manual)"
   EndArgument
-  LeftMargin       "Start column (increase depth!), width:xx"
-  LabelFont 
+  LabelFont
     Family         Roman
     Color          latex
   EndFont
@@ -643,16 +715,15 @@ End
 Style Columns
   Category         Columns
   KeepEmpty        1
-  Margin           Static
+  Margin           First_Dynamic
   LatexType        Environment
-  NextNoIndent     0
+  NextNoIndent     1
   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)"
@@ -661,17 +732,21 @@ Style Columns
   TopSep           1
   BottomSep        1
   ParSep           0
-  LabelFont 
+  LabelFont
     Family         Roman
     Color          latex
   EndFont
+  AutoNests 
+       Standard,Column,Itemize,Enumerate,Description,Pause,Overprint,OverlayArea,Only,Block,
+       ExampleBlock,AlertBlock,Bibliography,Quotation,Quote,Verse,Corollary,Definition,Definitions,
+       Example,Examples,Fact,Lemma,Proof,Theorem,LyX-Code
+  EndAutoNests
 End
 
 Style ColumnsCenterAligned
   CopyStyle        Columns
   LatexParam       [c]
   LabelString      "Columns (center aligned)"
-  LeftMargin       "Columns (center aligned)xx"
   ResetArgs        1
 End
 
@@ -679,7 +754,6 @@ Style ColumnsTopAligned
   CopyStyle        Columns
   LatexParam       [t]
   LabelString      "Columns (top aligned)"
-  LeftMargin       "Columns (top aligned)xx"
   ResetArgs        1
 End
 
@@ -727,12 +801,23 @@ Style Overprint
     LabelString    "Width"
     Tooltip        "The width of the overprint area (default: text width)"
   EndArgument
+  Argument listpreamble:1
+    LabelString    "List preamble"
+    MenuString     "List Preamble"
+    Tooltip        "LaTeX code to be inserted before the first item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
+  EndArgument
   Argument item:1
     MenuString    "Item Overlay Specifications"
     LabelString   "On Slide"
     Tooltip       "Overlay specifications for this item"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
     AutoInsert     1
   EndArgument
   NextNoIndent     1
@@ -743,9 +828,9 @@ Style Overprint
   BottomSep        0.7
   ParSep           0.3
   Align            Left
-  LabelType        Static
+  LabelType        Itemize
   LabelString      "Overprint"
-  LabelFont 
+  LabelFont
     Family         Roman
     Color          latex
   EndFont
@@ -766,7 +851,7 @@ Style OverlayArea
   TopSep           1
   BottomSep        1
   ParSep           0
-  LabelFont 
+  LabelFont
     Family         Roman
     Color          latex
   EndFont
@@ -798,16 +883,17 @@ Style Uncover
   TopSep           1
   BottomSep        1
   ParSep           0
-  LabelFont 
+  LabelFont
     Family         Roman
     Color          Latex
   EndFont
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
 End
 
@@ -832,10 +918,11 @@ Style Only
   EndFont
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
 End
 
@@ -869,6 +956,7 @@ Style Block
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Block Title"
@@ -876,11 +964,15 @@ Style Block
     Mandatory      1
     Decoration     conglomerate
     Font
-      Color        blue
+      Color        textlabel1
       Size         large
     EndFont
     AutoInsert     1
   EndArgument
+  AutoNests 
+       Standard,Itemize,Enumerate,Description,Pause,Overprint,OverlayArea,Only,Quotation,
+       Quote,Verse,Corollary,Definition,Definitions,Example,Examples,Fact,Lemma,Proof,Theorem,LyX-Code
+  EndAutoNests
 End
 
 Style ExampleBlock
@@ -888,7 +980,7 @@ Style ExampleBlock
   LatexName        exampleblock
   LabelString      "Example Block:"
   Font
-    Color          green
+    Color          textlabel2
   EndFont
 End
 
@@ -897,7 +989,7 @@ Style AlertBlock
   LatexName        alertblock
   LabelString      "Alert Block:"
   Font
-    Color          red
+    Color          error
   EndFont
 End
 
@@ -922,12 +1014,17 @@ Style Title
   Argument 1
     LabelString   "Short Title|S"
     Tooltip       "Short title which appears in the sidebar/header"
+    InsertCotext   1
+       # TODO: In DocBook, output it in a titleabbrev outside this title.
   EndArgument
-  Font 
+  Font
     Size           Huge
     Series         Bold
-    Color          Blue
+    Color          textlabel1
   EndFont
+  DocBookTag       title
+  DocBookTagType   paragraph
+  DocBookInInfo    maybe
 End
 
 Style Title_(Plain_Frame)
@@ -954,12 +1051,15 @@ Style Subtitle
   Argument 1
     LabelString   "Short Subtitle|S"
     Tooltip       "Short subtitle which appears in the sidebar/header"
+    InsertCotext   1
   EndArgument
-  Font 
+  Font
     Size           Large
     Series         Bold
-    Color          Blue
+    Color          textlabel1
   EndFont
+  DocBookTag       subtitle
+  DocBookInInfo    maybe
 End
 
 Style Author
@@ -977,11 +1077,17 @@ Style Author
   Argument 1
     LabelString   "Short Author|S"
     Tooltip       "Short author which appears in the sidebar/header"
+    InsertCotext   1
   EndArgument
-  Font 
+  Font
     Size           Largest
-    Color          Blue
+    Color          textlabel1
   EndFont
+  DocBookTag            personname
+  DocBookTagType        paragraph
+  DocBookWrapperTag     author
+  DocBookWrapperTagType inline
+  DocBookInInfo         always
 End
 
 Style Institute
@@ -999,10 +1105,11 @@ Style Institute
   Argument 1
     LabelString   "Short Institute|S"
     Tooltip       "Short institute which appears in the sidebar/header"
+    InsertCotext   1
   EndArgument
-  Font 
+  Font
     Size           Large
-    Color          Blue
+    Color          textlabel1
   EndFont
 End
 
@@ -1022,7 +1129,7 @@ InsetLayout "Flex:InstituteMark"
     Misc           No_Bar
   EndFont
   LabelFont
-    Color          blue
+    Color          textlabel1
     Size           Small
   EndFont
 End
@@ -1042,10 +1149,11 @@ Style Date
   Argument 1
     LabelString   "Short Date|S"
     Tooltip       "Short date which appears in the sidebar/header"
+    InsertCotext   1
   EndArgument
-  Font 
+  Font
     Size           Largest
-    Color          Blue
+    Color          textlabel1
   EndFont
 End
 
@@ -1062,10 +1170,10 @@ Style TitleGraphic
   ParSep           1
   Align            Center
   LabelType        No_Label
-  Font 
+  Font
     Size           Huge
     Series         Bold
-    Color          Blue
+    Color          textlabel1
   EndFont
 End
 
@@ -1080,6 +1188,7 @@ Style Bibliography
   LatexType        Bib_Environment
   LatexName        thebibliography
   NextNoIndent     1
+  ToggleIndent     Never
   LeftMargin       MM
   ParSkip          0.4
   ItemSep          0
@@ -1090,10 +1199,22 @@ Style Bibliography
   LabelType        Bibliography
   LabelString      "References"
   LabelBottomSep   0.7
-  LabelFont 
+  LabelFont
     Series         Bold
     Size           Larger
   EndFont
+  TocLevel         1
+  IsTocCaption     0
+  Argument listpreamble:1
+    LabelString    "Bib preamble"
+    MenuString     "Bibliography Preamble"
+    Tooltip        "LaTeX code to be inserted before the first bibliography item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
+  EndArgument
 End
 
 
@@ -1107,6 +1228,7 @@ Style Quotation
   LatexType        Environment
   LatexName        quotation
   NextNoIndent     1
+  ToggleIndent     Always
   LeftMargin       MMM
   RightMargin      MMM
   ParIndent        MM
@@ -1119,10 +1241,11 @@ Style Quotation
   AlignPossible    Block, Left, Right, Center
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
 End
 
@@ -1132,6 +1255,7 @@ Style Quote
   LatexType        Environment
   LatexName        quote
   NextNoIndent     1
+  ToggleIndent     Never
   LeftMargin       MMM
   RightMargin      MMM
   TopSep           0.5
@@ -1142,10 +1266,11 @@ Style Quote
   LabelType        No_Label
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
 End
 
@@ -1168,10 +1293,11 @@ Style Verse
   LabelType        No_Label
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
 End
 
@@ -1181,7 +1307,7 @@ End
 #
 
 Style Corollary
-   Category        Theorems
+   Category        Reasoning
    Margin          First_Dynamic
    LatexType       Environment
    NextNoIndent    0
@@ -1198,7 +1324,7 @@ Style Corollary
    KeepEmpty       1
    LabelFont
      Series        Bold
-     Color         Blue
+     Color         textlabel1
      Size          Large
    EndFont
   Argument 1
@@ -1207,11 +1333,15 @@ Style Corollary
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Additional Theorem Text"
     Tooltip        "Additional text appended to the theorem header"
   EndArgument
+  AutoNests 
+       Standard,Itemize,Enumerate,Description,Pause,Overprint,OverlayArea,Only,LyX-Code
+  EndAutoNests
 End
 
 Style Definition
@@ -1232,7 +1362,7 @@ Style Example
   LabelString      "Example."
   LabelFont
     Series         Bold
-    Color          Green
+    Color          textlabel2
   EndFont
 End
 
@@ -1248,6 +1378,12 @@ Style Fact
   LabelString      "Fact."
 End
 
+Style Lemma
+  CopyStyle        Corollary
+  LatexName        lemma
+  LabelString      "Lemma."
+End
+
 Style Proof
   CopyStyle        Corollary
   LatexName        proof
@@ -1265,29 +1401,6 @@ End
 # 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
   Category         MainText
   Margin           Static
@@ -1317,9 +1430,12 @@ Style LyX-Code
      \item[]}
     {\end{list}}
   EndPreamble
-  Font 
+  Font
     Family         Typewriter
   EndFont
+  DocBookTag            programlisting
+  DocBookTagType        paragraph
+  DocBookAttr                  language='lyx'
 End
  
 Style NoteItem
@@ -1337,17 +1453,21 @@ Style NoteItem
   LabelSep         xx
   LabelString      "Note:"
   LeftMargin       "Note:xx"
-  LabelFont 
+  LabelFont
     Family         Roman
     Color          latex
   EndFont
   Argument 1
     LabelString    "On Slide"
-    MenuString     "Overlay Specifications|S"
+    MenuString     "Overlay Specifications|v"
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
+  IsAutoNestedBy
+    Itemize,Enumerate
+  EndIsAutoNestedBy
 End
  
 
@@ -1370,7 +1490,10 @@ InsetLayout Flex:Bold
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Emphasize
@@ -1387,7 +1510,10 @@ InsetLayout Flex:Emphasize
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Alert
@@ -1396,7 +1522,7 @@ InsetLayout Flex:Alert
   LatexType        command
   LatexName        alert
   Font
-    Color          red
+    Color          error
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1404,7 +1530,10 @@ InsetLayout Flex:Alert
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Structure
@@ -1413,7 +1542,7 @@ InsetLayout Flex:Structure
   LatexType        command
   LatexName        structure
   Font
-    Color          blue
+    Color          textlabel1
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1421,7 +1550,10 @@ InsetLayout Flex:Structure
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Only
@@ -1430,7 +1562,7 @@ InsetLayout Flex:Only
   LatexType        command
   LatexName        only
   Font
-    Color          red
+    Color          textlabel3
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1438,8 +1570,11 @@ InsetLayout Flex:Only
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
     AutoInsert     1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Uncover
@@ -1448,7 +1583,7 @@ InsetLayout Flex:Uncover
   LatexType        command
   LatexName        uncover
   Font
-    Color          red
+    Color          textlabel3
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1456,8 +1591,11 @@ InsetLayout Flex:Uncover
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
     AutoInsert     1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Visible
@@ -1466,7 +1604,7 @@ InsetLayout Flex:Visible
   LatexType        command
   LatexName        visible
   Font
-    Color          red
+    Color          textlabel3
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1474,8 +1612,11 @@ InsetLayout Flex:Visible
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
     AutoInsert     1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Invisible
@@ -1484,7 +1625,7 @@ InsetLayout Flex:Invisible
   LatexType        command
   LatexName        invisible
   Font
-    Color          red
+    Color          textlabel3
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1492,8 +1633,11 @@ InsetLayout Flex:Invisible
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
     AutoInsert     1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Alternative
@@ -1502,7 +1646,7 @@ InsetLayout Flex:Alternative
   LatexType        command
   LatexName        alt
   Font
-    Color          red
+    Color          textlabel3
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1510,12 +1654,17 @@ InsetLayout Flex:Alternative
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
+    AutoInsert     1
   EndArgument
   Argument 2
     LabelString    "Default Text"
     Tooltip        "Enter the default text here"
     Mandatory      1
+    AutoInsert     1
   EndArgument
+  ResetsFont       true
+  CustomPars       false
 End
 
 InsetLayout Flex:Beamer_Note
@@ -1525,7 +1674,7 @@ InsetLayout Flex:Beamer_Note
   LatexName        note
   Decoration       Classic
   Font
-    Color          blue
+    Color          textlabel1
   EndFont
   Argument 1
     LabelString    "Action"
@@ -1533,11 +1682,13 @@ InsetLayout Flex:Beamer_Note
     Tooltip        "Specify the overlay settings (see beamer manual)"
     LeftDelim      <
     RightDelim     >
+    PassThru       1
   EndArgument
   Argument 2
     LabelString    "Note Options"
     Tooltip        "Specifiy note options (see beamer manual)"
   EndArgument
+  ResetsFont       true
 End
 
 InsetLayout Flex:ArticleMode
@@ -1548,6 +1699,7 @@ InsetLayout Flex:ArticleMode
    Decoration      classic
    LabelString     Article
    MultiPar        true
+   ResetsFont      true
 End
 
 InsetLayout Flex:PresentationMode
@@ -1558,6 +1710,7 @@ InsetLayout Flex:PresentationMode
    Decoration      classic
    LabelString     Presentation
    MultiPar        true
+   ResetsFont      true
 End
 
 
@@ -1565,6 +1718,8 @@ End
 # FLOATS
 #
 
+Input stdfloatnames.inc
+
 Float
   Type             table
   GuiName          Table
@@ -1576,6 +1731,7 @@ Float
   IsPredefined     true
   UsesFloatPkg     false
   ListCommand      listoftables
+  PrettyFormat     "Table ##"
 End
 
 Float
@@ -1589,6 +1745,7 @@ Float
   IsPredefined     true
   UsesFloatPkg     false
   ListCommand      listoffigures
+  PrettyFormat     "Figure ##"
 End