-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbeamerouterthemeusyd-split.sty
83 lines (74 loc) · 2.74 KB
/
beamerouterthemeusyd-split.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
\mode<presentation>
\beamer@compresstrue
% This is the padding between text elements and the edges of the colorboxes
\newlength{\theme@hpadding}
\setlength{\theme@hpadding}{1.5em}
% This is the whitespace on the top and bottom of the slides.
\newlength{\theme@vpadding}
\setlength{\theme@vpadding}{0.3em}
\setbeamercolor{section in head/foot}{parent=palette quaternary}
\setbeamercolor{subsection in head/foot}{parent=palette primary}
\usesectionheadtemplate
{\hfill\insertsectionhead}
{\hfill\color{fg!50!bg}\insertsectionhead}
\defbeamertemplate*{frametitle}{usyd split}[1][]
{
\vskip1ex
\begin{beamercolorbox}[wd=\textwidth, #1]{frametitle}
\usebeamerfont{frametitle}\insertframetitle\par
\end{beamercolorbox}
}
\defbeamertemplate*{headline}{usyd split}
{
\vspace{\theme@vpadding}
\ifnum\thepage=1\relax
% For beamer to not raise an error it needs to know the height of this element for all slides.
% This creates an placeholder for the title-page to satisfy positioning on all subsequent
% slides.
\begin{beamercolorbox}[wd=\paperwidth, ht=1.2em,dp=1.5em]{placeholder}
\end{beamercolorbox}
\else
\leavevmode
\@tempdimb=2.4375ex
\ifnum\beamer@subsectionmax<\beamer@sectionmax
\multiply\@tempdimb by\beamer@sectionmax
\else
\multiply\@tempdimb by\beamer@subsectionmax
\fi
% Limit minimum height to allow room for logo.
\ifdim\@tempdimb<7.3125ex
\@tempdimb=7.3125ex
\fi
\ifdim\@tempdimb>0pt
\advance\@tempdimb by 1.825ex
\begin{beamercolorbox}[center,wd=0.25\paperwidth,ht=\@tempdimb]{logo in head/foot}
\vbox to\@tempdimb{\vfil\insertlogo\vfil}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.375\paperwidth,ht=\@tempdimb]{section in head/foot}
\vbox to\@tempdimb{\vfil\insertsectionnavigation{.375\paperwidth}\vfil}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.375\paperwidth,ht=\@tempdimb]{subsection in head/foot}
\vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.375\paperwidth}\vfil}
\end{beamercolorbox}
\fi
\fi
}
\defbeamertemplate*{footline}{usyd split}
{
\ifnum\thepage=1\relax
% Empty colourbox on titlepage to retain spacing on subsequent pages
\begin{beamercolorbox}[wd=\paperwidth,ht=1em,dp=0.5em]{placeholder}
\end{beamercolorbox}
\else
\leavevmode
\begin{beamercolorbox}[center,wd=0.4\paperwidth,ht=1em,dp=0.5em]{author in head/foot}
\insertshortauthor
\end{beamercolorbox}
\begin{beamercolorbox}[wd=0.6\paperwidth,ht=1em,dp=0.5em]{title in head/foot}
\hspace{\theme@hpadding}\insertshorttitle\hfill\insertdate\hspace{\theme@hpadding}
\end{beamercolorbox}
\fi
% Leave gap at bottom of slide the same size as at top
\vspace{\theme@vpadding}
}
\mode<all>