-
Notifications
You must be signed in to change notification settings - Fork 2
/
beamerouterthemeost.sty
61 lines (53 loc) · 1.69 KB
/
beamerouterthemeost.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
61
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{ost}[1][]
{
\leavevmode
\ifnum \insertpagenumber=1
\else
\begin{textblock}{30.7}[0,0](2.24,0.93)
\begin{beamercolorbox}[sep=0pt]{framesubtitle}
\usebeamerfont{framesubtitle}\insertframesubtitle\par%
\end{beamercolorbox}%
\end{textblock}
\begin{textblock}{30.7}[0,0](2.24,2.26)
\begin{beamercolorbox}[sep=0pt]{frametitle}
\usebeamerfont{frametitle}\insertframetitle\par%
\end{beamercolorbox}%
\end{textblock}
\fi
\vspace{2cm}
}
\defbeamertemplate*{footline}{ost}
{
\leavevmode
\vspace{45pt}
\ifnum \insertpagenumber=1
\else
\begin{textblock}{33.88}[0,0](0,17.93)
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,1.12);
\path [fill=OstDark2] (2.14,0) rectangle (2.24,1.12);
\end{tikzpicture}
\end{textblock}
\begin{textblock}{14.9}[0,0](\fpeval{2.24 + 0.3},17.93)
\begin{beamercolorbox}[sep=0pt]{title in head/foot}
\usebeamerfont{title in head/foot}\let\hyperlink\@secondoftwo\insertshorttitle\par%
\end{beamercolorbox}%
\end{textblock}
\begin{textblock}{\fpeval{1.49 - 0.3}}[0,0](0.75,17.93)
\begin{beamercolorbox}[sep=0pt]{framenumber}
\usebeamerfont{framenumber}\hfill\insertframenumber\par%
\end{beamercolorbox}%
\end{textblock}
\begin{textblock}{9.38}[0,0](18.04,17.93)
\begin{beamercolorbox}[sep=0pt]{date}
\usebeamerfont{date}\insertshortdate\par%
\end{beamercolorbox}%
\end{textblock}
\begin{textblock}{3.72}[0,0](29.88,17.35)
\includegraphics [height=1.75cm]{logo.pdf}
\end{textblock}
\fi
}
\mode<all>