-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerouterthemedesynew.sty
43 lines (37 loc) · 1.65 KB
/
beamerouterthemedesynew.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
\ProvidesPackage{beamerouterthemedesynew}[2018/04/27]
\RequirePackage[absolute,overlay]{textpos}
\defbeamertemplate{frametitle}{desy}{%
\begin{textblock*}{0.912\paperwidth}(0.044\paperwidth,0.044\paperwidth)
{\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle}
\end{textblock*}%
\begin{textblock*}{0.912\paperwidth}(0.044\paperwidth,0.125\paperheight)
{\usebeamercolor[fg]{framesubtitle}\usebeamerfont{framesubtitle}\insertframesubtitle}
\end{textblock*}%
\vspace*{0.207\textheight}%
}
\setbeamertemplate{frametitle}[desy]
\defbeamertemplate{footline}{desy}{%
\hspace*{0.044\paperwidth}\raisebox{0.027\paperheight}[0.064\paperheight][0pt]{%
\usebeamercolor[fg]{text in footline}\usebeamerfont{text in footline}%
\usebeamertemplate{logo in footline}%
\usebeamertemplate{title in footline}%
\ifx\insertshortauthor\@empty\else~|~\insertshortauthor\fi%
\ifx\insertshortdate\@empty\else, \insertshortdate\fi%
}\hfill\raisebox{0.027\paperheight}{%
\usebeamerfont{page number in footline}\pagename~\insertframenumber
}\hspace*{0.044\paperwidth}%
}
\setbeamertemplate{footline}[desy]
\defbeamertemplate{logo in footline}{desy}{%
\sbox{\z@}{DESY.}%
{\includegraphics[height=\ht\z@]{logos/desy_small}}%
}
\setbeamertemplate{logo in footline}[desy]
\defbeamertemplate{title in footline}{title}{%
\ifx\insertshorttitle\@empty\else~|~\insertshorttitle\fi%
}
\defbeamertemplate{title in footline}{institute}{%
\ifx\insertshortinstitute\@empty\else~|~\insertshortinstitute\fi%
}
\setbeamertemplate{title in footline}[title]
\setbeamertemplate{navigation symbols}{}