FfG_Cours_juge/beamerouterthemeffg.sty

45 lines
1.7 KiB
Plaintext
Raw Normal View History

2016-11-05 15:33:59 +01:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2010 Jasper Bosch <p.j.bosch@student.rug.nl> %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some parts of this theme are based on the 'diepentheme' %
% by Guido Diepen <diepen@cs.uu.nl> %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{calc}
\RequirePackage{tikz}
% link to the backgroundimage
% image should be in the same directory as the other files
\def\blackboard@backgroundimagefile{slide.png}
\DeclareOptionBeamer{backgroundimagefile}{\def\blackboard@backgroundimagefile{#1}}
\ProcessOptionsBeamer
\mode<presentation>
% Ca je sais pas (encore) à quoi cela sert !!!
\pgfdeclareimage[interpolate=true, height=\the\paperheight, width=\the\paperwidth]{backgroundImage}{\blackboard@backgroundimagefile}
% stretch background image over the entire page
\setbeamertemplate{background}{
% \begin{tikzpicture}
% \useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);
% \pgftext[at=\pgfpoint{0cm}{0cm}, left, base]{\pgfuseimage{backgroundImage}};
% \end{tikzpicture}
\ifnum\c@framenumber=1 %First slide
\includegraphics[width=\paperwidth,height=\paperheight]{first.png}
\else %Other slides
\includegraphics[width=\paperwidth,height=\paperheight]{slide.png}
\fi%
}
% use a small dash ('-') for a bulletpoint list
%\setbeamertemplate{itemize items}{\usebeamercolor[fg]{item}\small{•}}
%\setbeamertemplate{itemize itemize item}{\usebeamercolor[fg]{item}\small{*-}}
\defbeamertemplate*{frametitle}{ffg theme}[1][right]
{
\begin{beamercolorbox}{frametitle}
\vskip5pt %17pt
\insertframetitle \\
\usebeamerfont{framesubtitle}\insertframesubtitle
\end{beamercolorbox}
}