FfG_Cours_juge/beamerouterthemeblackboard.sty

40 lines
1.5 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, default is blackboard.png
% image should be in the same directory as the other files
\def\blackboard@backgroundimagefile{blackboard_bk.jpg}
\DeclareOptionBeamer{backgroundimagefile}{\def\blackboard@backgroundimagefile{#1}}
\ProcessOptionsBeamer
\mode<presentation>
\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}
}
% 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}{blackboard theme}[1][left]
{
\begin{beamercolorbox}{frametitle}
\vskip5pt %17pt
%\usebeamerfont{my frametitle}
\insertframetitle \\
\usebeamerfont{framesubtitle}\insertframesubtitle
\end{beamercolorbox}
}