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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
% Copyright 2015 by Marei Peischl
%
% This file may be distributed and/or modified
% under the LaTeX Project Public License
%
\def\fileversion{1.4}
\def\filedate{2015/06/15}
\ProvidesPackage{beamerouterthemeUR}[\filedate\space\fileversion\space
beamer-outertheme im Corporate Design der Universität Regensburg]
%Booleans
%22 Booleans zum aktivieren/deaktivieren der einzelnen Abteilungsfarben
\newcounter{UR@runner}
\RequirePackage{ifthen}
%Create Booleans UR@Dep@\the\value{UR@runner}
\def\newdep#1{\expandafter\@ifdefinable\csname ifUR@dep@#1\endcsname{%
\expandafter\newif\csname ifUR@dep@#1\endcsname}}
\whiledo{\value{UR@runner}<23}{\stepcounter{UR@runner}\newdep{\the\value{UR@runner}}}
\newboolean{UR@coloredboxes}
%\newboolean{UR@draft}
\newboolean{fsimphy}
\newboolean{UR@externalize}
%Counter-Definitionen
\newcounter{UR@dep}
\newcounter{UR@temp} %temporärer counter zum Abtasten
\newcounter{UR@color}
%Optionen zum aktivieren einzelner Farben
\DeclareOption{lov}{\setboolean{UR@dep@1}{true}\stepcounter{UR@dep}}
\DeclareOption{ffg}{\setboolean{UR@dep@2}{true}\stepcounter{UR@dep}}
\DeclareOption{asz}{\setboolean{UR@dep@3}{true}\stepcounter{UR@dep}}
\DeclareOption{rw}{\setboolean{UR@dep@4}{true}\stepcounter{UR@dep}}
\DeclareOption{ww}{\setboolean{UR@dep@5}{true}\stepcounter{UR@dep}}
\DeclareOption{kt}{\setboolean{UR@dep@6}{true}\stepcounter{UR@dep}}
\DeclareOption{pkgg}{\setboolean{UR@dep@7}{true}\stepcounter{UR@dep}}
\DeclareOption{pps}{\setboolean{UR@dep@8}{true}\stepcounter{UR@dep}}
\DeclareOption{slk}{\setboolean{UR@dep@9}{true}\stepcounter{UR@dep}}
\DeclareOption{bvm}{\setboolean{UR@dep@10}{true}\stepcounter{UR@dep}}
\DeclareOption{mat}{\setboolean{UR@dep@11}{true}\stepcounter{UR@dep}}
\DeclareOption{ph}{\setboolean{UR@dep@12}{true}\stepcounter{UR@dep}}
\DeclareOption{chp}{\setboolean{UR@dep@13}{true}\stepcounter{UR@dep}}
\DeclareOption{med}{\setboolean{UR@dep@14}{true}\stepcounter{UR@dep}}
\DeclareOption{ub}{\setboolean{UR@dep@15}{true}\stepcounter{UR@dep}}
\DeclareOption{zsk}{\setboolean{UR@dep@16}{true}\stepcounter{UR@dep}}
\DeclareOption{eur}{\setboolean{UR@dep@17}{true}\stepcounter{UR@dep}}
\DeclareOption{zhw}{\setboolean{UR@dep@18}{true}\stepcounter{UR@dep}}
\DeclareOption{rul}{\setboolean{UR@dep@19}{true}\stepcounter{UR@dep}}
\DeclareOption{zfw}{\setboolean{UR@dep@20}{true}\stepcounter{UR@dep}}
\DeclareOption{spo}{\setboolean{UR@dep@21}{true}\stepcounter{UR@dep}}
\DeclareOption{rz}{\setboolean{UR@dep@22}{true}\stepcounter{UR@dep}}
\DeclareOption{fsimphy}{\setboolean{UR@dep@23}{true}\stepcounter{UR@dep}\setboolean{fsimphy}{true}}
\DeclareOption{externalize}{\setboolean{UR@externalize}{true}}
\DeclareOption{coloredboxes}{\setboolean{UR@coloredboxes}{true}}
\DeclareOption{all}{\setcounter{UR@temp}{1}\whiledo{\value{UR@temp}<23}{\setboolean{UR@dep@\arabic{UR@temp}}{true}\stepcounter{UR@dep}\stepcounter{UR@temp}}}
\DeclareOption{faculties}{\setcounter{UR@temp}{4}\whiledo{\value{UR@temp}<15}{\setboolean{UR@dep@\arabic{UR@temp}}{true}\stepcounter{UR@dep}\stepcounter{UR@temp}}}
\ProcessOptions\relax
%Notwendige Pakete
\RequirePackage{calc}
\RequirePackage{tikz,pgf}
\usetikzlibrary{calc}
\RequirePackage[RGB]{URcolors}
\setcounter{UR@temp}{1}
\setcounter{UR@color}{0}
\ifthenelse{\boolean{UR@coloredboxes}}{
\ifnum\value{UR@dep}=1
\else
\ClassError{urbeamer}{You selected more than one department}{coloredboxes are not available if more than one color has been choosen}
\fi}{}
\ifnum\value{UR@dep}=1
\whiledo{\value{UR@temp}<23}{
\ifthenelse{\boolean{UR@dep@\value{UR@temp}}}{\colorlet{UR@color@basic}{UR@color@\arabic{UR@temp}}
}
{}
\stepcounter{UR@temp}
}\setcounter{UR@temp}{1}
\hypersetup{allcolors=UR@color@basic}
\else
\definecolor{UR@color@basic}{RGB}{142,142,141}
\fi
\ifnum\value{UR@dep}=1
\whiledo{\value{UR@temp}<24}{
\ifthenelse{\boolean{UR@dep@\value{UR@temp}}}{\colorlet{UR@color@alert}{-UR@color@\arabic{UR@temp}}\colorlet{UR@color@example}{UR@color@\arabic{UR@temp}}}
{}
\stepcounter{UR@temp}
}
\setcounter{UR@temp}{1}
\else
\colorlet{UR@color@alert}{red}
\colorlet{UR@color@example}{green}
\fi
\mode<presentation>
%Notwendige Definitionen
\newlength{\x}%halber Radius der Kugel
\setlength{\x}{0.43cm}
\setlength{\unitlength}{\x}
%% Breite der Farbstreifen festlegen
\newlength{\streifen}
\setlength{\streifen}{\paperwidth-10\x}
% \ifthenelse{\boolean{fsimphy}}{
% \pgfdeclareimage[width=12\x]{titlepagelogo}{FSIlogotext}
% }{
% \pgfdeclareimage[width=12\x]{titlepagelogo}{urlogotext}} % placed on the title page
\newlength{\y} %halber radius kleine kugel in kopfzeile
\setlength{\y}{0.5\x}
% \ifthenelse{\boolean{fsimphy}}{\pgfdeclareimage[height=4\y]{headlinelogo}{FSIlogo}}{
% \pgfdeclareimage[height=4\y]{headlinelogo}{urlogo.pdf}}
\newlength{\hstreifen}
\setlength{\hstreifen}{0.5\paperwidth}
\addtolength{\hstreifen}{-3.75\y}
\pgfdeclareimage[height=4\y]{headlinelogo}{urlogo}
\pgfdeclareimage[width=12\x]{titlepagelogo}{urlogotext}
%\logo{\pgfuseimage{headlinelogo}}
\titlegraphic{\pgfuseimage{titlepagelogo}}
\newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}
%
%Option für tikzexternalize
\ifthenelse{\boolean{UR@externalize}}{\usetikzlibrary{external}}{\newcommand\tikzexternalenable\relax\newcommand\tikzexternaldisable\relax}
%
%Headline & Footline
\defbeamertemplate*{headline}{URtheme}{\tikzexternaldisable%
\vspace*{-1mm}
\begin{tikzpicture}[remember picture,line width=0pt]
\node at (0,0) {};
\node[anchor=north west] at (0.5\y,-0.5\y) {\pgfuseimage{headlinelogo}};
\coordinate (NWHB) at ($(0.5\y,0)+7*(\y,0)$);
\coordinate (SMHB) at ($0.5*(\paperwidth,-5\y)+3.5*(\y,0)$);
\coordinate (NEHB) at (\paperwidth,0);
\node[anchor=north west] at ($(SMHB)$){\hspace*{-.5\fboxsep}\parbox{0.4\paperwidth}{
{\fontsize{6}{6.6}\selectfont\bfseries\insertshortauthor}\vspace*{1pt}
{\fontsize{6}{6.6}\selectfont\insertshortinstitute}
}};
\end{tikzpicture}
\ifthenelse{\boolean{UR@draft}}{
\begin{tikzpicture}[overlay,remember picture,line width=0pt]
\draw (NWHB)rectangle(SMHB)rectangle(NEHB);
\end{tikzpicture}
}{
\begin{tikzpicture}[overlay,remember picture,line width=0pt]
\filldraw[UR@reingrau] (NWHB)rectangle(SMHB);
\end{tikzpicture}
\ifthenelse{\boolean{UR@draft}}{}{
\setcounter{UR@temp}{1}
\setcounter{UR@color}{0}
\whiledo{\value{UR@temp}<24}{
\ifthenelse{\boolean{UR@dep@\value{UR@temp}}}{
\begin{tikzpicture}[overlay,remember picture,line width=0pt]
\filldraw[UR@color@\arabic{UR@temp}]($(SMHB)+\arabic{UR@color}*(\hstreifen/\arabic{UR@dep},0)$)rectangle ($(SMHB)+\arabic{UR@color}*(\hstreifen/\arabic{UR@dep},0)+(0,5\y)+(\streifen/\arabic{UR@dep},0)$);
\end{tikzpicture}
\stepcounter{UR@color}}
{}
\stepcounter{UR@temp}
}
}}\tikzexternalenable}
\setbeamertemplate*{footline}{}
% Sidebar
\setbeamertemplate*{sidebar left}{}
\setbeamertemplate*{sidebar right}{}
\setbeamertemplate*{sidebar canvas left}{}
\setbeamertemplate*{sidebar canvas right}{}
% Frame title
\defbeamertemplate*{frametitle}{UR}{\parbox{\textwidth}{\usebeamerfont*{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle}\hfill}
%Title Page
\defbeamertemplate*{title page}{URtheme}{
\tikzexternaldisable%
\begin{tikzpicture}[shift={(-1,3.7)},remember picture,overlay] %($(a) + 1/3*(1cm,0)$)
\coordinate (NWC) at (0,0); % North West Corner of the slide
\coordinate (NEC) at (\paperwidth,0); %North East Corner of the slide
\coordinate (LC) at (0,-\paperheight); %lower left corner of the slide
\coordinate (NWB) at ($10*(\x,0)-2/3*(0,\paperheight)$); %north west corner of the bar
\coordinate (NEB) at ($(\paperwidth,0)-2/3*(0,\paperheight)$);
\coordinate (SWB) at (10\x,-2/3\paperheight-3\x);
\coordinate (SEB) at ($(\paperwidth,0)-2/3*(0,\paperheight)-(0,3\x)$);
\coordinate (NWL) at (3\x,-2/3*\paperheight-\x);%north west corner of the logo
\coordinate (NWT) at ($10*(\x,0)-1/3*(0,\paperheight)$); %north west of the title box
\coordinate (SWA) at ($10*(\x,0)-2/3*(0,\paperheight)$); %south west of the author box
\fill[UR@hellgrau](NWC)rectangle(NEB);
\node[anchor=north west] at ($3*(\x,0)-2/3*(0,\paperheight)-(0,\x)$) {\inserttitlegraphic};
\end{tikzpicture}
\ifthenelse{\boolean{UR@draft}}{}{
%Taste nun alle Einrichtungen ab
\setcounter{UR@temp}{1}
\setcounter{UR@color}{0}
\whiledo{\value{UR@temp}<24}{
\ifthenelse{\boolean{UR@dep@\value{UR@temp}}}{
\begin{tikzpicture}[overlay,remember picture,line width=0pt]
\filldraw[UR@color@\arabic{UR@temp}]($(NWB)+\arabic{UR@color}*(\streifen/\arabic{UR@dep},0)$)rectangle ($(NWB)+\arabic{UR@color}*(\streifen/\arabic{UR@dep},0)-(0,3\x)+(\streifen/\arabic{UR@dep},0)$);
\end{tikzpicture}
\stepcounter{UR@color}}
{}
\stepcounter{UR@temp}
}
}
\vspace*{-1.3mm}\par
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=north west] at ($(NWT)-(\fboxsep,0)$) {%
\begin{minipage}[t]{.65\paperwidth}
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}\vspace*{1pt}
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}
\end{minipage}
};
\node[anchor=south west] at ($(SWA)+(-\fboxsep,0)$)
{\begin{minipage}[b]{.65\paperwidth}
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate}
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor}
{\usebeamerfont{institute}\usebeamercolor[fg]{institute}\fontsize{9}{9.6}\selectfont\bfseries\insertinstitute}
\end{minipage}
};
\end{tikzpicture}\tikzexternalenable
}%
\endinput
|