-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeeinfra2.sty
184 lines (157 loc) · 4.94 KB
/
beamerthemeeinfra2.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
\ProvidesPackage{beamerthemeeinfra-v01}
\ProcessOptionsBeamer
%%\usepackage{environ}
%\usepackage{mdframed}
%%% FONT %%%
%\usepackage{AvenirLTPro}
%\usefonttheme{professionalfonts}
%% podvadim
%\usepackage{opensans}
%\usepackage{helvet}
%\renewcommand\familydefault{\sfdefault}
\usepackage[tabular]{sourcesanspro}
% nastaveni fontu
\AtBeginDocument{\boldmath}
%zakladni barvy
\definecolor{einfragayeggplant}{RGB}{47,37,87}
\definecolor{einfrablack}{RGB}{0,0,0}
\definecolor{einfragayblue}{RGB}{76,217,244}
\definecolor{einfrapurple}{RGB}{134,52,252}
\definecolor{einfrawhite}{RGB}{255,255,255}
\colorlet{einfrabase}{einfragayeggplant}
\colorlet{einfratitle}{einfragayeggplant}
% obrazky na pozadi
\setbeamertemplate{background canvas}{%
\ifnumequal{\c@framenumber}{1}{%
% First frame
\includegraphics[height=\paperheight]{Prezentace-titul-einfra2.pdf}
}{%
% ljocha:
% \includegraphics[height=\paperheight]{Prezentace-slide-einfra2.pdf}
\includegraphics[height=\paperheight]{Prezentace-empty-einfra2.pdf}
}%
}
% opicky nahore a dole na slidu
\useoutertheme{infolines}
\setbeamertemplate{headline}{}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
\strut\hfill
\vbox to 0pt
{
\vss
\leavevmode
\raggedright
\hsize=.94\textwidth
\usebeamercolor[fg]{author in head/foot}
\usebeamerfont{author in head/foot}
{\null\hfill\insertframenumber{}/\inserttotalframenumber}
\par
\vskip10pt
}
\hskip2em\strut
}
% normalni stranka -- titul
\defbeamertemplate*{frametitle}{einfra theme}
{%
\vbox to 45pt{
\vfill
\leavevmode
\raise10pt
\hbox {%
\parbox[t]{.45\paperwidth}{
%\flushright
\usebeamerfont{frametitle}{\insertframetitle}
\\
{\usebeamercolor{framesubtitle}
\usebeamerfont{framesubtitle}{\insertframesubtitle}}
}
\hspace*{-1.5cm}
}
}
}
\setbeamersize{text margin left=1cm,text margin right=1cm}
%velikost fontu atd
\setbeamerfont{title}{series=\bfseries,size={\fontsize{16}{20}}}
%\setbeamerfont{title}{series=\bfseries,size=\Large}
\setbeamerfont{subtitle}{series=\bfseries,size=\large}
% ljocha \setbeamerfont{author}{series=\bfseries,size=\Large}
\setbeamerfont{author}{series=\bfseries,size=\large}
\setbeamerfont{author last}{series=\bfseries,size=\footnotesize}
\setbeamerfont{author in head/foot}{series=\bfseries,size=\footnotesize}
\setbeamerfont{date}{size=\footnotesize}
\setbeamerfont{institute}{size=\footnotesize}
\setbeamerfont{author in head/foot}{size=\tiny,series=\bfseries}
\setbeamerfont{title in head/foot}{size=\tiny,series=\bfseries}
\setbeamerfont{date in head/foot}{size=\tiny,series=\bfseries}
%\setbeamerfont{alerted text}{series=\bfseries}
\setbeamerfont{frametitle}{series=\bfseries,size=\Large}
%barvicky
\setbeamercolor{title page}{fg=einfratitle}
\setbeamercolor{frametitle}{fg=einfratitle}
\setbeamercolor{framesubtitle}{fg=einfragayeggplant}
\setbeamercolor{alerted text}{fg=einfragayblue}
\setbeamercolor{structure}{fg=einfrabase}
\setbeamercolor{author in head/foot}{fg=einfrabase}
\setbeamercolor{enumerate item}{fg=black}
\setbeamercolor{enumerate subitem}{fg=black}
\setbeamercolor{enumerate subsubitem}{fg=black}
\setbeamercolor{enumerate item}{fg=einfrabase}
\setbeamercolor{itemize item}{fg=einfrabase}
\setbeamercolor{itemize subitem}{fg=einfragayblue}
\setbeamercolor{itemize subsubitem}{fg=einfrapurple}
\setbeamercolor{itemize/enumerate body}{fg=einfrabase}
\setbeamercolor{itemize/enumerate subbody}{fg=einfrabase}
\setbeamercolor{itemize/enumerate subsubbody}{fg=einfrabase}
%odrazky
\setbeamertemplate{itemize item}[circle]%{\textbf{---}}
\setbeamertemplate{itemize subitem}[circle]%{\textbf{---}}
\setbeamertemplate{itemize subsubitem}[circle]%{\textbf{---}}
%prvni stranka
\setbeamertemplate{title page}{
\advance\leftskip.5\textwidth
\vskip40pt
\vfill\vfill
% ljocha {\usebeamerfont{title} \MakeUppercase{\inserttitle}}\par
{\usebeamerfont{title} {\inserttitle}}\par
\medskip
{\usebeamerfont{subtitle}\textcolor{einfragayblue} \insertsubtitle}\par
\bigskip
{\usebeamerfont{author} \insertauthor}\par
\medskip
%{\usebeamerfont{institute} \insertinstitute}\par
%\par\noindent\rule{.5\textwidth}{1pt}
%\medskip
{\usebeamerfont{date} \insertdate}
\vfill
\vfill
}
\newenvironment{emptyframe}
{\setbeamertemplate{background canvas}%
{\includegraphics[height=\paperheight]{Prezentace-empty-einfra2.pdf}}%
\setbeamertemplate{footline}{}%
\begin{frame}
\centering
\vss
\usebeamercolor[einfrablack]{title page}\usebeamerfont{title}%
}
{\end{frame}}
\newenvironment{lastframe}
{\setbeamertemplate{background canvas}%
{\includegraphics[height=\paperheight]{Prezentace-last-einfra2.pdf}}%
\setbeamertemplate{footline}{}%
\begin{frame}
\centering
\vss
\usebeamercolor[einfrablack]{title page}\usebeamerfont{title}%
}
{\vss\end{frame}}
\newenvironment{separationframe}
{\setbeamertemplate{background canvas}%
{\includegraphics[height=\paperheight]{Prezentace-sep-einfra2.pdf}}%
\setbeamertemplate{footline}{}%
\begin{frame}
\centering
\usebeamercolor[einfrablack]{title page}\usebeamerfont{title}%
}
{\end{frame}}