Commit e6ae9baf authored by Ivo Kabadshow's avatar Ivo Kabadshow

add maketeaser for teaser page without date, author and institute

parent 1a7c9da9
......@@ -291,6 +291,34 @@
title page/.initial=image
}
%------------------------------------------------
% teaser page definitions
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@teaser page@default\endcsname\relax
% teaser page image version
\defbeamertemplate*{teaser page}{image}
{%
\vskip\myheadlineb%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
}
% page text version
\defbeamertemplate{teaser page}{text}
{%
\vskip\myheadlinea%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
}
\defbeamertemplate{teaser page}{empty}{}
\pgfkeys{/beamerfzj/outer/.cd,
teaser page/.initial=image
}
%------------------------------------------------
% lecture page definitions
%------------------------------------------------
......@@ -427,7 +455,28 @@
}
%------------------------------------------------
% title slide definition via makelecture
% teaser slide definition via maketeaser
%------------------------------------------------
\def\teaserpage{\usebeamertemplate*{teaser page}}
\def\maketeaser{%
{%
\ifbeamer@inframe%
\teaserpage%
% resetting the background does not work for inframe, since empty title theme template cannot be set after \frame{...} here
\else%
\setbeamertemplate{frame number}[invisible]%
\setbeamertemplate{date}[invisible]%
\setbeamertemplate{background canvas}[\pgfkeysvalueof{/beamerfzj/outer/teaser page}]
\setbeamertemplate{title page}[\pgfkeysvalueof{/beamerfzj/outer/teaser page}]
\frame[t,noframenumbering]{\teaserpage}%
\fi%
}%
% reset background to normal slides, does not change selected theme
\setbeamertemplate{background canvas}[empty]
}
%------------------------------------------------
% lecture slide definition via makelecture
%------------------------------------------------
\def\lecturepage{\usebeamertemplate*{lecture page}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment