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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
% Copyright (C) 2018 Pasquale Claudio Africa.
%
% This file is part of beamerthemefocus.
%
% beamerthemefocusis free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% beamerthemefocus is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.
\mode<presentation>
% Main background.
\defbeamertemplate*{background}{focus}{
% Titlepage.
\ifnum\c@framenumber=0
\begin{tikzpicture}[overlay, remember picture]
\fill[color=background] (current page.north west) rectangle (current page.south east);
\end{tikzpicture}
\fi
}
% Focus frame background.
\defbeamertemplate{background}{focusframe}{
\ifnum\c@framenumber>0
\begin{tikzpicture}[overlay, remember picture]
\fill[color=main] (current page.north west) rectangle (current page.south east);
\end{tikzpicture}
\fi
}
% Title page.
\defbeamertemplate*{title page}{focus}[1][]
{
\begin{tikzpicture}[overlay, remember picture]
\fill[color=main] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east);
\end{tikzpicture}
\vspace{-1.65\baselineskip}
\begin{minipage}[b][0.35\paperheight]{\textwidth}
\vspace{\baselineskip}
\usebeamerfont{title}
\usebeamercolor[fg]{frametitle}
\inserttitle
\end{minipage}
\begin{minipage}[t][0.1\paperheight]{\textwidth}
\usebeamerfont{subtitle}
\usebeamercolor[fg]{frametitle}
\insertsubtitle
\end{minipage}
% Set the title graphic in a zero-height box, so that
% the position of other elements is not affected.
\vbox to 0pt {
\raggedleft
\inserttitlegraphic
}
\begin{minipage}[t]{\textwidth}
\usebeamerfont{author}
\insertauthor
\end{minipage}
\vspace*{\baselineskip}
\begin{minipage}[t]{\textwidth}
\usebeamerfont{institute}
\insertinstitute
\end{minipage}
\vspace*{\baselineskip}
\begin{minipage}[t]{\textwidth}
\usebeamerfont{date}{\insertdate}
\end{minipage}
\vspace*{5\baselineskip}
\addtocounter{framenumber}{-1}
}
% Section page.
\defbeamertemplate*{section page}{focus}{
\begin{tikzpicture}[overlay, remember picture]
\fill[color=main] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east);
\end{tikzpicture}
\vspace{-2\baselineskip}
\begin{minipage}[b][0.45\paperheight]{\textwidth}
\usebeamerfont{sectiontitle}
\usebeamercolor[fg]{frametitle}
\let\hyperlink\@secondoftwo\insertsection
\end{minipage}
\begin{minipage}[t][0.55\paperheight]{\textwidth}
\end{minipage}
}
\setbeamertemplate{section page}[focus]
\AtBeginSection{
\begin{frame}[plain, noframenumbering]{}
\sectionpage
\end{frame}
}
% Shift footnotes to prevent overlap with footline.
\addtobeamertemplate{footnote}
{\ifnum\footlineheight>0\vspace{-0.55\footlineheight}\fi}
{\ifnum\footlineheight>0\vspace{0.55\footlineheight}\fi}
\renewcommand*{\footnoterule}
{
\kern -3pt
\hrule width 2in height 0.4pt
\ifnum\footlineheight>0
\kern 0.55\footlineheight
\fi
\kern 2.6pt
}
\mode<all>
|