-
Notifications
You must be signed in to change notification settings - Fork 2
/
abstract-commands.tex
467 lines (409 loc) · 12.2 KB
/
abstract-commands.tex
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
% command for a new time slot
\newcommand{\talkTime}{9:99}
\newcommand{\newTimeslot}[1]{\newpage\renewcommand{\talkTime}{#1}}
% new time slot but without a pagebreak
\newcommand{\newSmallTimeslot}[1]{\renewcommand{\talkTime}{#1}}
% initialise \conferenceDay
\newcommand{\conferenceDay}{Noday}
\input{wallpaper/day-layers.tex}
% define page style for cutting marks without anything else
\DeclareNewLayer[background, oddorevenpage, width=125mm,%
height=169mm, contents={%
\begin{tikzpicture}[x=1mm, y=1mm]
\drawCropMarks
\end{tikzpicture}
}]{cropmarksplain}
% define default page style (cutting marks with page number)
\DeclareNewLayer[background, oddorevenpage, width=125mm,%
height=169mm, contents={%
\begin{tikzpicture}[x=1mm, y=1mm]
\drawCropMarks
\end{tikzpicture}
}]{cropmarksevery}
\newpairofpagestyles[scrheadings]{cropmarksstyle}{}
\AddLayersAtBeginOfPageStyle{cropmarksstyle}{cropmarksevery}
% page style for title pages
\DeclareNewLayer[background, oddorevenpage, width=125mm,%
height=169mm, contents={%
\includegraphics{wallpaper/front-cover-with-crop-marks.pdf}%
}]{titlelayer}
\newpairofpagestyles[]{titlestyle}{}
\AddLayersAtBeginOfPageStyle{titlestyle}{titlelayer}
% define alias commands for all three days
\def\mittwoch{Mittwoch}
\def\donnerstag{Donnerstag}
\def\freitag{Freitag}
% define Mittwoch page style
\newpairofpagestyles[scrheadings]{mittwoch-table}{}
\AddLayersAtBeginOfPageStyle{mittwoch-table}{mittwocheven}
\AddLayersAtBeginOfPageStyle{mittwoch-table}{mittwochoddrotated}
\newpairofpagestyles[scrheadings]{mittwoch}{}
\AddLayersAtBeginOfPageStyle{mittwoch}{mittwocheven}
\AddLayersAtBeginOfPageStyle{mittwoch}{mittwochodd}
% define Donnerstag page style
\newpairofpagestyles[scrheadings]{donnerstag-table}{}
\AddLayersAtBeginOfPageStyle{donnerstag-table}{donnerstageven}
\AddLayersAtBeginOfPageStyle{donnerstag-table}{donnerstagoddrotated}
\newpairofpagestyles[scrheadings]{donnerstag}{}
\AddLayersAtBeginOfPageStyle{donnerstag}{donnerstageven}
\AddLayersAtBeginOfPageStyle{donnerstag}{donnerstagodd}
% define Freitag page style
\newpairofpagestyles[scrheadings]{freitag-table}{}
\AddLayersAtBeginOfPageStyle{freitag-table}{freitageven}
\AddLayersAtBeginOfPageStyle{freitag-table}{freitagoddrotated}
\newpairofpagestyles[scrheadings]{freitag}{}
\AddLayersAtBeginOfPageStyle{freitag}{freitageven}
\AddLayersAtBeginOfPageStyle{freitag}{freitagodd}
% \setpagebackground selects the page style to be used depending on the current day. Each day has
% its own page style.
\newcommand{\setPageBackground}{%
\ifthenelse{\equal{\conferenceDay}{\mittwoch}}{%
\pagestyle{mittwoch}%
}{}%
\ifthenelse{\equal{\conferenceDay}{\donnerstag}}{%
\pagestyle{donnerstag}%
}{}%
\ifthenelse{\equal{\conferenceDay}{\freitag}}{%
\pagestyle{freitag}%
}{}%
}
% additional column type for tables
\newcolumntype{Y}[1]{>{\RaggedRight\arraybackslash}p{#1}}
%% length of the title boxes
\newlength{\titleboxwidth}
\setlength{\titleboxwidth}{\textwidth}
\advance\titleboxwidth by -6pt
\newlength{\roomWidth}
\newlength{\timeWidth}
\newlength{\roomTimeWidth}
\newlength{\titleWidth}
\newcommand{\tmpRoomTimeWidth}{}
\newcommand{\tmpTitleWidth}{}
\newcommand{\setAbstract}[6]{%
% 1. speaker
% 2. title
% 3. subtitle
% 4. abstract (Text)
% 5. colour
% 6. room
\setPageBackground%
\calculateRoomTimeAndTitleWidth{#1}{#6}%
\noindent\fcolorbox{white}{#5}{%
\noindent\parbox{\titleboxwidth}{%
\isSpeakerEmpty{#1}{#2}{#6}%
\isSubtitleEmpty{#3}%
}%
}%
%
\justifying
\isAbstractEmpty{#4}%
\vspace{0.5em}% space to the next talk even if there is no abstract
}
% Calculate width of title and room/time field
% Arguments: speaker, room
\makeatletter
\newcommand{\calculateRoomTimeAndTitleWidth}[2]{%
\@ifmtarg{#1}{% speaker is empty
\settowidth{\roomWidth}{#2, \talkTime}%
}{% speaker is not empty
\settowidth{\roomWidth}{#2}%
}%
\settowidth{\timeWidth}{\talkTime}%
\directlua{require("lua/titleWidth")}%
\setlength{\titleboxwidth}{\directlua{getTitleBoxWidth()}}%
\renewcommand{\tmpRoomTimeWidth}{\directlua{getTimeRoomWidth()}}%
\setlength{\roomTimeWidth}{\tmpRoomTimeWidth}%
\renewcommand{\tmpTitleWidth}{\directlua{getTitleWidth()}}%
\setlength{\titleWidth}{\tmpTitleWidth}%
}%
\makeatother
% Lay out the subtitle
% has to be a separate function and has to be surrounded by \makeatletter for technical reasons
\makeatletter
\newcommand{\isSubtitleEmpty}[1]{%
\@ifnotmtarg{#1}{%
\par
\RaggedRight
\vspace{0.3\baselineskip}
\noindent%
\bfseries%
#1%
}
}
\makeatother
% lay out the speaker if there is any
% We assume that there is only a subtitle if the talk has a speaker.
\makeatletter
\newcommand{\isSpeakerEmpty}[3]{%
% Arguments:
% 1. speaker
% 2. title
% 3. room
\@ifmtarg{#1}{%
\begin{minipage}[t][][t]{\titleWidth}
\RaggedRight
\noindent%
{\large \sectfont #2}%
\end{minipage}%
\hfill
\begin{minipage}[t][][t]{\roomTimeWidth}
\RaggedLeft%
\noindent #3, \talkTime%
\end{minipage}%
}%
{%
\begin{minipage}[t][][t]{\titleWidth}
\RaggedRight
\noindent
\emph{#1} % speaker
\par%
\noindent%
{\large \sectfont #2}%
\end{minipage}%
\hfill
\begin{minipage}[t][][t]{\roomTimeWidth}
\RaggedLeft
\noindent
\talkTime%
\par%
\noindent #3% room
\end{minipage}%
}%
}
\makeatother
% Lay out the abstract if there is any
% has to be a separate function and has to be surrounded by \makeatletter for technical reasons
\makeatletter
\newcommand{\isAbstractEmpty}[1]{%
\ifstrempty{#1}{%
\vspace{1.5em}%
}{%
\vspace{0.5em}\newline%
#1 \par% % abstract
\vspace{1.5em}% space to the next talk even if there is an abstract
}%
}
\makeatother
% define colours
%\definecolor{eins}{cmyk}{0 .18 .06 .10}
\definecolor{eins}{cmyk}{0 .13 .04 .08}
\definecolor{zwei}{cmyk}{.1 0 .17 .05}
\definecolor{hellorange}{cmyk}{0 0.18 0.40 0.03}
\definecolor{audimax}{cmyk}{0.13 0 0.04 0.11}
\definecolor{geoblau}{cmyk}{0.24 .02 0 .01}
\definecolor{dezentrot}{cmyk}{0 .24 0.29 .04}
\definecolor{hellgelb}{cmyk}{0 .02 0.36 0}
\definecolor{hellgruen}{cmyk}{0.10 .0 0.22 0.05}
% abstract at HS Rundbau
\newcommand{\abstractHSRundbau}[4]%
{%
\setAbstract{#1}{#2}{#3}{#4}{geoblau}{Rundbau}
}
% abstract at HS Anatomie
\newcommand{\abstractHSAnatomie}[4]%
{%
\setAbstract{#1}{#2}{#3}{#4}{hellgelb}{Anatomie}
}
% abstract at HS Weismannhaus
\newcommand{\abstractWeismannhaus}[4]%
{%
\setAbstract{#1}{#2}{#3}{#4}{hellgruen}{Weismannh.}
}
% event at Mensa
\newcommand{\abstractMensa}[4]%
{%
\setAbstract{#1}{#2}{#3}{#4}{dezentrot}{Mensa}
}
% abstract at a different location
\newcommand{\abstractOther}[5]%
{%
\setAbstract{#1}{#2}{#3}{#4}{hellorange}{#5}
}
% infobox for workshops (they don't have an abstract in the booklet)
\newcommand{\workshopbox}[3]{%
% 1. titel
% 2. speaker
% 3. Room
\setlength\tabcolsep{0pt}%
\noindent\fcolorbox{white}{dezentrot}{%
\parbox{\titleboxwidth}{%
\noindent%
\begin{tabu}{X[5L]r}
\emph{#2} % Sprecher
&
\talkTime
\tabularnewline
{\noindent\large \bfseries #1}% % title
&
#3
\tabularnewline
\end{tabu}
}
}
\setlength\tabcolsep{6pt} % set column padding back to default
}
% too long
\newcommand{\tooLong}{Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. Dieser Text ist viel zu lang. }
\newlength{\fboxwidth}
\def\workshopsSection{workshopsSection}
\def\abstractsSection{abstractsSection}
% boxes for text-only advertisement texts by our sponsors
\newcommand{\sponsorBox}[4]{%
\setlength{\fboxwidth}{\textwidth}
\advance\fboxwidth by -7.0pt
\abstractSponsorbox{#1}{#2}{#3}{#4}{\workshopsSection}%
}
\newcommand{\sponsorBoxA}[4]{%
\setlength{\fboxwidth}{\textwidth}%
\advance\fboxwidth by -10.0pt%
\abstractSponsorbox{#1}{#2}{#3}{#4}{\abstractsSection}%
}
\newcommand{\sponsorBoxLandscape}[4]{%
\setlength{\fboxwidth}{\linewidth}
\advance\fboxwidth by -10.0pt
\abstractSponsorbox{#1}{#2}{#3}{#4}{\abstractsSection}%
}
%% store \parindent in separate variable because it is resetted to 0 in parboxes
\newlength{\saveparindent}
\setlength{\saveparindent}{\parindent}
%% box for advertisment by a sponsor
%% 1. logo (leave empty if none)
%% 2. width of the logo (leave empty if none
%% 3. number of required lines of the logo (due to usage of wrapfigure)
%% 4. text
%% 5. where we are in the booklet (\workshopsSection or \abstractsSection}
\makeatletter
\newcommand{\abstractSponsorbox}[5]{%
\setlength{\fboxsep}{4.5pt}%
\noindent%
\ifthenelse{\equal{#5}{\workshopsSection}}{%
\hspace{2.65pt}%
}{%
\hspace{-1pt}%
}%
\fcolorbox{gray}{white}{%
\parbox{\fboxwidth}{%
\setlength{\parindent}{\saveparindent}%
\@ifmtarg{#1}{}{%
\begin{wrapfigure}[#3]{r}[0pt]{#2}%
\centering\vspace{-1\baselineskip}%
\includegraphics[width=#2]{#1}%
\end{wrapfigure}%
}%
\noindent #4
}%
}%
\setlength{\fboxsep}{3pt}%
}%
\setlength{\fboxsep}{3pt}%
\makeatother
% definition of column types for the schedule tables
\newcolumntype{Z}[1]{>{\RaggedRight\arraybackslash}p{#1}}%
\newcolumntype{C}[1]{>{\Centering\arraybackslash}p{#1}}%
% common implementation of typesetting of a session in the tables
\newcommand{\talkInternal}[2]{%
\textbf{#1}
\ifthenelse{\equal{#2}{}}{}{%
\newline\emph{#2}%
}
}
% common implementation of typesetting of a session in the tables -- singleline mode
\newcommand{\talkInternalSingleLine}[2]{%
\textbf{#1}
\hspace{0.5em}
\ifthenelse{\equal{#2}{}}{}{%
\emph{#2}%
}
}
% macro to typeset a talk in the schedule tables spanning over more than one row:
% usage: \longTalk{rowcount}{title}{speaker}
\newcommand{\longTalk}[3]{%
&
\multirow{#1}{\linewidth}{%
\parbox{\linewidth}{
%HACK Inserting a \vspace here is a dirty hack but it works.
\vspace{0.45\baselineskip}
\talkInternal{#2}{#3}%
}
}%
}%
% macro to typeset a talk in the schedule tables:
% usage: \talk{title}{speaker}
\newcommand{\talk}[2]{%
&
\talkInternal{#1}{#2}%
}%
% macro to typeset a talk in the schedule tables, single line mode:
% usage: \talkSingleLine{title}{speaker}
\newcommand{\talkSingleLine}[2]{%
&
\talkInternalSingleLine{#1}{#2}%
}%
% macro to typeset a talk in the schedule tables spanning over more than one column:
% usage: \multiColTalk{columns}{columnSpecs}{title}{speaker}
\newcommand{\multiColTalk}[4]{%
&
\multicolumn{#1}{#2}{\talkInternal{#3}{#4}}%
}%
% set time in scheduel table
\newcommand{\tableRowFirstCell}[1]{%
\cellcolor{table-header}
\textcolor{black}{#1}%
}
% set time in scheduel table
\newcommand{\tableColHead}[1]{%
\cellcolor{table-header}%
\textcolor{black}{#1}%
}
\newcommand{\workshop}[3]%
{%
\workshopbox{#1}{#2}{#3}%
}%
\newcommand{\otherevent}[1]%
{%
& \textbf{#1}
}%
\newcommand{\audimaxEvent}[2]%
{%
&
\multicolumn{3}{c}{
\textbf{#1} (Audimax) \par \emph{#2}
}
}%
\newcommand{\coffeespace}{\vspace{0.4em}}
\newcommand{\workshopspace}{\vspace{0.5em}\\}
% define colors
\definecolor{commongray}{gray}{.9}
\definecolor{tableRuleGray}{gray}{.9}
\definecolor{textGray}{gray}{.45}
% macro for table rules
\newcommand{\programCRule}[1]{%
\cline{#1}%
}
\newcommand{\programHRule}[1]{%
\cline{2-#1}%
}
% macro for empty session slots
\newcommand{\bookableSpace}{
& \emph{\textcolor{textGray}{Bookable Space}}%
}
% diamond symbol for shortened titles
\newcommand{\diamondSymbol}{%
\textsuperscript{%
\diamond%
}%
}
% speaker affiliation
\newcommand{\speakerAffiliation}[1]{%
(#1)%
}
% lightning talk (title and author)
\newcommand{\lightningTalk}[2]{%
\item \emph{#2:} #1%
}
% macro for no-video icon
\newcommand{\noVideo}{%
\raisebox{-0.2\height}{%
\includegraphics[height=8pt]{novideo.pdf}%
}%
}