forked from UniboDIFABiophysics/UniBO_beamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemeunibo.sty
58 lines (48 loc) · 2.42 KB
/
beamerinnerthemeunibo.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
\mode<presentation>
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=white] (0,2) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=darkred] (0,\the\paperheight) rectangle(0.35, 7.0); % left band
\fill[color=darkgray] (0,7) rectangle(\the\paperwidth - 50.0, 7.05); % gray horizontal band
\fill[color=darkred] (0,0) rectangle(\the\paperwidth, 0.75); % bottom band
\fill[color=white] (\the\paperwidth - 48.0, 0.75) rectangle(\the\paperwidth - 50, 0.2); % white vertical band
\fill[color=darkgray] (\the\paperwidth - 48.0, 0.75) rectangle(\the\paperwidth - 50, 1.25); % gray vertical band
\node[inner sep=0pt] (logo) at (1.1,\the\paperheight-40.725)
{\includegraphics[scale=.145]{logo.png}};
\node[anchor=west, white, font=\scriptsize] (alma) at (1.8, 0.5)
{\textbf{\textsc{ALMA MATER STUDIORUM $\cdot$ UNIVERSIT\`A DI BOLOGNA}}}; % bottom tag
\node[anchor=west, black] (Alma) at (1.8, \the\paperheight - 20)
{\textbf{\textsc{Alma Mater Studiorum $\cdot$ Università di Bologna}}}; % header
\node[anchor=west, black] (school) at (2, \the\paperheight - 40)
{\scriptsize{\textsc{Dipartimento di Medicina Specialistica, Diagnostica e Sperimentale}}}; % sub header
\ifx\insertsubtitle\@empty
\else%
\node[anchor=center, black, align=center, text width=10cm] (school) at (\the\paperwidth * .5, \the\paperheight - 60)
{\insertsubtitle}; % subtitle
\fi
\node[anchor=center, black, align=center, text width=10cm] (author) at (\the\paperwidth * .5, \the\paperheight - 150)
{\insertauthor}; % author
\ifx\insertinstitute\@empty
\else%
\node[anchor=center, black, text width=10cm] (institute) at (\the\paperwidth * .5, \the\paperheight - 200)
{\scriptsize{\emph{\textsf{\insertinstitute}}}}; % institute
\fi
\node[anchor=center, black] (date) at (\the\paperwidth * .5, \the\paperheight - 240)
{\small{\insertdate}}; % date
%\fill[color=blue!50!cyan!80] (3.05,0) rectangle(\the\paperwidth,1.);
\ifnum\thepage>1\relax%
\fill[white, opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{unibo}[1][]
{
\vskip2cm%
\begin{beamercolorbox}[center]{title page header}
\usebeamerfont{title}\textbf{\inserttitle}\par%
\end{beamercolorbox}%
\vfill
}
\mode<all>