-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerouterthemesiegen.sty
112 lines (95 loc) · 3.89 KB
/
beamerouterthemesiegen.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
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{siegen}[1][]
{
\vskip.05\paperheight%
\begin{beamercolorbox}[wd=\paperwidth,ht=.15\paperheight]{frametitle}
\begin{tikzpicture}
\ifx\insertsection\@empty%
{
\useasboundingbox(0,0) rectangle (\paperwidth,.1\paperheight);
\node[anchor=north west] at (.8,1.3){
\parbox{.85\paperwidth}{\usebeamerfont{frame title}\insertframetitle}
};
}
\else%
{
\useasboundingbox(0,0) rectangle (\paperwidth,.15\paperheight);
\node[anchor=south west] at (.8,1.1){\usebeamerfont{section in head/foot}\insertsection};%
\node[anchor=north west] at (.8,1.1){
\parbox{.85\paperwidth}{\usebeamerfont{frame title}\insertframetitle}
};
}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
% foot line
\defbeamertemplate*{footline}{siegen}[1][]
{
\begin{beamercolorbox}[wd=\paperwidth,ht=.15\paperheight]{footline}
\begin{tikzpicture}
\useasboundingbox(0,0) rectangle (\paperwidth,.12\paperheight);
\fill[bg] (0,0) rectangle (\paperwidth,.12\paperheight);
\node[anchor=south west] at (.03\paperwidth, .03\paperheight) { \resizebox{!}{.05\paperheight}{\setsmalllogo\par} };
\node[anchor=base west] at (.15\paperwidth,.05\paperheight){ \usebeamerfont{footline}\insertshortauthor };
\node[anchor=base] at (.5\paperwidth,.05\paperheight){\parbox{.4\paperwidth}{\raggedleft\usebeamerfont{footline}\insertshorttitle} };
\node[anchor=base west] at (.75\paperwidth,.05\paperheight){ \usebeamerfont{footline}\insertshortdate };
\node[anchor=base west] at (.92\paperwidth,.05\paperheight){ \usebeamerfont{footline}\insertframenumber };
\end{tikzpicture}
\end{beamercolorbox}
}
% section frame, design 1
\defbeamertemplate{section page}{alternative1}[1][]
{
\thispagestyle{navigation@titlepage}
\begin{tikzpicture}
\useasboundingbox (1,0) rectangle(\paperwidth,\paperheight);
\usebeamercolor{secondary}
\fill[fg] (0,0) rectangle (.2\paperwidth,1.01\paperheight);
\node[anchor=south west] at (.04\paperwidth,.16\paperheight) {\begin{beamercolorbox}[wd=.35\paperwidth,#1]{titlelike}
\usebeamerfont{part number}\insertsectionnumber\par%
\end{beamercolorbox}};
\usebeamercolor{primary}
\fill[fg] (.19\paperwidth,0) rectangle (\paperwidth,1.01\paperheight);
\node[anchor=south west] at (.33\paperwidth,.2\paperheight) {\begin{beamercolorbox}[wd=.4\paperwidth,#1]{titlelike}
\usebeamerfont{part title}\insertsection\par%
\end{beamercolorbox}};
\end{tikzpicture}
}
% section frame, design 2
\defbeamertemplate{section page}{alternative2}[1][]
{
\thispagestyle{navigation@titlepage}
\begin{tikzpicture}
\useasboundingbox (1,0) rectangle(\paperwidth,\paperheight);
\usebeamercolor{primary}
\fill[fg] (0,0) rectangle (\paperwidth,1.01\paperheight);
\usebeamercolor{secondary}
\fill[fg] (.5\paperwidth,0) -- ++(70:100) -- (\paperwidth,1.01\paperheight) -- (\paperwidth,0) --cycle;
\node[anchor=north west] at (.05\paperwidth,.72\paperheight) {\begin{beamercolorbox}[wd=.5\paperwidth,#1]{titlelike}
\usebeamerfont{part title}\insertsection\par%
\end{beamercolorbox}};
\end{tikzpicture}
}
% section frame, design 3
\defbeamertemplate{section page}{alternative3}[1][]
{
\thispagestyle{navigation@titlepage}
\begin{tikzpicture}
\useasboundingbox (1,0) rectangle(\paperwidth,\paperheight);
\ifx\sectionpagebackground\@empty {
\usebeamercolor{secondary}
\fill[fg] (0,0) rectangle (\paperwidth,1.01\paperheight);
} \else {
\node[anchor=south west] at (-4pt,-4pt) {\includegraphics[width=\paperwidth,height=1.01\paperheight]{\sectionpagebackground}};%
}%
\fi
\usebeamercolor{primary}
\fill[fg] (0,.4\paperheight) rectangle (.6\paperwidth,.8\paperheight);
\node[anchor=north west] at (.05\paperwidth,.72\paperheight) {\begin{beamercolorbox}[wd=.5\paperwidth,#1]{titlelike}
\usebeamerfont{part title}\insertsection\par%
\end{beamercolorbox}};
\end{tikzpicture}
}
\mode<all>