-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerthemeEpam.sty
154 lines (126 loc) · 5.33 KB
/
beamerthemeEpam.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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
% Copyright 2013,2016 by Denis Pynkin <denis_pynkin@epam.com>
% Copyright 2016 by Andrej Zacharevicz <andrej_zacharevicz@epam.com>
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackage{beamerthemeEpam}
[2016/03/16 v0.2 beamer 'Epam' theme]
\mode<presentation>
\usefonttheme{default}
\useinnertheme[shadow=true]{rounded}
\useoutertheme{shadow}
\setbeamertemplate{navigation symbols}{}
\definecolor{EpamBlue}{HTML}{39C2D7}
\definecolor{EpamGraphite}{HTML}{464547}
\definecolor{EpamGrayLight}{HTML}{CCCCCC}
\definecolor{EpamWhite}{HTML}{FFFFFF}
\definecolor{EpamGreenLime}{HTML}{A3C644}
\definecolor{EpamRaspberry}{HTML}{B22746}
\setbeamercolor*{lineup}{parent=palette primary}
\setbeamercolor*{linemid}{parent=palette secondary}
\setbeamercolor*{linebottom}{parent=palette tertiary}
\setbeamercolor{epamline2}{fg=black,bg=EpamBlue}
\setbeamercolor{epamlinestring}{fg=EpamGrayLight,bg=EpamGraphite}
% system colors redefination
\setbeamercolor{structure}{fg=EpamGraphite}
\setbeamercolor{frametitle}{fg=EpamGraphite,bg=EpamWhite}
\setbeamercolor{frametitle right}{bg=EpamWhite}
\setbeamercolor*{item}{fg=EpamBlue}
\setbeamercolor{normal text}{fg=EpamGraphite}
% redifining lists marker
\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{enumerate items}[circle]
% redifining TOC marker
\setbeamertemplate{section in toc}[circle]
\setbeamertemplate{subsection in toc}[circle]
\setbeamertemplate{section in toc shaded}[circle]
\setbeamertemplate{subsection in toc shaded}[circle]
% some lengths (the height of the lines)
\newlength{\beamer@decolines@lineup}
\setlength{\beamer@decolines@lineup}{.015\paperheight}
\newlength{\beamer@decolines@linemid}
\setlength{\beamer@decolines@linemid}{.035\paperheight}
\newlength{\beamer@decolines@linebottom}
\setlength{\beamer@decolines@linebottom}{.002\paperheight}
\newlength{\beamer@decolines@headline}
\setlength{\beamer@decolines@headline}{.019\paperheight}
% String used between the current page and the total page count.
\def\beamer@decolines@pageofpages{/}
\setbeamerfont{frametitle}{series=\bfseries}
%\setbeamerfont{title}{series=\bfseries}
% Footline
\defbeamertemplate*{footline}{decolines theme}
{
% Check if this is a title frame.
\ifnum \insertpagenumber=1
%Placeholder for the title frame. If this code will be removed position of footers on all other frames will be broken
% Second line.
\begin{beamercolorbox}[ht=\beamer@decolines@linemid,dp=5pt]{}
\end{beamercolorbox}
% Third line.
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{}%
\end{beamercolorbox}%
}
\else
% Second line.
\begin{beamercolorbox}[ht=\beamer@decolines@linemid]{epamlinestring}
\begin{beamercolorbox}[wd=.15\paperwidth,ht=\beamer@decolines@linemid,dp=5pt,right]{epamlinestring}%
\begin{minipage}[c]{1cm}
\includegraphics[height=.03\textheight]{epam_white}
\end{minipage}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.01\paperwidth,ht=\beamer@decolines@linemid,dp=5pt,right]{epamlinestring}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.64\paperwidth,ht=\beamer@decolines@linemid,dp=5pt,left]{epamlinestring}%
\tiny{\sffamily{Excellence in Software Engineering}}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@decolines@linemid,dp=5pt,right]{epamlinestring}%
% \hbox{\usebeamerfont{palette primary}\scriptsize\insertframenumber{} \beamer@decolines@pageofpages{} \inserttotalframenumber\hspace*{2ex}}%
\hbox{\usebeamerfont{palette primary}\tiny\insertframenumber{} \hspace*{2ex}}%
\end{beamercolorbox}%
\end{beamercolorbox}
% Third line.
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{}%
\end{beamercolorbox}%
}
\fi
}
% colors for headline
% headline
\setbeamertemplate{headline}{%
%\leavevmode%
% \hbox{%
% \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@headline,dp=1.125ex]{epamline2}%
% \insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
% \end{beamercolorbox}%
% }
}
\setbeamercolor{block title}{use=structure,fg=EpamWhite,bg=EpamBlue}
\setbeamercolor{block title alerted}{use=alerted text,fg=EpamWhite,bg=EpamRaspberry}
\setbeamercolor{block title example}{use=example text,fg=EpamWhite,bg=EpamGreenLime}
\setbeamercolor{block body}{parent=normal text,use=block title,fg=EpamGraphite}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!10!bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!10!bg}
\setbeamercolor{subtitle}{bg=EpamBlue,fg=EpamWhite}
\defbeamertemplate*{title page}{customized}[1][]
{
\hspace*{-5mm}
\includegraphics[height=0.09\textheight,keepaspectratio]{epam_primary}\hfill\vfill\par
\usebeamerfont{title}{\textsc\inserttitle}\par
\usebeamerfont{subtitle}\MakeUppercase{\insertsubtitle}\vfill\par
\bigskip
\usebeamerfont{author}\insertauthor\par
\usebeamerfont{institute}\insertinstitute\vfill\par
\bigskip
\usebeamerfont{date}\insertdate\par
% To start frame counter from the one next to title, not from title itself
\addtocounter{framenumber}{-1}
}
\makeatother
\mode <all>