1 % Copyright 2010 by Jens Brandt <brandt@ibr.cs.tu-bs.de>
3 % This theme can be redistributed and/or modified under the terms
4 % of the GNU Public License, version 2.
7 \newif\ifbeamer@theme@section
8 \newif\ifbeamer@theme@relax
9 \newif\ifbeamer@theme@instlogo
11 \DeclareOptionBeamer{section}[true]{\csname beamer@theme@section#1\endcsname}
12 \DeclareOptionBeamer{relax}[true]{\csname beamer@theme@relax#1\endcsname}
17 \definecolor{dark-blue}{rgb}{0.12,0.23,0.62}
18 \definecolor{tu-red}{HTML}{BE1E3C}
19 \definecolor{tu-grey}{HTML}{DDDDDD}
20 \definecolor{tu-yellow}{HTML}{FFF0B2}
22 \definecolor{255.205.0}{HTML}{FFCD00}
23 \definecolor{250.110.0}{HTML}{FA6E00}
24 \definecolor{176.0.70}{HTML}{B00046}
25 \definecolor{124.205.230}{HTML}{7CCDE6}
26 \definecolor{0.128.180}{HTML}{0080B4}
27 \definecolor{0.83.116}{HTML}{005374}
29 \setbeamercolor{frametitle}{fg=black,bg=tu-grey}
30 \setbeamerfont{section in head/foot}{size=\tiny}
31 \setbeamerfont{title}{size=\large,series=\bfseries}
32 \setbeamerfont{subtitle}{size=\scriptsize}
33 \setbeamerfont{author}{size=\small,series=\bfseries}
34 \setbeamerfont{date}{size=\scriptsize,series=\normalfont}
36 \setbeamercolor{section in head/foot}{parent=frametitle}
37 \setbeamercolor{title}{fg=black, bg=tu-yellow}
38 \setbeamercolor{structure}{fg=tu-red}
39 \setbeamercolor{tu-red}{fg=white,bg=tu-red}
40 \setbeamercolor{white}{fg=white,bg=white}
43 \titlegraphic{altbau.jpg}
45 \newcommand\instlogo[1]{%
46 \pgfdeclareimage[interpolate=true,height=1.081cm]{inst-logo-title}{#1}%
47 \pgfdeclareimage[interpolate=true,height=0.8cm]{inst-logo}{#1}%
48 \beamer@theme@instlogotrue%
51 \pgfdeclareimage[interpolate=true,height=0.93cm]{tu-logo}{tu-logo-new}
52 \pgfdeclareimage[interpolate=true,height=1.34cm]{tu-logo-title}{tu-logo-new}
54 \setbeamertemplate{navigation symbols}{}
58 \setlength\leftmargini{19pt}
59 \setlength\leftmarginii{14pt}
60 \setlength\leftmarginiii{14pt}
62 \defbeamertemplate{itemize item}{tusquare}{\color{black}\raisebox{1.5pt}{\vrule width 3.5pt height 3.5pt}}
63 \defbeamertemplate{itemize subitem}{tusquare}{\color{black}\raisebox{1.5pt}{\vrule width 3pt height 3pt}}
64 \defbeamertemplate{itemize subsubitem}{tusquare}{\color{black}\raisebox{1.5pt}{\vrule width 3pt height 3pt}}
66 \setbeamertemplate{itemize items}[tusquare]
68 \setbeamertemplate{enumerate item}{\insertenumlabel.}
69 \setbeamertemplate{enumerate subitem}{\small\insertenumlabel.}
70 \setbeamertemplate{enumerate subsubitem}{\scriptsize\insertenumlabel.}
72 %suppress navigation symbols and extra logo insertion
73 \defbeamertemplate*{sidebar right}{tubs}{}
75 \defbeamertemplate*{title page}{tubs}[1][]{
79 \begin{beamercolorbox}[wd=12.03cm,ht=1.48cm]{white}\end{beamercolorbox}
80 \begin{beamercolorbox}[wd=12.03cm,ht=3.737cm]{title}%
81 \begin{pgfpicture}{0cm}{0cm}{0cm}{0cm}%
82 \pgfputat{\pgfxy(0.0,0)}{\pgfbox[left,base]{\pgfimage[interpolate=true,width=12.03cm,height=3.737cm]{\inserttitlegraphic}}}%
83 \pgfputat{\pgfxy(-0.38,3.399)}{\pgfuseimage{tu-logo-title}}%
84 \ifbeamer@theme@instlogo%
85 \pgfputat{\pgfxy(12.03,4.2)}{\pgfbox[right,base]{\pgfuseimage{inst-logo-title}}}%
90 \begin{beamercolorbox}[wd=12.03cm,ht=2.97cm,leftskip=0.7cm,dp=1mm]{title}%
92 \usebeamerfont{title}\inserttitle\par}%
93 \ifx\insertsubtitle\@empty%
96 {\usebeamerfont{subtitle}\insertsubtitle\par}%
99 {\usebeamerfont{author}\insertauthor\par}%
101 {\usebeamerfont{date}\insertdate}%
103 \end{beamercolorbox}%
105 \begin{beamercolorbox}[wd=12.03cm,ht=0.403cm]{tu-red}\end{beamercolorbox}%
109 \defbeamertemplate*{footline}{tubs}{%
110 \hspace*{2.47cm}{\color{tu-red}\hrule height 0.378pt}
111 \begin{beamercolorbox}[ht=0.3cm,dp=1.125ex, leftskip=2.7cm,rightskip=0.3cm plus1fil]{bg=white}%
112 \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor \, \textbar \, \insertshorttitle \, \textbar \, \insertframenumber}%
113 \end{beamercolorbox}%
114 \begin{pgfpicture}{0pt}{0pt}{0pt}{0pt}%
115 \pgfputat{\pgfxy(0,0.07)}{\pgfuseimage{tu-logo}}%
117 \begin{beamercolorbox}[ht=0.334cm]{bg=white}\end{beamercolorbox}
118 \begin{beamercolorbox}[ht=0.2cm]{bg=white}\end{beamercolorbox}
119 \ifbeamer@theme@instlogo%
120 \begin{pgfpicture}{0cm}{0cm}{0cm}{0cm}%
121 \ifbeamer@theme@relax%
122 \pgfputat{\pgfxy(12.6,0.0)}{\pgfbox[right,base]{\pgfuseimage{inst-logo}}}%
124 \pgfputat{\pgfxy(12.6,0.1)}{\pgfbox[right,base]{\pgfuseimage{inst-logo}}}%
128 \ifbeamer@theme@relax%
131 \begin{beamercolorbox}[ht=0.11cm]{bg=white}%
132 \end{beamercolorbox}%
136 \defbeamertemplate*{frametitle}{tubs}{%
138 \begin{beamercolorbox}[ht=0.4cm,wd=\paperwidth]{frametitle}%
139 \ifbeamer@theme@section%
141 \insertnavigation{\paperwidth}\vskip1pt%
143 \end{beamercolorbox}%
145 \begin{beamercolorbox}[leftskip=0.50cm,ht=0.71cm,wd=\paperwidth,dp=0.2cm]{frametitle}%
147 \end{beamercolorbox}%
150 \setbeamersize{text margin left=0.61cm,text margin right=0.61cm}