-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwill_handley_beamer.sty
68 lines (55 loc) · 2.09 KB
/
will_handley_beamer.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
\usepackage{will_handley}
% Slide layout
% ------------
% Reduce margin size
\useoutertheme{infolines}
\setbeamertemplate{headline}{}
% Turn off navigation bar
\beamertemplatenavigationsymbolsempty{}
% itemize settings
\settowidth{\leftmargini}{\usebeamertemplate{itemize item}}
\addtolength{\leftmargini}{\labelsep}
\settowidth{\leftmarginii}{\usebeamertemplate{itemize item}}
\addtolength{\leftmarginii}{\labelsep}
\settowidth{\leftmarginiii}{\usebeamertemplate{itemize item}}
\addtolength{\leftmarginiii}{\labelsep}
%\setbeamertemplate{itemize items}[triangle]
\def\insertpresentationendframe{\inserttotalframenumber}
\makeatletter
\g@addto@macro{\appendix}{\immediate\write\@auxout{\string\@writefile{nav}{\noexpand\headcommand{\noexpand\def\noexpand\insertpresentationendframe{\the\c@framenumber}}}}}
\makeatother
\setbeamerfont{footline}{size*={10pt}{10pt}}
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[leftskip=0.2cm,rightskip=0.2cm]{structure}
\email{[email protected]}
\hfill
\tthref{willhandley.co.uk/talks}
\hfill
\insertframenumber{} / \insertpresentationendframe{}
\end{beamercolorbox}
}
% Colors
% -------
\setbeamercolor*{structure}{bg=C0!15,fg=C0}
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamercolor{alerted text}{fg=C3}
\setbeamertemplate{blocks}[rounded]
\setbeamercolor{block body}{bg=C0!5}
\setbeamerfont{block title}{series=\bfseries}
\setbeamercolor{block title example}{fg=C2, bg=C2!15}
\setbeamercolor{block body example}{bg=C2!5}
\setbeamercolor{block title alerted}{fg=C3, bg=C3!15}
\setbeamercolor{block body alerted}{bg=C3!5}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcommand{\av}[2][]{\left\langle #2\right\rangle_{#1}}
\newcommand{\student}[3]{
\tikz[overlay,remember picture]{
\node[anchor=north east] (A) at ($(current page.north east)+(0,0)$) {\includegraphics[width=0.09\textheight]{people/#1}};
\node[anchor=north east] (B) at (A.north west) {#2};
\node[anchor=north east] (B) at (B.south east) {\tiny #3};
}
\vspace{-0.1\textheight}
}
% Number slides from zero
\setcounter{framenumber}{-1}