4f547a905defe999eb822a86ee9b76d38141423f
[skm-ma-ws1314.git] / beamerouterthemetubs.sty
1 % Copyright 2010 by Jens Brandt <brandt@ibr.cs.tu-bs.de>
2 %
3 % This theme can be redistributed and/or modified under the terms
4 % of the GNU Public License, version 2.
5
6
7 \newif\ifbeamer@theme@section
8 \newif\ifbeamer@theme@relax
9 \newif\ifbeamer@theme@instlogo
10
11 \DeclareOptionBeamer{section}[true]{\csname beamer@theme@section#1\endcsname}
12 \DeclareOptionBeamer{relax}[true]{\csname beamer@theme@relax#1\endcsname}
13
14 \ProcessOptionsBeamer
15
16
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}
21
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}
28
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}
35
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}
41
42
43 \titlegraphic{altbau.jpg}
44
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%
49 }
50
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}
53
54 \setbeamertemplate{navigation symbols}{}
55
56 \mode<presentation>
57
58 \setlength\leftmargini{19pt}
59 \setlength\leftmarginii{14pt}
60 \setlength\leftmarginiii{14pt}
61
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}}
65
66 \setbeamertemplate{itemize items}[tusquare]
67
68 \setbeamertemplate{enumerate item}{\insertenumlabel.}
69 \setbeamertemplate{enumerate subitem}{\small\insertenumlabel.}
70 \setbeamertemplate{enumerate subsubitem}{\scriptsize\insertenumlabel.}
71
72 %suppress navigation symbols and extra logo insertion
73 \defbeamertemplate*{sidebar right}{tubs}{}
74
75 \defbeamertemplate*{title page}{tubs}[1][]{
76 \vbox{}%
77 \vfill%
78 \begin{centering}%
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}}}%
86 \fi%
87 \end{pgfpicture}%
88 \end{beamercolorbox}%
89 \vspace*{-0.35mm}%
90 \begin{beamercolorbox}[wd=12.03cm,ht=2.97cm,leftskip=0.7cm,dp=1mm]{title}%
91 {%
92 \usebeamerfont{title}\inserttitle\par}%
93 \ifx\insertsubtitle\@empty%
94 \else%
95 \vskip0.2em%
96 {\usebeamerfont{subtitle}\insertsubtitle\par}%
97 \fi%
98 \vskip5.3mm%
99 {\usebeamerfont{author}\insertauthor\par}%
100 \vskip0.0mm%
101 {\usebeamerfont{date}\insertdate}%
102 \vspace*{2.6mm}
103 \end{beamercolorbox}%
104 \vspace*{-0.4mm}%
105 \begin{beamercolorbox}[wd=12.03cm,ht=0.403cm]{tu-red}\end{beamercolorbox}%
106 \end{centering}%
107 }
108
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}}%
116 \end{pgfpicture}%
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}}}%
123 \else%
124 \pgfputat{\pgfxy(12.6,0.1)}{\pgfbox[right,base]{\pgfuseimage{inst-logo}}}%
125 \fi%
126 \end{pgfpicture}%
127 \fi%
128 \ifbeamer@theme@relax%
129
130 \else%
131 \begin{beamercolorbox}[ht=0.11cm]{bg=white}%
132 \end{beamercolorbox}%
133 \fi%
134 }
135
136 \defbeamertemplate*{frametitle}{tubs}{%
137 \vspace{-3.2mm}%
138 \begin{beamercolorbox}[ht=0.4cm,wd=\paperwidth]{frametitle}%
139 \ifbeamer@theme@section%
140 \vspace*{-0.0mm}%
141 \insertnavigation{\paperwidth}\vskip1pt%
142 \fi%
143 \end{beamercolorbox}%
144 \vspace{-0.45mm}%
145 \begin{beamercolorbox}[leftskip=0.50cm,ht=0.71cm,wd=\paperwidth,dp=0.2cm]{frametitle}%
146 \insertframetitle%
147 \end{beamercolorbox}%
148 }
149
150 \setbeamersize{text margin left=0.61cm,text margin right=0.61cm}
151
152 \mode<all>
153
This page took 0.042726 seconds and 3 git commands to generate.