Add git url for slides to last page
[obnox/slides/2016-04-vault.git] / beamerouterthemeobnoxinfolines.sty
1 % Copyright 2011 by Michael Adam <obnox@samba.org>
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
7 %
8 % See the file doc/licenses/LICENSE for more details.
9
10 \mode<presentation>
11
12 %\setbeamercolor*{author in head/foot}{parent=palette tertiary}
13 %\setbeamercolor*{author in head/foot}{parent=palette primary,bg=white}
14 \setbeamercolor*{author in head/foot}{parent=palette primary}
15 \setbeamercolor*{title in head/foot}{parent=palette secondary}
16 \setbeamercolor*{date in head/foot}{parent=palette primary}
17
18 \setbeamercolor*{logo in head/foot}{parent=palette tertiary}
19 \setbeamercolor*{logo in head/foot}{parent=palette primary}
20
21 \pgfdeclareimage[width=16mm]{Samba-Logo}{Samba_Logo_4c-grey-bbbbbb-256}
22 \pgfdeclareimage[width=16mm]{RedHat-Logo}{Logo_RH_RGB_Default}
23 \pgfdeclareimage[width=\paperwidth,height=\paperheight]{Samba-BG}{samba_bg}
24
25 %%%%\defbeamertemplate*{footline}{obnoxinfolines theme}
26 %%\defbeamertemplate*{headline}{obnoxinfolines theme}
27 %%{
28 %%  \leavevmode%
29 %%  \hbox{%
30 %%  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
31 %%    \usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute)
32 %%  \end{beamercolorbox}%
33 %%  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
34 %%    \usebeamerfont{title in head/foot}\insertshorttitle
35 %%  \end{beamercolorbox}%
36 %%  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
37 %%    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
38 %%    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
39 %%  \end{beamercolorbox}}%
40 %%  \vskip0pt%
41 %%}
42
43 %% %%\defbeamertemplate*{headline}{obnoxinfolines theme}
44 %% \defbeamertemplate*{footline}{obnoxinfolines theme}
45 %% {
46 %%   \leavevmode%
47 %%   \hbox{%
48 %%   \begin{beamercolorbox}[wd=.5\paperwidth,ht=5ex,dp=1ex,left]{xy}%
49 %%     \hspace*{2ex} \hbox{\pgfuseimage{Samba-Logo}}
50 %%   \end{beamercolorbox}%
51 %%   \begin{beamercolorbox}[wd=.5\paperwidth,ht=5ex,dp=1ex,right]{xy}%
52 %%   \hbox{\pgfuseimage{sernet}}
53 %%     \hspace*{2ex}\end{beamercolorbox}}%
54 %%   \vskip0pt%
55 %% }
56
57 %%\defbeamertemplate*{headline}{obnoxinfolines theme}
58 \defbeamertemplate*{footline}{obnoxinfolines theme}
59 {
60   \leavevmode%
61   \hbox{%
62   \begin{beamercolorbox}[wd=.2\paperwidth,ht=5ex,dp=1ex,left]{xy}%
63     \hspace*{2ex} \hbox{\pgfuseimage{Samba-Logo}}
64   \end{beamercolorbox}%
65   \begin{beamercolorbox}[wd=.3\paperwidth,ht=5ex,dp=1ex,center]{author in head/foot}%
66     \usebeamerfont{author in head/foot}\scriptsize\insertshortauthor{}\hspace*{2ex}
67   \end{beamercolorbox}%
68   \begin{beamercolorbox}[wd=.3\paperwidth,ht=5ex,dp=1ex,center]{author in head/foot}%
69     \usebeamerfont{author in head/foot}\scriptsize%
70      \insertshorttitle{} (\insertframenumber{}/\inserttotalframenumber)\hspace*{2ex}
71   \end{beamercolorbox}%
72   \begin{beamercolorbox}[wd=.2\paperwidth,ht=5ex,dp=1ex,right]{xy}%
73   \hbox{\pgfuseimage{RedHat-Logo}}
74     \hspace*{2ex}\end{beamercolorbox}}%
75   \vskip0pt%
76 }
77
78
79 %%\addtobeamertemplate{frametitle}{
80 %%    \begin{textblock*}{\paperwidth}(-4mm,0pt)
81 %%        \includegraphics[width=\paperwidth,height=1cm]{samba_bg_cut}
82 %%    \end{textblock*}
83 %%}
84 %%
85 %%\addtobeamertemplate{footline}{
86 %%    \begin{textblock*}{\paperwidth}(0pt,0pt)
87 %%        \includegraphics[width=\paperwidth,height=0.5cm]{samba_bg_cut}
88 %%    \end{textblock*}
89 %%}
90
91
92 %%\setbeamersize{text margin left=1em,text margin right=1em}
93
94 \usepackage{textpos}
95
96 \addtobeamertemplate{title page}
97 {
98   \begin{textblock*}{\paperwidth}(-3em,0pt)
99     \pgfuseimage{Samba-BG}
100     %\includegraphics[width=\paperwidth,height=\paperheight]{samba_bg.png}
101   \end{textblock*}
102 }
103
104 %\setbeamertemplate{background canvas}{\pgfuseimage{Samba-BG}}
105
106 \mode
107 <all>