-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerouterthemepresentation.sty
69 lines (61 loc) · 2.81 KB
/
beamerouterthemepresentation.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
\mode<presentation>
\setbeamercolor{section in head/foot}{fg=presDark}
\setbeamercolor{mini frame}{fg=presDark2}
%\setbeamercolor{framefooter}{bg=presLight, fg=presDark}
\setbeamertemplate{section in head/foot shaded}[default][0]
\setbeamertemplate{mini frame in other section}[default][0]
\setbeamertemplate{mini frame in other subsection}[default][0]
%\setbeamertemplate{mini frame}[box]
%\setbeamertemplate{mini frame in current subsection}[box]
\beamer@compresstrue
\providecommand{\logomini}{\node [left] at (\paperwidth,.35) {\includegraphics[width=2cm]{logos/Princeton.png}};}
\newif\ifpresentationloose
% Frame title
\setbeamertemplate{frametitle}{%
\nointerlineskip%
\ifpresentationloose
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox(0,0) rectangle (\the\paperwidth,1.2);
\node[anchor=base west, presDark,font=\large] at (0,.2){\strut\insertframetitle};
\ifx\insertframesubtitle\@empty%
\else%
\node[anchor=base east, presDark2, font=\footnotesize] at (.7\paperwidth-.2cm,.1) {\strut\insertframesubtitle};
\fi%
\node [presHighlight, anchor=base east] at (\paperwidth-.2cm,.7) {\large\strut\insertsection};
\node [presDark, anchor=base east] at (\paperwidth-.2cm,.2) {\small\strut\insertsubsection};
\node [presLight, anchor=north west, inner xsep=0, inner ysep=2, font=\tiny] at (0, 1.2) {\insertnavigation{.7\paperwidth}};
\end{tikzpicture}
\end{beamercolorbox}
\else
\begin{beamercolorbox}[wd=\paperwidth,ht=.8cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox(0,0) rectangle (\the\paperwidth,.8);
\node[anchor=base west, presDark,font=\large] at (.1,.2){\strut\insertframetitle};
\ifx\insertframesubtitle\@empty%
\else%
\node[anchor=base east, presLight2, font=\footnotesize] at (.7\paperwidth-.2cm,.1) {\strut\insertframesubtitle};
\fi%
\node [presHighlight, anchor=base east, font=\large] at (\paperwidth-.2cm,.2) {\strut\insertsection};
\end{tikzpicture}
\end{beamercolorbox}
\fi
}
\setbeamertemplate{footline}{%
\ifnum \insertpagenumber=1
\vspace{.8cm}
\else
\begin{beamercolorbox}[wd=\paperwidth, sep=0px, ht=.4cm]{framefooter}
\begin{tikzpicture}%
\path [use as bounding box] (0,0) rectangle (\paperwidth, .8cm);
\node [right] at (0,.9972/2) {\includegraphics[height=1cm, trim=100 540 280 120, clip]{logos/IRIS-HEP.pdf}};
\logomini
\node [presLight2, left] at (\paperwidth-2.4cm,.23) {\insertframenumber/\inserttotalframenumber};
\node [presDark2, right] at (2,.23) {\insertshortauthor};
\node [presDark] at (.5\paperwidth,.23) {\insertshorttitle};
\node [presLight, left] at (\paperwidth-3.2cm,.23) {\insertdate};
\end{tikzpicture}
\end{beamercolorbox}
\fi
}
\mode<all>