http://bugzilla.lyx.org/show_bug.cgi?id=3133

The attached patch adds a "Title (Plain Frame)" style that can
be used instead of "Title" to get a plain title frame (no head-/footlines
and navigation bars). This is somewhat hackish, as a big part of the beamer
implementation in LyX is, but it's as good as it gets, IMHO, since we only
can define TitleLaTeXName once currently.

Comments?

Jürgen

P.S.: José, I'm unsure about the file format policy in this specific case.
Would it require a file format change? If not, I'd like to commit this to
branch as well.
Index: lib/layouts/beamer.layout
===================================================================
--- lib/layouts/beamer.layout	(Revision 20240)
+++ lib/layouts/beamer.layout	(Arbeitskopie)
@@ -746,7 +746,14 @@
     Series         Bold
     Color          Blue
   EndFont
+End
 
+Style Title_(Plain_Frame)
+  CopyStyle        Title
+  Preamble
+     % plain title style, override default
+     \renewcommand\makelyxbeamertitle{\frame[plain]{\maketitle}}%
+  EndPreamble
 End
 
 Style Subtitle
@@ -1094,10 +1101,13 @@
   LaTeXBuiltin     true
 End
 
-TitleLaTeXName frame{\maketitle}
+# to give users the choice of a title frame with and without
+# head-/footline, we define our own maketitle command
+TitleLaTeXName makelyxbeamertitle
 
-
 Preamble
+  % this default might be overridden by plain title style
+  \newcommand\makelyxbeamertitle{\frame{\maketitle}}%
   \AtBeginDocument{
     \let\origtableofcontents=\tableofcontents
     [EMAIL PROTECTED]

Reply via email to