-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemezds.sty
79 lines (73 loc) · 2.47 KB
/
beamerthemezds.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
% color definitions
\definecolor{base-color}{RGB}{41, 128, 185}
\definecolor{text-color}{RGB}{64, 64, 64}
\definecolor{hf-bg-color}{RGB}{51, 63, 103}
\definecolor{hf-text-color}{RGB}{195, 227, 255}
% fonts
\usefonttheme[onlymath]{serif}
\setbeamerfont{title}{series=\bfseries,size=\huge}
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{footline}{size=\fontsize{9}{12}}
% colors
\setbeamercolor{title}{fg=hf-text-color}
\setbeamercolor{normal text}{fg=text-color}
\setbeamercolor{structure}{fg=base-color}
\setbeamercolor{footline}{fg=hf-text-color,bg=hf-bg-color}
\setbeamercolor{frametitle}{fg=hf-text-color,bg=hf-bg-color}
% no navigation bar, toc with balls
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{section in toc}[ball unnumbered]
% custom title page
\setbeamertemplate{title page}
{
\begin{tikzpicture}[overlay,remember picture]
\draw [fill=hf-bg-color]
(current page.north west) rectangle (\paperwidth,-0.2\paperheight);
\draw [line width=4mm,xshift=-3mm,yshift=2mm,draw=hf-bg-color!80]
(0,-0.2\paperheight) -- (\paperwidth,-0.2\paperheight);
\node[anchor=north east] at (current page.north east) {
\includegraphics[scale=0.5]{theme/zds-logo-white}
};
\node[anchor=south west] at (0,-1) {
\parbox{\paperwidth}{
\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par
\ifx\insertsubtitle\@empty
\else\vskip.5ex
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}
\insertsubtitle\par}
\fi
}
};
\node[anchor=north west] at (0,-2.5) {
\parbox{\paperwidth}{
\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor
\vskip1.5ex
\usebeamerfont{institute}\usebeamercolor[fg]{author}\insertinstitute
\vskip1.5ex
\usebeamercolor[fg]{date}\usebeamerfont{date}\insertdate
}
};
\end{tikzpicture}
}
% custom frame title
\setbeamertemplate{frametitle}
{
\nointerlineskip
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,center]{frametitle}
\insertframetitle
\end{beamercolorbox}
}
% custom frame footer
\setbeamertemplate{footline}
{
\begin{beamercolorbox}[ht=3ex,dp=2ex]{footline}
\begin{columns}
\column{0.33333\paperwidth}
\hspace{2em}\includegraphics[height=3.5ex]{theme/zds-logo-white}
\column{0.33333\paperwidth}
\centering\insertsection
\column{0.33333\paperwidth}
\hfill\insertframenumber\hspace*{2em}
\end{columns}
\end{beamercolorbox}
}