-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerinnerthemeOSU.sty
52 lines (42 loc) · 2.58 KB
/
beamerinnerthemeOSU.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
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
%| |%
%| By: Jeremy Lilly |%
%| 10/5/19 |%
%| |%
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
\mode<presentation>
% Title page
\defbeamertemplate*{title page}{osu_title_page}{
\begin{beamercolorbox}[wd=\paperwidth, ht=\paperheight]{title page}
\begin{tikzpicture}
\useasboundingbox[fill=white] (0, 0) rectangle(\paperwidth, \paperheight);
\node[inner sep=0pt] (logo) at (1.75, 0.5) {\includegraphics[scale=0.05]{osu_theme_images/big_osu_logo.jpg}};
\node[align=right, text width=5.75cm] (institute) at (9.7, 0.5) {\usebeamerfont{institute}\insertinstitute};
\ifx\insertdepartment\@null%
% nothing
\else
\draw[line width=0.3mm, osu_orange] (3.65, 1) -- (3.65, 0);
\node[anchor=west, text width=10cm] (institute) at (3.8, 0.5) {\usebeamerfont{department}\insertdepartment};
\fi
\ifx\inserttitlegraphic\@empty%
\node[text centered, text width=14cm, osu_orange] (title) at (\paperwidth/2, 6) {\usebeamerfont{title}\inserttitle\\ \medskip\usebeamerfont{subtitle}\textcolor{osu_black}{\insertsubtitle}};
\node[text centered, text width=10cm] (author) at (\paperwidth/2, 3) {\usebeamerfont{author}\insertauthor\\ \medskip\usebeamerfont{date}\insertdate};
\else
\node (graphic) at (\paperwidth/2, \paperheight/2) {\inserttitlegraphic};
% Compute the height of the title size
\newsavebox{\titlegraphicbox}
\savebox{\titlegraphicbox}{\inserttitlegraphic}
\newlength{\titlegraphicheight}
\settoheight{\titlegraphicheight}{\usebox{\titlegraphicbox}}
\node[text centered, text width=14cm, osu_orange] (title) at (\paperwidth/2, 3*\paperheight/4 + \titlegraphicheight/4 - 3pt) {\usebeamerfont{title}\inserttitle\\ \medskip\usebeamerfont{subtitle}\textcolor{osu_black}{\insertsubtitle}};
\node[text centered, text width=10cm] (author) at (\paperwidth/2, 1.8) {\usebeamerfont{author}\insertauthor\\ \medskip\usebeamerfont{date}\insertdate};
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
% Table of contents
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
% Itemize environments
\setbeamertemplate{itemize items}[circle]
\mode<all>