1 %
2 % Copyright (C) 2013-2016 Sebastian 'tokkee' Harl <sh@tokkee.org>
3 % All rights reserved.
4 %
5 % Redistribution and use in source and binary forms, with or without
6 % modification, are permitted provided that the following conditions
7 % are met:
8 % 1. Redistributions of source code must retain the above copyright
9 % notice, this list of conditions and the following disclaimer.
10 % 2. Redistributions in binary form must reproduce the above copyright
11 % notice, this list of conditions and the following disclaimer in the
12 % documentation and/or other materials provided with the distribution.
13 %
14 % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 % ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16 % TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 % PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
18 % CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 % EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 % PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 % OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 % WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 % OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 % ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 %
26 \usepackage{beamertokkee}
27 \usepackage{lmodern}
29 \usepackage{beamertokkee}
31 \usecolortheme{tokkee}
33 \usepackage{tikz}
35 \usetikzlibrary{positioning}
37 \setbeamersize{text margin left=7mm, text margin right=7mm}
39 \titlegraphic{
40 \begin{tikzpicture}[remember picture,overlay]
41 \node[inner sep=5mm,anchor=south west] at (current page.south west)
42 {\includegraphics[width=.25\paperwidth]{tokkee_logo}};
43 \end{tikzpicture}
44 }
46 \setbeamerfont{title}{series=\bfseries}
47 \setbeamerfont{author}{series=\bfseries}
48 \setbeamertemplate{title page}
49 {
50 \begin{centering}
51 \titlebox{%
52 {\usebeamerfont{title}\usebeamercolor[fg]{title}%
53 \inserttitle}
54 \ifx\insertsubtitle\@empty%
55 \else%
56 \par\\[.25em]
57 {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}%
58 \mbox{\insertsubtitle}\par}%
59 \fi%
60 }
62 \vskip1em
64 \begin{beamercolorbox}[sep=8pt,center]{author}
65 \usebeamerfont{author}\insertauthor
66 \end{beamercolorbox}
67 \begin{beamercolorbox}[sep=8pt,center]{institute}
68 \usebeamerfont{institute}\insertinstitute
69 \end{beamercolorbox}
70 \begin{beamercolorbox}[sep=8pt,center]{date}
71 \usebeamerfont{date}\insertdate
72 \end{beamercolorbox}
74 \vskip0.5em
75 {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
76 \end{centering}
77 }
79 \setbeamerfont{frametitle}{series=\bfseries}
80 \setbeamertemplate{frametitle}
81 {
82 \begin{tikzpicture}[remember picture,overlay]
83 \fill[fill=tokkeelightgray,anchor=north west]
84 (-7mm,-.0\paperheight) rectangle +(\paperwidth,20mm);
85 \fill[fill=tokkeeblue,anchor=north west,drop shadow]
86 (-7mm,-.0\paperheight) rectangle +(\paperwidth,-3mm);
87 \end{tikzpicture}
88 \begin{tikzpicture}[remember picture,overlay]
89 \node[inner sep=0pt,anchor=east] (logo)
90 at (\textwidth,.07\paperheight)
91 {\includegraphics[height=10mm]{tokkee_logo}};
92 \node[inner sep=0pt,anchor=base west] (tokkee_frametitle)
93 at (-.03\paperwidth,.05\paperheight)
94 {\insertframetitle};
95 \end{tikzpicture}
96 }
98 \setbeamertemplate{headline}
99 {
100 % "allocate" space for the headline
101 \vspace*{.10\paperheight}
102 }
104 \setbeamertemplate{footline}
105 {
106 \begin{tikzpicture}[overlay]
107 \node (tokkee_copyright)[inner sep=0pt,anchor=base west]
108 at (.03\paperwidth,.02\paperheight)
109 {\scriptsize \insertcopyrightinfo};
110 \node (tokkee_framenumber) [inner sep=0pt,anchor=base east]
111 at (.97\paperwidth,.02\paperheight)
112 {\scriptsize \insertshorttitle{} -- \translate{Slide} \insertframenumber};
113 \end{tikzpicture}
114 }
116 % no navigation symbols
117 \setbeamertemplate{navigation symbols}{}
119 % Use black dots as itemize symbols
120 \setbeamertemplate{itemize item}[circle]
121 \setbeamertemplate{itemize subitem}[square]
122 \setbeamertemplate{itemize subsubitem}[square]