/
beamerthemeBonn.sty
77 lines (69 loc) · 2.83 KB
/
beamerthemeBonn.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
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\mode<presentation>
%\useinnertheme[shadow=false]{rounded}
%\usecolortheme{orchid}
%\usecolortheme{whale}
\useoutertheme{infolines}
\definecolor{beamer@bonnblue}{rgb}{0.118,0.361,0.702}
\setbeamercolor{palette primary}{fg=beamer@bonnblue,bg=white}
\setbeamercolor{palette secondary}{fg=beamer@bonnblue,bg=white}
\setbeamercolor{palette tertiary}{bg=beamer@bonnblue,fg=white}
\setbeamercolor{section in head/foot}{bg=beamer@bonnblue!80,fg=white}
\setbeamercolor{subsection in head/foot}{bg=beamer@bonnblue!70,fg=white}
\setbeamercolor{author in head/foot}{bg=beamer@bonnblue!80,fg=white}
\setbeamercolor{title in head/foot}{bg=beamer@bonnblue!70,fg=white}
\setbeamercolor{date in head/foot}{bg=beamer@bonnblue!80,fg=white}
\setbeamercolor{title}{bg=beamer@bonnblue,fg=white}
\setbeamercolor{structure}{bg=beamer@bonnblue,fg=beamer@bonnblue}
\setbeamercolor{block body}{bg=beamer@bonnblue!20,fg=black}
\setbeamercolor{block title}{bg=beamer@bonnblue,fg=white}
\setbeamercolor{titlelike}{parent=palette primary}
\setbeamercolor{frametitle}{fg=white,bg=beamer@bonnblue}
\setbeamercolor{item}{fg=black}
\setbeamercolor{block title alerted}{bg=beamer@bonnblue!40,fg=white!20!red}
\setbeamercolor{block body alerted}{bg=beamer@bonnblue!20,fg=black}
\setbeamerfont{block title}{size={}}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{section in head/foot}%
\usebeamerfont{section in head/foot}\hspace*{2ex}\insertsectionhead\hspace*{2ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{subsection in head/foot}%
\usebeamerfont{subsection in head/foot}\hspace*{2ex}\insertsubsectionhead%
\hfill\insertframenumber{}/\inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\setbeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\AtBeginSection[]
{
\begin{frame}<beamer>[plain]
\frametitle{Outline}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
}
\AtBeginSubsection[]
{
\begin{frame}<beamer>[plain]
\frametitle{Outline}
\tableofcontents[currentsection,subsectionstyle=show/shaded/hide]
\end{frame}
}
\mode
<all>