mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
* lib/layouts/article-beamer.layout:
* lib/layouts/scrarticle-beamer.layout: * lib/Makefile.am: * development/scons/scons_manifest.py: - new layouts that support beamerarticle.cls git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24289 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7fa7e2a9d9
commit
04a719f4a7
@ -2517,6 +2517,7 @@ lib_layouts_files = Split('''
|
||||
arab-article.layout
|
||||
armenian-article.layout
|
||||
article.layout
|
||||
article-beamer.layout
|
||||
beamer.layout
|
||||
book.layout
|
||||
broadway.layout
|
||||
@ -2573,6 +2574,7 @@ lib_layouts_files = Split('''
|
||||
revtex.layout
|
||||
revtex4.layout
|
||||
scrartcl.layout
|
||||
scrarticle-beamer.layout
|
||||
scrbook.layout
|
||||
scrlettr.layout
|
||||
scrlttr2.layout
|
||||
|
@ -949,6 +949,7 @@ dist_layouts_DATA =\
|
||||
layouts/arab-article.layout \
|
||||
layouts/armenian-article.layout \
|
||||
layouts/article.layout \
|
||||
layouts/article-beamer.layout \
|
||||
layouts/beamer.layout \
|
||||
layouts/book.layout \
|
||||
layouts/braille.module \
|
||||
@ -1027,6 +1028,7 @@ dist_layouts_DATA =\
|
||||
layouts/revtex.layout \
|
||||
layouts/revtex4.layout \
|
||||
layouts/scrartcl.layout \
|
||||
layouts/scrarticle-beamer.layout \
|
||||
layouts/scrbook.layout \
|
||||
layouts/scrclass.inc \
|
||||
layouts/scrlettr.layout \
|
||||
|
35
lib/layouts/article-beamer.layout
Normal file
35
lib/layouts/article-beamer.layout
Normal file
@ -0,0 +1,35 @@
|
||||
#% Do not delete the line below; configure depends on this
|
||||
# \DeclareLaTeXClass[article]{article (beamer)}
|
||||
# Author: Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
Format 7
|
||||
|
||||
# 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
|
||||
\makeatletter
|
||||
\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}}
|
||||
\makeatother
|
||||
EndPreamble
|
||||
End
|
35
lib/layouts/scrarticle-beamer.layout
Normal file
35
lib/layouts/scrarticle-beamer.layout
Normal file
@ -0,0 +1,35 @@
|
||||
#% Do not delete the line below; configure depends on this
|
||||
# \DeclareLaTeXClass[scrartcl]{article (koma + beamer)}
|
||||
# Author : Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
Format 7
|
||||
|
||||
# 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
|
||||
\makeatletter
|
||||
\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}}
|
||||
\makeatother
|
||||
EndPreamble
|
||||
End
|
Loading…
Reference in New Issue
Block a user