-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemeAMU3.sty
188 lines (147 loc) · 5.02 KB
/
beamerthemeAMU3.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
% The beamer presentation theme for:
%
% Adam Mickiewicz University
%
% author:
% Paweł Skórzewski <pawel.skorzewski@amu.edu.pl>
% created: 2023-10-03
% version: 2.0.0
%
% -------------------------------------------------------------------------
% Introduce options
\newif\ifbeamer@en
\beamer@enfalse
\DeclareOptionBeamer{en}{\beamer@entrue}
\newif\ifbeamer@widetitle
\beamer@widetitlefalse
\DeclareOptionBeamer{widetitle}{\beamer@widetitletrue}
\ProcessOptionsBeamer
% -------------------------------------------------------------------------
% Defining the preamle
\mode<presentation>
\usepackage{pgfcomp-version-0-65}
\usepackage{xcolor}
\usepackage{helvet}
\usepackage[absolute,overlay]{textpos}
\usepackage{tikz}
% no hyphenation
\hyphenpenalty=100000
% -------------------------------------------------------------------------
% Inner theme
\setbeamertemplate{blocks}[default]
\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{enumerate items}[default]
\setbeamertemplate{section in toc}[sections numbered]
% -------------------------------------------------------------------------
% Colors
\definecolor{base}{RGB}{0,45,105}
\definecolor{accent}{RGB}{0,45,105}
\definecolor{red}{RGB}{201,33,35}
\definecolor{yellow}{RGB}{255,136,0}
\definecolor{green}{RGB}{2,114,35}
\definecolor{teal}{RGB}{0,146,189}
\definecolor{blue}{RGB}{0,94,168}
\definecolor{purple}{RGB}{143,35,179}
\setbeamercolor{title}{fg=base}
\setbeamercolor{subtitle}{fg=base}
\setbeamercolor{author}{fg=base}
\setbeamercolor{date}{fg=base}
\setbeamercolor{structure}{fg=base}
\setbeamercolor{frametitle}{fg=base}
\setbeamercolor{normal text}{fg=base}
\setbeamercolor{item}{fg=base}
\setbeamercolor{subitem}{fg=base}
\setbeamercolor{subsubitem}{fg=base}
\setbeamercolor{description item}{fg=base}
\setbeamercolor{alerted text}{fg=red}
\setbeamercolor{example text}{fg=green}
\setbeamerfont{block title}{series=\bfseries}
\setbeamercolor{block title}{fg=base}
\setbeamercolor{block title alerted}{fg=red}
\setbeamercolor{block title example}{fg=teal}
\setbeamercolor{block body}{fg=base}
\setbeamercolor{block body alerted}{fg=red}
\setbeamercolor{block body example}{fg=teal}
\setbeamercolor{text in foot}{fg=white}
% -------------------------------------------------------------------------
% Fonts
\usefonttheme{professionalfonts}
\setbeamerfont{title}{size=\Large,shape=\upshape,series=\bfseries}
\setbeamerfont{subtitle}{size=\normalsize,shape=\upshape,series=\mdseries}
\setbeamerfont{frametitle}{size=\Large,shape=\upshape,series=\bfseries}
\setbeamerfont{author}{size=\normalsize,shape=\upshape,series=\mdseries}
\setbeamerfont{date}{size=\normalsize,shape=\upshape,series=\mdseries}
\setbeamerfont{institute}{size=\normalsize,shape=\upshape,series=\mdseries}
\setbeamerfont{text in foot}{size=\scriptsize}
% -------------------------------------------------------------------------
% Margins
\setbeamersize{text margin left=0.6cm,text margin right=0.6cm}
% -------------------------------------------------------------------------
% Outer theme
% Title page
\ifbeamer@widetitle%
\newcommand{\titlewidth}{9.6cm}
\else%
\newcommand{\titlewidth}{5.6cm}
\fi
\defbeamertemplate*{title page}{AMUBeamer}[1][]
{%
\pgftext[top,left,at=\pgfpoint{1.0cm}{0.7cm}]{%
{\begin{minipage}{\titlewidth}%
\raggedright%
\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par%
\vspace{0.3cm}%
\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par%
\vspace{0.6cm}%
\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor\par%
\vspace{0.6cm}%
\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate\par%
\end{minipage}}%
}%
}
% Frame backgrounds
\ifbeamer@en%
\pgfdeclareimage[width=\paperwidth]{amuTitleSlide}{img/amu-titleslide-en.pdf}
\else%
\pgfdeclareimage[width=\paperwidth]{amuTitleSlide}{img/amu-titleslide-pl.pdf}
\fi%
\pgfdeclareimage[width=\paperwidth]{amuBackground}{img/amu-background.pdf}
\defbeamertemplate*{background canvas}{AMUBeamer}
{%
\ifnum\thepage=1\relax%
\pgfuseimage{amuTitleSlide}
\else%
\pgfuseimage{amuBackground}
\fi%
}
% Frame title
\defbeamertemplate*{frametitle}{AMUBeamer}
{%
\begin{beamercolorbox}[wd=7.8cm,ht=1cm,left]{frame title}%
{\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\par}%
\end{beamercolorbox}%
\vfil%
}
% Footer
\setbeamertemplate{navigation symbols}{}
\defbeamertemplate*{footline}{AMUBeamer}
{%
\ifnum\thepage=1\relax%
%do nothing
\else%
\pgftext[left,base,at=\pgfpoint{0.6cm}{0.14cm}]{%
{\usebeamerfont{text in foot}\usebeamercolor[fg]{text in foot}%
\insertshortauthor\par}%
}
\pgftext[center,base,at=\pgfpoint{6.4cm}{0.14cm}]{%
{\usebeamerfont{text in foot}\usebeamercolor[fg]{text in foot}%
\insertshorttitle\par}%
}
\pgftext[right,base,at=\pgfpoint{12.2cm}{0.14cm}]{%
{\usebeamerfont{text in foot}\usebeamercolor[fg]{text in foot}%
\insertframenumber{}/\inserttotalframenumber\par}%
}
\fi%
}
\mode
<all>