-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerouterthemedesy.sty
60 lines (50 loc) · 1.76 KB
/
beamerouterthemedesy.sty
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
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/outer/beamerouterthemedesy.sty,v 1.0 2011/08/01 Jan Hajer $
\RequirePackage{array} % vertical centered tabular
% navigation symbols
\setbeamertemplate{navigation symbols}{}
% headline
\setbeamertemplate{headline}{
\begin{beamercolorbox}[sep=1ex, wd=\paperwidth, ht=10ex]{section in head/foot}
\vspace{1ex}
\usebeamercolor[bg]{section in head/foot}\usebeamercolor[fg]{section in head/foot}\usebeamerfont{section in head/foot}
\ifx \insertframetitle \@empty
{ \ifx \insertsubsubsectionhead \@empty
{ \ifx \insertsubsectionhead \@empty
\insertsectionhead
\else
\insertsubsectionhead
\fi
}
\else
\insertsubsubsectionhead
\fi
}
\fi
\vspace{-0.75ex}
\end{beamercolorbox}
}
% frametitle
\setbeamertemplate{frametitle}{
\vspace{-5ex}
\begin{beamercolorbox}[sep=2ex, wd=\paperwidth]{frametitle}
\vspace{-1ex}
\usebeamercolor[bg]{frametitle}\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle
\vspace{-2.5ex}
\end{beamercolorbox}
\vspace{2ex}
}
% footline
\setbeamertemplate{footline}{
\vspace{-3.5ex}
\hfill
\begin{tabular}{m{.85\textwidth} m{.075\textwidth}}
\includegraphics[width=.06\textwidth]{\string~/Library/texmf/tex/latex/desy/logos/cms-logo}
\hfill
\usebeamercolor[fg]{author in head/foot}\usebeamerfont{author in head/foot}\insertshortauthor\ $|$
\usebeamercolor[fg]{institute in head/foot}\usebeamerfont{institute in head/foot}\insertshortinstitute\ $|$
\insertshortdate\ $|$
\usebeamercolor[fg]{pagenumber in head/foot} \usebeamerfont{pagenumber in head/foot} Page \insertframenumber
& \includegraphics[width=.07\textwidth]{\string~/Library/texmf/tex/latex/desy/logos/desy}%${DESY-Logo-cyan-RGB_mitVorschau_ger.pdf}
\end{tabular}
}
\mode<all>