]> git.lyx.org Git - lyx.git/blob - lib/layouts/scrarticle-beamer.layout
Update all layouts to format 44.
[lyx.git] / lib / layouts / scrarticle-beamer.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[scrartcl,beamerarticle.sty,keyval.sty,pgf.sty]{Beamer Article (KOMA-Script)}
3 #  \DeclareCategory{Articles}
4 # Author: Jürgen Spitzmüller <spitz@lyx.org>
5
6 Format 44
7
8 # Includes
9 Input beamer.layout
10
11 # override settings inherited from beamer.layout
12 Provides geometry 0
13 Provides hyperref 0
14 Provides color    0
15 Provides xcolor   0
16
17 Preamble
18         \usepackage{beamerarticle,pgf}
19         % this default might be overridden by plain title style
20         \newcommand\makebeamertitle{\frame{\maketitle}}%
21         \AtBeginDocument{
22                 \let\origtableofcontents=\tableofcontents
23                 \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
24                 \def\gobbletableofcontents#1{\origtableofcontents}
25         }
26 EndPreamble
27
28 ##########################################
29 # OBSOLETE STUFF
30 # Everything below should be removed
31 # (but this is a file format change)
32 #
33 #  TODO:
34 #   * conversion of old frame
35 #     and plain frame to new layout
36 ##########################################
37
38 #
39 # Backwards compatible definitions
40 #
41
42 AddToPreamble
43 \providecommand\lyxframeend{}
44 EndPreamble
45
46 # Frame control definition
47 Style BeginFrame
48 # This redefinition is needed to make beamerarticle work
49   Preamble
50     \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
51     \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
52     \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
53     \def\@@@lyxframe<#1>[{\@ifnextchar<{\@@@@@lyxframe<#1>[}{\@@@@lyxframe<#1>[<*>][}}
54     \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
55     \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
56       \frame<#1>[#3]{\frametitle{#4}#5}}
57   EndPreamble
58 End