summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/hobete/beamerouterthemehohenheim.sty
blob: c4c69d293e36bd6be9025fd17960b3e68e3e9e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
% Copyright 2010 by tgoerlach tobias.goerlach@uni-hohenheim.de
% some marked locs are taken from beamerouterthemeinfolines.sty as distributed under LPPL/GNU
%in the beamer bundle and copyrighted by Till Tantau 2007
% which now can be found at: https://bitbucket.org/rivanvx/beamer/overview
% locs taken form this file are marked as follows: %BEGIN infolines (begin of parts form infolines) ; %END infolines (end of parts form infolines)
%
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
% Theme Version 0003

\mode<presentation>

\setbeamercolor*{author in head/foot}{parent=palette primary}
\setbeamercolor*{title in head/foot}{parent=palette quaternary}
\setbeamercolor*{date in head/foot}{parent=palette secondary}

\setbeamercolor*{section in head/foot}{parent=palette tertiary}
\setbeamercolor*{subsection in head/foot}{parent=palette primary}
\setbeamercolor*{frametitle in title}{parent=palette secondary}


\defbeamertemplate*{footline}{hohenheim theme}
{%BEGIN infolines 
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{\insertshortinstitute}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}%END infolines
\defbeamertemplate*{headline}{hohenheim theme}
{%BEGIN infolines 
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{section in head/foot}%
    \usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{subsection in head/foot}%
    \usebeamerfont{subsection in head/foot}\hspace*{2ex}\insertsubsectionhead
  \end{beamercolorbox}}%
  \vskip0pt%
}

\setbeamersize{text margin left=1em,text margin right=1em}
%END infolines


%
% Oki now werde getting close..
% We redefine the Frametitle to place our own logo there. remark: this is considered as a hack. 

\setbeamerfont{frametitle}{series=\bfseries} % Shouldnt be in this file, should be in the fontheme

% Two possible solutions i prefer the second so far
%\setbeamertemplate{frametitle}
%{%
   % \nointerlineskip
%
%\begin{beamercolorbox}[wd=\paperwidth,dp=1ex, ht=4.5ex, sep=0.5ex, colsep*=0pt]{frametitle in title}%
   % \usebeamerfont{frametitle}    \begin{tikzpicture}[remember picture, overlay]%
     %\draw[very thick, black] ([yshift=-4ex]current page.north west) -- ([yshift=-3ex]current page.north) -- ([yshift=-4ex]current page.north east);
    %\node[yshift=-4ex, xshift=4ex] [left= of current page.north east] {  \insertmylogo};
     %\end{tikzpicture}\insertframetitle 
   %\end{beamercolorbox}%  
   % \nointerlineskip
%\begin{beamercolorbox}[wd=\paperwidth,dp=.5ex, ht=.5ex, sep=0.5ex, colsep*=0pt]{subsection in head/foot}%
   % \end{beamercolorbox}
 %}%
 
\setbeamertemplate{frametitle}
{%
    \nointerlineskip
\begin{beamercolorbox}[wd=\paperwidth,dp=1ex, ht=4.5ex, sep=0.5ex, colsep*=0pt]{frametitle in title}%
    \usebeamerfont{frametitle}   \strut \insertframetitle  \hfill \raisebox{-2ex}[0pt][-\ht\strutbox ]{ \insertmylogo} 
    \end{beamercolorbox}%
 }%%
 

\mode<all>