-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbeamerinnerthemeuniud.sty
55 lines (43 loc) · 1.45 KB
/
beamerinnerthemeuniud.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
\mode<presentation>
\setbeamertemplate{sections/subsections in toc}[circle]
\setbeamertemplate{items}[circle]
\usebeamercolor[fg]{normal text}
\setbeamertemplate{background}{
\begin{tikzpicture}
\ifnum\thepage>1\relax%
% background for pages > 1
%\fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\else
% background for the title page
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
% background logo
\node[inner sep=0pt] (logo) at (3,4.75){\includegraphics[width=6cm]{graphics/halfLogo}};
% line between institute and author
\fill[color=UniOrange] (0,7.1) rectangle(1,7.15);
\fill[color=UniBlue] (1,7.1) rectangle(2,7.15);
\fill[color=UniBrown] (2,7.1) rectangle(\the\paperwidth,7.15);
\fi
% in debug mode, show the grid
\ifdefined\DEBUG
\draw[help lines,xstep=1,ystep=1,gray] (current page.south west) grid (current page.north east);
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{uniud}[1][]
{
\begin{textblock*}{10cm}(2cm,2cm)
{\usebeamercolor[fg]{author}\usebeamerfont{author}\insertinstitute}
\end{textblock*}
\begin{textblock*}{10cm}(2cm,2.6cm)
{\usebeamercolor[fg]{title}\usebeamerfont{title}\inserttitle}
\end{textblock*}
\begin{textblock*}{10cm}(2cm,6.1cm)
{\usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor}
\end{textblock*}
\begin{textblock*}{10cm}(2cm,8.1cm)
{\usebeamercolor[fg]{author}\usebeamerfont{author}\insertdate}
\end{textblock*}
}
\mode
<all>