-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerouterthemeABR.sty
39 lines (34 loc) · 1.61 KB
/
beamerouterthemeABR.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
\mode<presentation>
% frame title bar
\defbeamertemplate*{frametitle}{ABR}[1][]{
\vskip0.01\paperheight%
\begin{beamercolorbox}[wd=\paperwidth,ht=0.1\paperheight]{frametitle}
\begin{tikzpicture}
\useasboundingbox (0, 0) rectangle (\the\paperwidth, 0.12\paperheight);
\draw[myDBlue] (0.03\paperwidth,0.5) -- +(0.94\paperwidth, 0);
\node[anchor=west, fill=myWhite, font=\usebeamerfont{frametitle}]
at (0.05\paperwidth,0.5) {\insertframetitle};%
\node[anchor=west, fill=myWhite] at (0.82\paperwidth,0.5)
{\href{https://appliedbrainresearch.com/}
{\includegraphics[height=0.75cm]{ABR_logo.png}}};%
\node[anchor=west, font=\usebeamerfont{framesubtitle}]
at (0.095\paperwidth,0.1) {\color{myBlue}\insertframesubtitle};%
\end{tikzpicture}
\end{beamercolorbox}
}
% make footer [ section | short title | page#]
\setbeamertemplate{footline}{%
\begin{tikzpicture}
\useasboundingbox (0, 0) rectangle(\the\paperwidth, 0.035\paperheight);
\ifnum\thepage>1\relax%
\fill[color=myLBlue] (0, 0) rectangle (\the\paperwidth, 0.035\paperheight);
\node[anchor=west, myDBlue] at (0,0.175)
{\hspace{5pt}\let\hyperlink\@secondoftwo\insertsection};
\node[anchor=center, myDBlue] at (0.5\paperwidth,0.15)
{\let\hyperlink\@secondoftwo\insertshorttitle};
\node[anchor=east, myDBlue] at (0.985\paperwidth,0.175){
\insertframenumber\,/\,\inserttotalframenumber};
\fi
\end{tikzpicture}
}
\mode<all>