-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerouterthemeOSU.sty
53 lines (45 loc) · 1.87 KB
/
beamerouterthemeOSU.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
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
%| |%
%| By: Jeremy Lilly |%
%| 8/6/19 |%
%| |%
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
\mode<presentation>
% frametitle
\defbeamertemplate*{frametitle}{osu_frametitle}{
\setbeamertemplate{footline}{}
\begin{beamercolorbox}[wd=\paperwidth, ht=1.2cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=white](0, 0) rectangle(\the\paperwidth, 1.2);
\node[inner sep=0pt] (logo) at (0.55, 0.6) {\includegraphics[scale=0.075]{osu_theme_images/small_osu_logo.jpg}};
\draw[line width=0.3mm, osu_orange] (1.25, 0.02) -- (\the\paperwidth, 0.02);
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, black] at (1.3, 0.625) {\insertframetitle};}
\else%
{\node[anchor=west, black] at (1.3, 0.85) {\insertframetitle};
\node[anchor=west, black] at (1.3, 0.35) {\usebeamerfont{framesubtitle}\insertframesubtitle};}
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
% footline
\defbeamertemplate{footline}{osu_footline}{
\ifnum\insertpagenumber=1
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth, ht=0.25cm, dp=1ex]{}
% nothing
\end{beamercolorbox}}
\else%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth, ht=0.25cm, dp=1ex]{palette primary}
{\tiny
\;\hbox to 2cm{\insertdate\hfill}
\hfill\insertshorttitle\hfill
\hbox to 2cm{\hfill\insertframenumber/\inserttotalframenumber}\;}
\end{beamercolorbox}}
\fi
}
\setbeamertemplate{footline}[osu_footline] % comment this line to remove the footer with the date and frame counter
% Remove navigation symbols
\setbeamertemplate{navigation symbols}{}
\mode<all>