forked from malramsay64/usyd-beamer-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemeusyd.sty
72 lines (63 loc) · 2.45 KB
/
beamerinnerthemeusyd.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
\mode<presentation>
\usepackage{etoolbox}
\setbeamertemplate{background}
{%
\begin{tikzpicture}
\ifnum\thepage=1\relax%
\useasboundingbox (0,0) rectangle(\the\paperwidth, \the\paperheight);
\fill[color=usydred] (0,0) rectangle (0.5*\the\paperwidth, \the\paperheight);
\fill[color=\USYD@titlegraphicbackground] (0.5*\the\paperwidth,0) rectangle (\the\paperwidth, \the\paperheight);
\node[inner sep=0pt] (titlegraphic) at (0.75*\paperwidth, 0.5*\paperheight) {\includegraphics[width=0.5\paperwidth]{\USYD@titlegraphic}};
\hskip-10pt
\node[inner sep=0pt] (logo) at (2.2, 1.2) {\usebeamertemplate*{logo titlepage}};
\node[inner sep=0pt] (logo) at (6.4, 1.4) {\usebeamertemplate*{affiliationlogo titlepage}};
\else
\fill[usydwhite,opacity=1] (0,0) rectangle (\the\paperwidth, \the\paperheight);
\fi
\end{tikzpicture}
}
\defbeamertemplate*{title page}{usyd}[1][]
{%
\newlength\beamertitlebox
\setlength\beamertitlebox{\dimexpr0.5\paperwidth-\Gm@lmargin}
\begingroup
\hskip-10pt
\begin{beamercolorbox}[sep=0pt, wd=\beamertitlebox, #1]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty\par%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}\vskip2em
\hskip-10pt
\begin{beamercolorbox}[sep=0pt, wd=\beamertitlebox, #1]{author}
\usebeamerfont{author}\insertauthor%
\end{beamercolorbox}\vskip1em
\hskip-10pt
\begin{beamercolorbox}[sep=0pt, wd=\beamertitlebox, #1]{date}
\usebeamerfont{date}\insertdate%
\end{beamercolorbox}
\endgroup
}
\defbeamertemplate*{footline}{usyd}
{%
\ifnum\thepage=1\relax%
% Transparent colorbox for titlepage
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=4ex]{placeholder}%
\end{beamercolorbox}%
\else
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=4ex,leftskip=4em, rightskip=4em]{institute in footline}%
University of Sydney\hfill\insertframenumber{}%
\end{beamercolorbox}%
\fi
}%
\defbeamertemplate*{logo titlepage}{usyd}
{\includegraphics[width=2.4cm]{\USYD@logo}}
\defbeamertemplate*{affiliationlogo titlepage}{usyd}
{\ifdefempty{\USYD@affiliationlogo}{}{\includegraphics[width=2.2cm]{\USYD@affiliationlogo}}}
\defbeamertemplate*{logo}{usyd}
{\includegraphics[height=3em]{\USYD@logo}}
\defbeamertemplate*{sidebar right}{usyd}{}
\setbeamertemplate{navigation symbols}{}
\mode<all>