-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeVUT.sty
189 lines (156 loc) · 6.82 KB
/
beamerthemeVUT.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
185
186
187
188
189
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Název: VUT FEKT téma pro BEAMER %%
%% %%
%% Autor: Jakub Oškera, %%
%% Pavel Rajmic %%
%% %%
%% Verze: 1.0 %%
%% %%
%% FEKT, VUT v Brne %%
%% [email protected] %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Obsah: 01. BALÍČKY %%
%% 02. BARVY %%
%% 03. SPODNÍ LIŠTA SNÍMKŮ %%
%% 04. POSTUPOVÁ LIŠTA %%
%% 05. BLOKY %%
%% 06. ITEMIZE %%
%% 07. PLOVOUCÍ PROSTŘEDÍ %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation>
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 01. BALÍČKY
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage{tikz} % Balíček pro vektorovou grafiku (možnost umístění loga v hlavičce slajdu)
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 02. BARVY
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Použití balíčku s definovanýma barvama VUT
\usecolortheme{VUT}
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 03. SPODNÍ LIŠTA SNÍMKŮ
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\makeatother
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=3ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=3ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=3ex,dp=1ex,center]{date in head/foot}%
\usebeamerfont{date in head/foot}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
}
%Vypnuti navigacnich symbolu v pravem dolnim rohu
\newcommand{\vypninavigacnisymboly}{\setbeamertemplate{navigation symbols}}
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 04. POSTUPOVÁ LIŠTA
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\makeatletter
\def\progressbar@progressbar{} % postupová lišta
\newcount\progressbar@tmpcounta % pomocný čítač_a
\newcount\progressbar@tmpcountb % pomocný čítač_b
\newdimen\progressbar@pbht % výška postupové lišty
\newdimen\progressbar@pbwd % šířka postupové lišty
\newdimen\progressbar@tmpdim % pomocný rozměr
\global\let\insertframelogo\@empty
\progressbar@pbwd=\paperwidth
\progressbar@pbht=1.5pt
\def\progressbar@progressbar{%
\progressbar@tmpcounta=\insertframenumber
\progressbar@tmpcountb=\inserttotalframenumber
\progressbar@tmpdim=0.01\progressbar@pbwd
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
\divide\progressbar@tmpdim by \progressbar@tmpcountb
\progressbar@tmpdim=100\progressbar@tmpdim
\begin{tikzpicture}[very thin]
\shade[top color=vutred,bottom color=vutred,middle color=vutred] %
(0pt, 0pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht);
\end{tikzpicture}%
}
\newlength\progress@raise
\setlength\progress@raise{-2em}
\addtolength\progress@raise{-2pt}
\defbeamertemplate*{frametitle}{VUT}[1][left]
{
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\begin{beamercolorbox}[sep=1ex,#1,wd=\the\@tempdima]{frametitle}
\usebeamerfont{frametitle}%
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
\strut\insertframetitle\strut%
\ifx\insertframelogo\@empty\else\hspace{0pt plus 1 filll}\insertframelogo\fi\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%
\fi
}%
\vskip-0.7ex%
\if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...
\end{beamercolorbox}%
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,ht=1pt,dp=1pt]{}%
\progressbar@progressbar%
\end{beamercolorbox}%
}%
\makeatother
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 05. BLOKY
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%Normální běžná informace (modrý blok)
\setbeamertemplate{block begin}
{
\setbeamercolor{item}{parent=block body}
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=.7ex,dp=0.1ex,leftskip=0.5ex,rightskip=0.5ex]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex,vmode]{block body}%
}
\setbeamertemplate{block end}
{\end{beamercolorbox}\vskip\smallskipamount}
%Zdůrazněná důležitá informace (červený blok)
\setbeamertemplate{block alerted begin}
{
\setbeamercolor{item}{parent=block body alerted}
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=.7ex,dp=0.1ex,leftskip=0.5ex,rightskip=0.5ex]{block title alerted}
\usebeamerfont*{block title alerted}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body alerted}%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex,vmode]{block body alerted}%
}
\setbeamertemplate{block alerted end}
{\end{beamercolorbox}\vskip\smallskipamount}
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 06. ITEMIZE
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%Vytvoření symbolů pro itemize
\newcommand{\vutctverecvelky}{\textcolor{vutred}{\raisebox{.4ex}{\rule{0.8ex}{0.8ex}}}}
\newcommand{\vutctverecstredni}{\textcolor{vutblue}{\raisebox{.4ex}{\rule{0.6ex}{0.6ex}}}}
\newcommand{\vutctverecmaly}{\textcolor{black}{\raisebox{.4ex}{\rule{0.4ex}{0.4ex}}}}
%Přiřazení symbolů k jednotlivým stupňům itemize
\setbeamertemplate{itemize item}{\vutctverecvelky}
\setbeamertemplate{itemize subitem}{\vutctverecstredni}
\setbeamertemplate{itemize subsubitem}{\vutctverecmaly}
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% 07. PLOVOUCÍ PROSTŘEDÍ
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%Číslování objektů figure a table
\setbeamertemplate{caption}[numbered]
\mode
<all>