lyx_mirror/lib/layouts/scrarticle-beamer.layout
Juergen Spitzmueller 72ee3a1b17 Categorize existing layouts
* Add \DeclareCategory statement
* Rewrite descriptions
2012-10-09 07:24:32 +02:00

35 lines
1.2 KiB
Plaintext

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[scrartcl,beamerarticle.sty,keyval.sty,pgf.sty]{Beamer Article (KOMA-Script)}
# \DeclareCategory{Articles}
# Author : Jürgen Spitzmüller <j.spitzmueller@gmx.de>
Format 36
# Includes
Input beamer.layout
Preamble
\usepackage{beamerarticle,pgf}
% 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
# Frame control definition
Style BeginFrame
# This redefinition is needed to make beamerarticle work
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>[#3]{\frametitle{#4}#5}}
EndPreamble
End