]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/beamer.layout
Fix #7495 by adding layouts for ctex document classes and
[lyx.git] / lib / layouts / beamer.layout
index 55d5b949d1febde478991540a0e1f4e255b3948d..e5312ae5714c008787cf3efb4a65397787039be1 100644 (file)
@@ -1,22 +1,14 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[beamer,pgf.sty,xcolor.sty]{presentation (beamer)}
+#  \DeclareLaTeXClass[beamer,amssymb.sty,hyperref.sty,pgf.sty,xcolor.sty,xxcolor.sty]{presentation (beamer)}
 # Author : Till Tantau <tantau@users.sourceforge.net>
 
 # $Header: /cvsroot/latex-beamer/latex-beamer/lyx/layouts/beamer.layout,v 1.16 2004/10/07 20:53:07 tantau Exp $
 
 # Includes
-Format 6
+Format 35
 Input stdcounters.inc
 Input stdinsets.inc
 
-# local counters
-
-# Is this needed? Could probably go -- MV 16/05/2007
-Counter
-  Name                 figure
-  Name                 lyxframeend{}\section
-End
-
 
 # General textclass parameters
 Columns            1
@@ -25,6 +17,7 @@ SecNumDepth        2
 TocDepth           2
 DefaultStyle       Standard
 Provides hyperref  1
+Provides geometry  1
 
 DefaultFont
   Family           Sans
@@ -37,6 +30,7 @@ EndFont
 
 # Standard style definition
 Style Standard
+  Category         MainText
   Margin           Static
   LatexType        Paragraph
   LatexName        dummy
@@ -50,6 +44,7 @@ End
 # List section
 # Itemize style definition
 Style Itemize
+  Category         List
   Margin           Static
   LatexType        Item_Environment
   LatexName        itemize
@@ -68,6 +63,7 @@ End
 
 # Enumerate style definition
 Style Enumerate
+  Category         List
   Margin           Static
   LatexType        Item_Environment
   LatexName        enumerate
@@ -82,10 +78,12 @@ Style Enumerate
   ParSep           0.3
   Align            Left
   LabelType        Enumerate
+  RefPrefix        enu
 End
 
 # Description style definition
 Style Description
+  Category         List
   Margin           First_Dynamic
   LatexType        Item_environment
   LatexName        description
@@ -111,6 +109,7 @@ End
 # Sectioning section
 # Part style definition
 Style Part
+  Category         Section
   Margin           Dynamic
   LatexType        Command
   LatexName        part
@@ -125,6 +124,7 @@ Style Part
   Align            Center
   LabelType        Static
   LabelString      "Part"
+       RefPrefix        part
 
   # standard font definition
   Font 
@@ -136,10 +136,12 @@ Style Part
   LabelFont
     Color          Latex
   EndFont
+       TocLevel 0
 End
 
 # Section style definition
 Style Section
+  Category         Section
   Margin           First_Dynamic
   LatexType        Command
   LatexName        lyxframeend{}\section
@@ -154,6 +156,7 @@ Style Section
   LabelType        Counter
   LabelCounter     section
   LabelString      "Section \arabic{section}"
+       RefPrefix        sec
   OptionalArgs     1
 
   Font 
@@ -172,6 +175,7 @@ End
 # Section* style definition
 Style Section*
   CopyStyle        Section
+  Category         Unnumbered
   Margin           Static
   LatexName        lyxframeend{}\section*
   LabelType        No_Label
@@ -180,6 +184,7 @@ End
 
 # Subsection style definition
 Style Subsection
+  Category         Section
   Margin           First_Dynamic
   LatexType        Command
   LatexName        lyxframeend{}\subsection
@@ -194,6 +199,7 @@ Style Subsection
   LabelType        Counter
   LabelCounter     subsection
   LabelString      "Subsection \arabic{section}.\arabic{subsection}"
+       RefPrefix        sub
   OptionalArgs     1
 
   # standard font definition
@@ -213,6 +219,7 @@ End
 # Subsection* style definition
 Style Subsection*
   CopyStyle        Subsection
+  Category         Unnumbered
   Margin           Static
   LatexName        lyxframeend{}\subsection*
   LabelType        No_Label
@@ -221,6 +228,7 @@ End
 
 # Frame control definition
 Style BeginFrame
+  Category         Frames
   TocLevel         4
   KeepEmpty        1
   LatexType        Command
@@ -251,7 +259,6 @@ Style BeginFrame
   EndFont
 
   Preamble
-    \makeatletter
     \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
     \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
     \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
@@ -259,11 +266,11 @@ Style BeginFrame
     \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
     \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
       \frame<#1>[#2][#3]{\frametitle{#4}#5}}
-    \makeatother
   EndPreamble
 End
 
 Style BeginPlainFrame
+  Category          Frames
   TocLevel          4
   KeepEmpty         1
   LatexType         Command
@@ -293,16 +300,15 @@ Style BeginPlainFrame
   EndFont
 
   Preamble
-    \makeatletter
     \long\def\lyxplainframe#1{\@lyxplainframe#1\@lyxframestop}%
     \def\@lyxplainframe{\@ifnextchar<{\@@lyxplainframe}{\@@lyxplainframe<*>}}%
     \long\def\@@lyxplainframe<#1>#2\@lyxframestop#3\lyxframeend{%
       \frame<#1>[plain]{\frametitle{#2}#3}}
-    \makeatother
   EndPreamble
 End
 
 Style AgainFrame
+  Category          Frames
   KeepEmpty         0
   LatexType         Command
   LatexName         lyxframeend{}\lyxagainframe
@@ -332,17 +338,16 @@ Style AgainFrame
   EndFont
 
   Preamble
-    \makeatletter
     \long\def\lyxagainframe#1{\@lyxagainframe#1\@lyxframestop}%
     \def\@lyxagainframe{\@ifnextchar<{\@@lyxagainframe}{\@@lyxagainframe<*>}}%
     \def\@@lyxagainframe<#1>{\@ifnextchar[{\@@@lyxagainframe<#1>}{\@@@lyxagainframe<#1>[]}}
     \long\def\@@@lyxagainframe<#1>[#2]#3\@lyxframestop{%
       \againframe<#1>[#2]{#3}}
-    \makeatother
   EndPreamble
 End
 
 Style EndFrame
+  Category          Frames
   KeepEmpty         1
   LatexType         Command
   LatexName         lyxframeend
@@ -371,6 +376,7 @@ End
 
 # Frame decoration section
 Style FrameSubtitle
+  Category         Frames
   Margin           Static
   LatexType        Command
   LatexName        framesubtitle
@@ -393,6 +399,7 @@ End
 
 
 Style Column
+  Category         Columns
   Margin           Static
   LatexType        Command
   LatexName        column
@@ -417,6 +424,7 @@ End
 
 
 Style Columns
+  Category         Columns
   KeepEmpty        1
   Margin           Static
   LatexType        Environment
@@ -445,6 +453,7 @@ Style Columns
 End
 
 Style ColumnsCenterAligned
+  Category         Columns
   KeepEmpty        1
   Margin           Static
   LatexType        Environment
@@ -475,6 +484,7 @@ Style ColumnsCenterAligned
 End
 
 Style ColumnsTopAligned
+  Category         Columns
   KeepEmpty        1
   Margin           Static
   LatexType        Environment
@@ -506,6 +516,7 @@ End
 
 # Frame progression section
 Style Pause
+  Category          Overlays
   KeepEmpty         1
   LatexType         Command
   LatexName         pause
@@ -531,6 +542,7 @@ Style Pause
 End
 
 Style Overprint
+  Category         Overlays
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -557,6 +569,7 @@ Style Overprint
 End
 
 Style OverlayArea
+  Category         Overlays
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -582,6 +595,7 @@ Style OverlayArea
 End
 
 Style Uncover
+  Category         Overlays
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -607,6 +621,7 @@ Style Uncover
 End
 
 Style Only
+  Category         Overlays
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -633,6 +648,7 @@ End
 
 # Blocks section
 Style Block
+  Category         Blocks
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -642,8 +658,8 @@ Style Block
   LabelSep         xx
 
   LatexName        block
-  LabelString      "Block ( ERT[{title}] body ):"
-
+  LabelString      "Block:"
+  
   ParSkip          0.5
   TopSep           1
   BottomSep        1
@@ -658,6 +674,7 @@ Style Block
 End
 
 Style ExampleBlock
+  Category         Blocks
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -667,8 +684,8 @@ Style ExampleBlock
   LabelSep         xx
 
   LatexName        exampleblock
-  LabelString      "Block ( ERT[{title}] example text ):"
-
+  LabelString      "Example Block:"
+  
   ParSkip          0.5
   TopSep           1
   BottomSep        1
@@ -687,6 +704,7 @@ Style ExampleBlock
 End
 
 Style AlertBlock
+  Category         Blocks
   Margin           First_Dynamic
   LatexType        Environment
   NextNoIndent     0
@@ -696,8 +714,8 @@ Style AlertBlock
   LabelSep         xx
 
   LatexName        alertblock
-  LabelString      "Block ( ERT[{title}] alert text ):"
-
+  LabelString      "Alert Block:"
+  
   ParSkip          0.5
   TopSep           1
   BottomSep        1
@@ -718,6 +736,7 @@ End
 # Title slide data section
 # Title style definition
 Style Title
+  Category         Titling
   Margin           Static
   LatexType        Command
   InTitle          1
@@ -749,6 +768,7 @@ Style Title_(Plain_Frame)
 End
 
 Style Subtitle
+  Category         Titling
   Margin           Static
   LatexType        Command
   InTitle          1
@@ -773,6 +793,7 @@ End
 
 # Author style definition
 Style Author
+  Category         Titling
   Margin           Static
   LatexType        Command
   InTitle          1
@@ -794,6 +815,7 @@ Style Author
 End
 
 Style Institute
+  Category         Titling
   Margin           Dynamic
   LatexType        Command
   InTitle          1
@@ -813,8 +835,30 @@ Style Institute
   EndFont
 End
 
+InsetLayout "Flex:InstituteMark"
+  LyxType          custom
+  LatexType        command
+  LatexName        inst
+  LabelString      "Institute mark"
+  Font
+    Color          foreground
+    Size           Small
+    Family         Roman
+    Shape          Up
+    Series         Medium
+    Misc           No_Emph
+    Misc           No_Noun
+    Misc           No_Bar
+  EndFont
+  LabelFont
+    Color          blue
+    Size           Small
+  EndFont
+End
+
 # Date style definition
 Style Date
+  Category         Titling
   Margin           Dynamic
   LatexType        Command
   InTitle          1
@@ -837,6 +881,7 @@ End
 # Titles & bibliography section
 # Bibliography style definition
 Style Bibliography
+  Category         BackMatter
   Margin           First_Dynamic
   LatexType        Bib_Environment
   LatexName        thebibliography
@@ -859,7 +904,64 @@ Style Bibliography
   EndFont
 End
 
+Style Quotation
+  Category         MainText
+  Margin           Static
+  LatexType        Environment
+  LatexName        quotation}%{
+  NextNoIndent     1
+  LeftMargin       MMM
+  RightMargin      MMM
+  ParIndent        MM
+  ParSkip          0
+  ItemSep          0
+  TopSep           0.5
+  BottomSep        0.5
+  ParSep           0
+  Align            Block
+  AlignPossible    Block, Left, Right, Center
+End
+
+
+Style Quote
+  Category         MainText
+  Margin           Static
+  LatexType        Environment
+  LatexName        quote}%{
+  NextNoIndent     1
+  LeftMargin       MMM
+  RightMargin      MMM
+  TopSep           0.5
+  ParSep           0.5
+  BottomSep        0.5
+  Align            Block
+  AlignPossible    Block, Left, Right, Center
+  LabelType        No_Label
+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}%{
+  Margin           First_Dynamic
+  NextNoIndent     1
+  LeftMargin       MMMM
+  LabelIndent      MMMM
+  ParSkip          0.4
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.5
+  Align            Block
+  AlignPossible    Block, Left
+  LabelType        No_Label
+End
+
+
 Style TitleGraphic
+  Category         Titling
   Margin           Static
   LatexType        Command
   InTitle          1
@@ -878,12 +980,12 @@ Style TitleGraphic
     Series         Bold
     Color          Blue
   EndFont
-
 End
 
 
 # Theorems and such section
 Style Corollary
+   Category        Theorems
    Margin          First_Dynamic
    LatexType       Environment
    NextNoIndent    0
@@ -961,6 +1063,7 @@ End
 # Misc. section
 # Separator style definition
 Style Separator
+  Category         MainText
   LatexType        Paragraph
   LatexName        dummy
   ParIndent        MM
@@ -984,6 +1087,7 @@ Style Separator
 End
  
 Style LyX-Code
+  Category              MainText
   Margin           Static
   LatexType        Environment
   LatexName        lyxcode
@@ -1000,7 +1104,7 @@ Style LyX-Code
   # define the environment lyxcode
   Preamble
   \newenvironment{lyxcode}
-    {\begin{list}{}{
+    {\par\begin{list}{}{
       \setlength{\rightmargin}{\leftmargin}
       \setlength{\listparindent}{0pt}% needed for AMS classes
       \raggedright
@@ -1021,6 +1125,7 @@ Style LyX-Code
 End
  
 Style NoteItem
+  Category         MainText
   Margin           Static
   LatexType        Command
   LatexName        note[item]
@@ -1047,10 +1152,10 @@ End
 
 # Charstyles:
 
-InsetLayout CharStyle:Alert
-       LyXType charstyle
-       LabelString Alert
-  LatexType        Command
+InsetLayout Flex:Alert
+  LyXType charstyle
+  LabelString Alert
+  LatexType        command
   LatexName        alert
   Font
     Color          red
@@ -1058,10 +1163,10 @@ InsetLayout CharStyle:Alert
 End
 
 
-InsetLayout CharStyle:Structure
-       LyXType charstyle
-       LabelString Structure
-  LatexType        Command
+InsetLayout Flex:Structure
+  LyXType charstyle
+  LabelString Structure
+  LatexType        command
   LatexName        structure
   Font
     Color          blue
@@ -1069,6 +1174,26 @@ InsetLayout CharStyle:Structure
 End
 
 
+InsetLayout Flex:ArticleMode
+   LyXType     custom
+   LatexName   mode<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
+End
+
+
 Float
   Type             table
   GuiName          Table
@@ -1077,9 +1202,12 @@ Float
   NumberWithin     none
   Style            plain
   ListName         "List of Tables"
-  LaTeXBuiltin     true
+  IsPredefined     true
+  UsesFloatPkg     false
+  ListCommand      listoftables
 End
-  
+
+
 Float
   Type             figure
   GuiName          Figure
@@ -1088,14 +1216,17 @@ Float
   NumberWithin     none
   Style            plain
   ListName         "List of Figures"
-  LaTeXBuiltin     true
+  IsPredefined     true
+  UsesFloatPkg     false
+  ListCommand      listoffigures
 End
 
+
 # to give users the choice of a title frame with and without
 # head-/footline, we define our own maketitle command
 TitleLaTeXName makebeamertitle
 
-Preamble
+AddToPreamble
   % this default might be overridden by plain title style
   \newcommand\makebeamertitle{\frame{\maketitle}}%
   \AtBeginDocument{
@@ -1105,3 +1236,4 @@ Preamble
   }
 EndPreamble
 
+Input theorems-refprefix.inc