% Beamer Jacobs slide theme; some hints from CXL's DFKI theme included
%
% (C) 2007 Michael Kohlhase <m.kohlhase@jacobs-university.de.

\ProvidesPackage{beamerthemeJacobsDFKI}
\typeout{Beamer Jacobs\&DFKI theme}
\RequirePackage[ngerman,USenglish]{babel}
\RequirePackage{url}

\mode<presentation>

\author[Kohlhase]{Michael Kohlhase\\\url{m.kohlhase@jacobs-university.de}}
\institute{\begin{tabular}{c@{\qquad}c}
 Computer Science
&\iflanguage{german}{Sichere Kognitive Systeme}{Safe and Secure Cognitive Systems} \\  
Jacobs University
&\iflanguage{german}{Deutsches Forschungszentrum f\"ur KI}{German Research Center for  AI}\\ 
Bremen, Germany & Bremen, Germany
\end{tabular}}
%% Shadings and logo images
\pgfdeclareimage[height=.5ex,width=113mm]{shade-l2r}{shading-l2r}
\pgfdeclareimage[height=2ex]{jacobslogo}{jacobs-logo}
\pgfdeclareimage[height=2ex]{dfkilogo}{DFKI-SSCS-small}
\pgfdeclareimage[height=2ex]{cclogo}{cc_somerights}

%% Headers flushed to the left.
\setbeamertemplate{frametitle}[default][left]

%% Add the line below the header
\addtobeamertemplate{frametitle}{}{\hspace*{-1cm} %
  \begin{pgfpicture}{0cm}{0cm}{128mm}{2mm}
    \pgfputat{\pgforigin}{\pgfbox[left,bottom]{\pgfuseimage{shade-l2r}}}
  \end{pgfpicture}
 }

\setbeamertemplate{footline}[text line]{%
  \usebeamercolor[fg]{titlelike}
  \strut\hspace*{1.5cm}\hfill\insertshortauthor: \insertshorttitle\hfill{}%
  \insertframenumber\hfill\insertshortdate\hfill\hspace*{2cm}%
  }
 \addtobeamertemplate{footline}{ %
   \begin{pgfpicture}{0cm}{0cm}{128mm}{0mm} %
     \pgfputat{\pgfpoint{126mm}{2mm}}{\pgfbox[right,top]{\pgfuseimage{jacobslogo}}} %
     \pgfputat{\pgfpoint{116mm}{2mm}}{\pgfbox[right,top]{\pgfuseimage{dfkilogo}}} %
     \pgfputat{\pgfpoint{10mm}{2mm}}{\pgfbox[right,top]{\pgfuseimage{cclogo}}} %
   \end{pgfpicture}}{}

%% Turn off the navigation symbols
\setbeamertemplate{navigation symbols}{}

%% Inner theme
\useinnertheme{default}

%% Big logo for the title page.
%\pgfdeclareimage[height=1cm]{biglogo}{beamer/img/DFKI-SKS}
%\titlegraphic{\pgfuseimage{biglogo}}


\mode
<all>

%% Redefine various margin sizes 
\setbeamersize{text margin left=3mm}
\setbeamersize{text margin right=3mm}
\setlength\leftmargini{1em}
\setlength\leftmarginii{1em}
\setlength\leftmarginiii{1em}
\providecommand\vstretch[1]{\vspace*{\stretch{#1}}}
\beamer@descriptionwidth=1cm

%% Use Helvetica fonts --- makes no change, strangely??
\usepackage{helvet}
\usepackage{mathptmx}
%% \usefonttheme{professionalfonts}


