-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerouterthemeavalon.sty
84 lines (78 loc) · 2.56 KB
/
beamerouterthemeavalon.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
84
\mode<presentation>
\RequirePackage{ifthen}
\newtcolorbox{frametitlebox}[1][]{
sharp corners=all,frame hidden,
drop small lifted shadow=black,enhanced,
% colback=avalon@primay color,
interior style={top color=avalon@primary color, bottom color=avalon@primary color!75!gray},
width=\the\paperwidth+1em,#1
}
% Frame title
\defbeamertemplate*{frametitle}{avalon}[1][]
{
\ifx\avalon@blueprint\undefined {
\ifx\avalonprogressbar\undefined {
\vspace*{-1em}
} \else {
\vspace*{-12.1mm}
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{ft}
\usebeamercolor{primary color}
\begin{tikzpicture}
\fill[bg] (0,0) rectangle (\the\paperwidth, .3mm);
\fill[bg!50!white] (0,0) rectangle (\insertframenumber*\paperwidth/\inserttotalframenumber, .3mm);
\end{tikzpicture}
\end{beamercolorbox}
\vspace*{-8.3mm}
} \fi
\begin{addmargin}[-2.5em]{0em}
\ifx\insertframesubtitle\@empty {
\begin{frametitlebox}
\centering \bfseries
\Large \color{white} \insertframetitle
\end{frametitlebox}
} \else {
\begin{frametitlebox}
\centering \bfseries
\normalsize \color{gray!50!white} \insertframesubtitle \\
\Large \color{white} \insertframetitle
\end{frametitlebox}
} \fi
\end{addmargin}
} \else {
} \fi
}
% \defbeamertemplate*{headline}{avalon}{hello}
\defbeamertemplate*{footline}{avalon}{
\ifthenelse{\isundefined{\avalon@blueprint}}{
\ifthenelse{\insertframenumber = 0}{%
% don't show it in the title slide%
}{%
\vspace*{-5mm}
\hspace*{\fill} %\vspace*{-1cm} \hspace*{-5mm}
\begin{tikzpicture}
\node (fn) {%
\usebeamercolor{page number in head/foot}\color{fg}%
\usebeamerfont{page number in head/foot}%
\insertframenumber/\inserttotalframenumber};
\node[below=of fn] {};
\end{tikzpicture}
}
}{
\LARGE \color{white} \tt
\vspace*{-10mm}
\hspace*{1.1mm}
\begin{tikzpicture}
\node[draw=white,thick,minimum width=\textwidth-2cm,minimum height=10mm] (title) at (0,0) {\insertframetitle};
\draw[white,thick] (title.north east) ++(1mm,-.1mm)
-- ++(10mm,0)
-- ++(0,-10mm)
-- ++(-10mm,0)
-- ++(0,10.1mm) ++(0,-10mm)
-- ++(10mm,10mm);
\node (fn) at ([xshift=3.5mm,yshift=-3.5mm]title.north east) {\footnotesize\insertframenumber};
\node (tfn) at ([xshift=4.5mm,yshift=-3.5mm]fn) {\footnotesize\inserttotalframenumber};
\node[below=of title] {};
\end{tikzpicture}
}
}
\mode<all>