layout_slides_ffg/beamerouterthemeffg.sty

39 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-12-15 11:39:14 +01:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CopyLeft Gregory Trullemans %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Some parts of this theme are based on the 'diepentheme' by Guido Diepen <diepen@cs.uu.nl> %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2016-06-03 14:59:48 +02:00
2016-12-15 11:39:14 +01:00
% link to the backgroundimage : image should be in the same directory as the other files
2016-06-03 14:59:48 +02:00
\def\blackboard@backgroundimagefile{slide.png}
\DeclareOptionBeamer{backgroundimagefile}{\def\blackboard@backgroundimagefile{#1}}
\ProcessOptionsBeamer
\mode<presentation>
\pgfdeclareimage[interpolate=true, height=\the\paperheight, width=\the\paperwidth]{backgroundImage}{\blackboard@backgroundimagefile}
2016-12-15 11:39:14 +01:00
% Stretch background image over the entire page
2016-06-03 14:59:48 +02:00
\setbeamertemplate{background}{
\ifnum\c@framenumber=1 %First slide
\includegraphics[width=\paperwidth,height=\paperheight]{first.png}
\else %Other slides
\includegraphics[width=\paperwidth,height=\paperheight]{slide.png}
2016-12-15 11:39:14 +01:00
\fi
2016-06-03 14:59:48 +02:00
}
2016-12-15 11:39:14 +01:00
% Use a small bulletpoint for a list
\setbeamertemplate{itemize items}{\usebeamercolor[fg]{item}\small{•}}
\setbeamertemplate{itemize itemize item}{\usebeamercolor[fg]{item}\small{*-}}
2016-06-03 14:59:48 +02:00
\defbeamertemplate*{frametitle}{ffg theme}[1][right]
{
\begin{beamercolorbox}{frametitle}
2016-12-15 11:39:14 +01:00
\vskip5pt
2016-06-03 14:59:48 +02:00
\insertframetitle \\
\usebeamerfont{framesubtitle}\insertframesubtitle
\end{beamercolorbox}
2016-12-15 11:39:14 +01:00
}