]> 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 54258e9cc3f1b842889b1be00c47f401b6d23ab0..d4ad53be75abf3587c35c5bd7a7bd168c6d54abb 100644 (file)
@@ -47,6 +47,7 @@ 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}}
@@ -84,6 +85,19 @@ Style 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
@@ -104,10 +118,23 @@ Style 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"
+    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
@@ -130,10 +157,19 @@ Style 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"
+    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
@@ -161,6 +197,13 @@ Style Part
   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
@@ -204,6 +247,13 @@ Style 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
@@ -223,9 +273,17 @@ Style Section*
   CopyStyle        Section
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\section*
+  LatexName        lyxframeend{}\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 Subsection
@@ -246,6 +304,13 @@ Style 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
@@ -265,9 +330,17 @@ Style Subsection*
   CopyStyle        Subsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsection*
+  LatexName        lyxframeend{}\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
 
 Style Subsubsection
@@ -288,6 +361,13 @@ Style 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
@@ -307,9 +387,17 @@ Style Subsubsection*
   CopyStyle        Subsubsection
   Category         Unnumbered
   Margin           Static
-  LatexName        lyxframeend{}\subsubsection*
+  LatexName        lyxframeend{}\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
 
 
@@ -398,13 +486,23 @@ Style AgainFrame
   Category          Frames
   KeepEmpty         0
   LatexType         Command
-  LatexName         lyxframeend{}\lyxagainframe
+  LatexName         lyxframeend{}\againframe
   Argument 1
-    LabelString     "Overlay Specifications|S"
-    Tooltip         "Overlay specifications for this list"
+    LabelString     "On Slide"
+    MenuString      "Overlay Specifications|S"
+    Tooltip         "Overlay specifications for this frame"
+    LeftDelim       <
+    RightDelim      >
   EndArgument
   Argument 2
-    LabelString     "Frame Options"
+    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
@@ -428,13 +526,6 @@ Style AgainFrame
     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
@@ -479,6 +570,13 @@ Style FrameSubtitle
     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
 
 
@@ -501,7 +599,8 @@ Style Column
   LabelSep         xx
   LabelString      "Start column (increase depth!), width:"
   Argument 1
-    LabelString    "Column Options"
+    MenuString     "Column Options"
+    LabelString    "Options"
     Tooltip        "Column options (see beamer manual)"
   EndArgument
   LeftMargin       "Start column (increase depth!), width:xx"
@@ -607,6 +706,11 @@ Style Overprint
     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
@@ -628,6 +732,17 @@ Style OverlayArea
     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
@@ -638,7 +753,7 @@ Style Uncover
   ParIndent        MM
   Align            Left
   LabelType        Static
-  LatexName        uncoverenv}%{
+  LatexName        uncoverenv
   LabelSep         xx
   LabelString      "Uncovered on slides"
   ParSkip          0.5
@@ -649,6 +764,13 @@ Style Uncover
     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
@@ -659,7 +781,7 @@ Style Only
   ParIndent        MM
   Align            Left
   LabelType        Static
-  LatexName        onlyenv}%{
+  LatexName        onlyenv
   LabelSep         xx
   LabelString      "Only on slides"
   ParSkip          0.5
@@ -670,6 +792,13 @@ Style Only
     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
 
 
@@ -681,8 +810,7 @@ Style Block
   Category         Blocks
   Margin           Dynamic
   LatexType        Environment
-  NextNoIndent     0
-  ParIndent        MM
+  NextNoIndent     1
   Align            Left
   LabelType        Static
   LabelSep         xx
@@ -696,54 +824,41 @@ Style Block
     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
     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
     Color          red
   EndFont
-  LabelFont 
-    Family         Roman
-    Color          latex
-  EndFont
 End
 
 
@@ -950,7 +1065,7 @@ Style Quotation
   Category         MainText
   Margin           Static
   LatexType        Environment
-  LatexName        quotation}%{
+  LatexName        quotation
   NextNoIndent     1
   LeftMargin       MMM
   RightMargin      MMM
@@ -962,13 +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
@@ -978,6 +1100,13 @@ 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
@@ -985,7 +1114,7 @@ Style Verse
   # In LyX this does not make sense.
   Category         MainText
   LatexType        Environment
-  LatexName        verse}%{
+  LatexName        verse
   Margin           First_Dynamic
   NextNoIndent     1
   LeftMargin       MMMM
@@ -997,6 +1126,13 @@ 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
 
 
@@ -1013,7 +1149,7 @@ Style Corollary
    Align           Left
    LabelType       Static
    LabelSep        xx
-   LatexName       corollary}%{
+   LatexName       corollary
    LabelString     "Corollary."
    ParSkip         0.5
    TopSep          1
@@ -1025,23 +1161,34 @@ Style Corollary
      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
@@ -1051,25 +1198,25 @@ 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
 
@@ -1154,6 +1301,13 @@ Style NoteItem
     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
  
 
@@ -1161,6 +1315,23 @@ End
 # 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
@@ -1169,6 +1340,13 @@ InsetLayout Flex: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
@@ -1179,11 +1357,131 @@ InsetLayout Flex: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: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<article>
+   LatexName       mode
+   LatexParam      <article>
    LatexType       command
    Decoration      classic
    LabelString     Article