-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
proceedings.tex
514 lines (405 loc) · 15.8 KB
/
proceedings.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
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
% Required for newpax
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass[parskip=full-]{scrbook}
\directlua{
require("newpax")
pdf.setcompresslevel(9)
% According to https://de.wikipedia.org/wiki/Portable_Document_Format#Versionen_von_PDF, this is from 2008
pdf.setminorversion(9)
}
%Although the publisher states requirements on the PDF level, this was NOT required in 2017 any more.
%So, do not enable these commands
%
%\pdfminorversion=3
%\pdfcompresslevel=0
%\pdfobjcompresslevel=0
%
%\usepackage[a-1b]{pdfx}
%Make chaper appear at the top of the page
\RedeclareSectionCommand[beforeskip=0pt]{chapter}
\newlength{\paperhoffset}
\newlength{\papervoffset}
\newlength{\papervoffsetFirstPage}
\newlength{\doihoffset}
\newlength{\doivoffset}
\makeatletter
\let\@rigyear\year
\setlength{\paperhoffset}{-2.75cm}
\setlength{\papervoffset}{-25.8cm}
\setlength{\papervoffsetFirstPage}{-20.8cm}
\setlength{\doihoffset}{1.45cm}
\setlength{\doivoffset}{1.2cm}
\RequirePackage[
paperheight=23.5cm,
paperwidth=15.5cm,
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\setlength{\topmargin}{-13.5mm}
%LNI breaks
%\setlength{\parindent}{0pt}
%\setlength{\parskip}{8pt plus3pt minus2pt} %slightly patched to look better
% Disable single lines at the start of a paragraph (Schusterjungen)
\clubpenalty = 10000
% Disable single lines at the end of a paragraph (Hurenkinder)
\widowpenalty = 10000
\displaywidowpenalty = 10000
%avoid word widows
%source: http://tex.stackexchange.com/a/151692/9075
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@sect}{\begingroup}{\begingroup\parfillskip=0pt plus 1fil\relax}{}{}
\makeatother
\usepackage{twoopt}
% Enable switching to arabic numbers without reset
% Source: http://tex.stackexchange.com/a/146060/9075
\makeatletter
\newcommand\pagenumberingnoreset[1]{\gdef\thepage{\csname @#1\endcsname\c@page}}
\makeatother
\usepackage{ulem}
\usepackage[english,ngerman]{babel}
\renewcommand{\indexname}{Authorenverzeichnis}
\usepackage{fancyhdr}
%% BEGIN: Configuration for LNI-like TOC
%Alternative: tocloft
%\RedeclareSectionCommands[tocdynnumwidth]{chapter,section}
\newcommand{\suppresstext}[1]{}
\makeatletter
\newcommand\partfontsize{\@setfontsize\partfontsize{15.72}{20.38}}
\makeatother
\newcommand{\tocformatpart}[1]{\partfontsize\textbf{#1}}
\makeatletter
\newcommand\chapterfontsize{\@setfontsize\chapterfontsize{12.82}{17.48}}
\makeatother
%\rightskip 0pt ensures that the text also uses the page number "column"
%Solution by https://tex.stackexchange.com/a/365267/9075
\newcommand{\tocformatchapter}[1]{\rightskip 0pt\chapterfontsize{\nohyphens{#1}}}
%No ident of the second line of the TOC
%Source: https://tex.stackexchange.com/a/314015/9075
\RedeclareSectionCommand[tocnumwidth=0em]{chapter}
\DeclareTOCStyleEntry[%
beforeskip=22pt,
entryformat={\tocformatpart},
pagenumberformat={\suppresstext}
]{part}{part}
\DeclareTOCStyleEntry[%
beforeskip=20pt,
entryformat=\tocformatchapter,
pagenumberbox=\suppresstext,
]{chapter}{chapter}
\newcommand{\spaceafterchapter}{\vspace{9pt}}
\DeclareTOCStyleEntry[%
indent=0pt,
numwidth=0pt,
linefill=\TOCLineLeaderFill,
beforeskip=8pt,
onstarthigherlevel={\spaceafterchapter},
raggedentrytext=true
]{section}{section}
%Aim: Do not let the words go into the page numbers
%Source: http://tex.stackexchange.com/a/180139/9075
\makeatletter
%\renewcommand*\l@subsection{\bprot@dottedtocline{3}{1.8em}{3.2em}}
\renewcommand*\@pnumwidth{2em}
\renewcommand*\@tocrmarg{3.3em}
\makeatother
%% END: Configuration for LNI-like TOC
% LNIs font configuration
\usepackage[no-math]{fontspec}
\usepackage{unicode-math}
% See https://tug.org/FontCatalogue/texgyretermes/ for more information
\setmainfont{texgyretermes}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
Ligatures=TeX
]
% See https://tug.org/FontCatalogue/texgyreheros/ for more information
\setsansfont[Scale=.9]{TeX Gyre Heros Regular}
\usepackage[%
final,%
tracking=smallcaps,%
expansion=alltext,%
protrusion=alltext-nott]{microtype}%
\usepackage{selnolig}
\usepackage{graphicx}
\usepackage{eso-pic}
\usepackage{newpax}
\usepackage{csquotes}
\usepackage{newfile}
%The idea is from http://tex.stackexchange.com/q/289375/9075
\usepackage[style=authoryear,indexing=cite,backend=biber,maxnames=999]{biblatex}
\addbibresource{proceedings.bib}
\newoutputstream{proceedingsbib}
\openoutputfile{proceedings.bib}{proceedingsbib}
\AtEndDocument{\closeoutputstream{proceedingsbib}}
\newoutputstream{proceedingscsv}
\openoutputfile{proceedings.csv}{proceedingscsv}
\AtEndDocument{\closeoutputstream{proceedingscsv}}
%Index authors only - see http://tex.stackexchange.com/a/111446/9075
%If one wants two separate indexes for titles and authors, http://tex.stackexchange.com/a/111446/9075 provides that solution, too.
\renewbibmacro*{citeindex}{%
\ifboolexpr{ test {\ifciteindex} and not test {\iffootnote} }
{\indexnames{author}}{}}
\usepackage{makeidx}
\makeindex
\usepackage{idxlayout}
\usepackage{hyphenat}
\usepackage[
unicode=true,
% hint for pdfa from https://tex.stackexchange.com/a/458631/9075
pdfa]
{hyperref}
\hypersetup{%
pdftitle = {}, %The title of the conference
pdfauthor = {}, %Use format: Firstname Lastname, Firstname Lastname
bookmarks=true,%
bookmarksopenlevel=2,%
linktoc=all,%
colorlinks=true,%
allcolors=black,%
pdfpagelayout=TwoPageRight,%
pdfstartview=Fit%
}
\usepackage{bookmark}
\usepackage{pdfpages}
\usepackage{ifthen}
\renewcommand{\addchap}[1]{\part*{\LARGE{\nohyphens{#1}}}\addchaptertocentry{}{#1}}
%This enables copy&paste of the optional argument for \author in the papers to the first argument of \addpaper
\renewcommand{\and}{\unskip,\ }
% introduce \suppress \endsuppress - http://tex.stackexchange.com/a/97358/9075
\long\def\suppress#1\endsuppress{%
\begingroup%
\tracinglostchars=0%
\let\selectfont=\nullfont
\nullfont #1\endgroup}
\newcommand{\lnitoc}[2]{\texorpdfstring{\textbf{\nohyphens{#1}}\\\textit{#2}}{#2 -- #1}}
%We reuse config.tex included from each paper.tex
%We just do nothing here
\newcommand{\booktitle}[1]{}
\newcommand{\editor}[1]{}
\let\iflnienglish\iffalse
\input{config.tex}
\newcounter{startpage}
\newcounter{curpage}
\newcounter{curpaper}
\setcounter{curpaper}{0}
\newcommand{\curdoi}{}
\usepackage{ccicons}
\makeatletter
\newcommand{\outputlicenseanddoi}{
\renewcommand{\curdoi}{\doiprefix\two@digits{\value{curpaper}}}
\AddToShipoutPictureBG*{\AtPageLowerLeft{%
\put(\LenToUnit{\the\doihoffset},\LenToUnit{\the\doivoffset}){%
\href{https://creativecommons.org/licenses/by-sa/4.0/}{\ccbysa}
% outputs DOI only if \doiprefix is set
\ifdefempty{\doiprefix}{}{
\footnotesize
\href{https://doi.org/\curdoi}{doi:\curdoi}
}
}%
}}
}
\makeatother
%1: running authors - default: authors
%2: running title - default: title
%3: Kürzel
%4: Authoren
%5: Titel
\newcommandtwoopt{\addpaper}[5][DEF][DEF]{%
\stepcounter{curpaper}
\fancypagestyle{lniotherpages}{%
\fancyhead{}
%title on the right
\fancyhead[RO]{\small \ifthenelse{\equal{#2}{DEF}}{#5}{#2}\hspace{5pt}\thepage\hspace{0.05cm}}
%authors on the left
\fancyhead[LE]{\hspace{0.05cm}\small\thepage\hspace{5pt}\ifthenelse{\equal{#1}{DEF}}{#4}{#1}}
\fancyfoot{} % Löscht alle Fußzeileneinstellungen
\renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
}
%collect page number
\write\pagesfile{#3 \thepage}
\setcounter{startpage}{\value{page}}
\directlua{newpax.writenewpax("papers/#3/paper")}
\saveimageresource{papers/#3/paper.pdf}
\thispagestyle{lnifirstpage}
\AddToShipoutPictureBG*{\AtPageUpperLeft{%
% When using 23.649cm, there might be the toprule shown - try different zoom levels and Acrobat. With SumatraPDF, the issue is not visible all times.
% paperheight=23.5cm,paperwidth=15.5cm,
%
% A4: 29,7cm x 21,0cm -> delta: 6,2cm x 5,5cm -> half: 3,1 cm x 2,75 cm --> set above in \paperhoffset and \papervoffset
% trim: 5cm is for cutting away the CC-license sign and the DOI number
\put(\LenToUnit{\the\paperhoffset},\LenToUnit{\the\papervoffsetFirstPage}){\includegraphics[page=1, trim=0 5cm 0 6.072cm, clip]{papers/#3/paper.pdf}}}
}
\outputlicenseanddoi
\phantomsection
\suppress\cite{#3}\endsuppress
\addcontentsline{toc}{section}{\lnitoc{#4}{#5}}
\newpage
\pagestyle{lniotherpages}
\ifthenelse{\the\lastsavedimageresourcepages>1}{
\setcounter{curpage}{1}
\whiledo{\value{curpage}<\the\lastsavedimageresourcepages}{
\stepcounter{curpage}
\AddToShipoutPictureBG*{\AtPageUpperLeft{%
\put(\LenToUnit{\the\paperhoffset},\LenToUnit{\the\papervoffset}){\includegraphics[page=\the\value{curpage}, trim=0 0 0 6.072cm, clip]{papers/#3/paper.pdf}}}
}
\null
\newpage
}
}
{
\renewcommand{\and}{ and }
\addtostream{proceedingsbib}{@inproceedings{#3,^^J author = {#4},^^J title = {#5},^^J booktitle = {\bibbooktitle},^^J pages = {\thestartpage--\the\numexpr\value{page}-1\relax},^^J eventdate = {\eventdate},^^J publisher = {Gesellschaft f\"{u}r Informatik e.V.},^^J year = {\proceedingsyear},^^J doi = {\curdoi},^^J}^^J}
}
{
\renewcommand{\and}{;}
\addtostream{proceedingscsv}{#4;#5;\thestartpage--\the\numexpr\value{page}-1\relax;#3}
}
\cleardoublepage
} %END of \newcommand{addpaper}
%Calculate new position
%Currently this cannot be used in includegraphics
%The calulcated values are 458752sp and 44517417sp
%\newlength{\newbottom}
%\setlength{\newbottom}{0cm}
%\newlength{\newtop}
%\setlength{\newtop}{23.628cm}
%\addtolength{\newbottom}{7pt}
%\addtolength{\newtop}{7pt}
%Output the calulcated numbers
%\number\newtop AND \number\newbottom
%Left for historical reasons -- not maintained
%
%1: running authors - default: authors
%2: running title - default: title
%3: Kürzel
%4: Authoren
%5: Titel
\newcommandtwoopt{\addpaperWRONGLAYOUT}[5][DEF][DEF]{%
\stepcounter{curpaper}
\fancypagestyle{lniotherpages}{%
\fancyhead{}
%title on the right
\fancyhead[RO]{\small \ifthenelse{\equal{#2}{DEF}}{#5}{#2}\hspace{5pt}\thepage\hspace{0.05cm}}
%authors on the left
\fancyhead[LE]{\hspace{0.05cm}\small\thepage\hspace{5pt}\ifthenelse{\equal{#1}{DEF}}{#4}{#1}}
\fancyfoot{} % Löscht alle Fußzeileneinstellungen
\renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
}
%collect page number
\write\pagesfile{#3 \thepage}
%\StrExpand{#3}{\curtitle}
{
\renewcommand{\and}{ and }
\addtostream{proceedingsbib}{@inproceedings{#3,author={#4},title={#5},booktitle={\bibbooktitle},eventdate={\eventdate},year={\proceedingsyear},publisher={Gesellschaft f\"{u}r Informatik e.V.}}}
}
%All PDFs:
%offset=-0.2cm +2.60cm (-5pt, 73pt)
\directlua{newpax.writenewpax("#3/paper")}
\saveimageresource{#3/paper.pdf}
\thispagestyle{lnifirstpage}
\AddToShipoutPictureBG*{\AtPageUpperLeft{%
%When using 23.649cm, there might be the toprule shown - try different zoom levels and Acrobat. With SumatraPDF, the issue is not visible all times
\put(\LenToUnit{5pt},\LenToUnit{-779pt}){\includegraphics[page=1, trim=0 0 0 6.072cm, clip]{#3/paper.pdf}}}
}
\outputlicenseanddoi
\phantomsection
\suppress\cite{#3}\endsuppress
\addsectiontocentry{}{\lnitoc{#4}{#5}}
\newpage
\pagestyle{lniotherpages}
\ifthenelse{\the\lastsavedimageresourcepages>1}{
\setcounter{curpage}{1}
\whiledo{\value{curpage}<\the\lastsavedimageresourcepages}{
\stepcounter{curpage}
\AddToShipoutPictureBG*{\AtPageUpperLeft{%
%HERE THE ONLY DIFFERENCE TO addpaper - 23.628
\put(\LenToUnit{5pt},\LenToUnit{-772pt}){\includegraphics[page=\the\value{curpage}, trim={0 1\newbottom 21cm 1\newtop}, clip]{#3/paper.pdf}}}
%\put(\LenToUnit{5pt},\LenToUnit{-772pt}){\includegraphics[page=\the\value{curpage}, trim={0 458752sp 0 44517417sp}, clip]{#3/paper.pdf}}}
}
\null
\newpage
}
}
\cleardoublepage
} %END of \newcommand{addpaper}
\setkomafont{pageheadfoot}{\normalfont\rmfamily}
\setkomafont{pagenumber}{\normalfont\rmfamily}
\setkomafont{disposition}{\normalfont\rmfamily}
% Required because of https://github.com/sieversMartin/LNI/issues/23
\setlength{\headheight}{23pt}
%Does not work with papers using a template without headheight setting --> Their text body is too high adn it will look ugly.
\raggedbottom
\begin{document}
\pagestyle{empty}
\thispagestyle{empty}
\fancypagestyle{plain}{
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
}
\pagenumbering{Roman}
\makeatother
%compensate for hoffset -5pt -- source: http://tex.stackexchange.com/a/130828/9075
\setboolean{@twoside}{false}
% BEGIN: Inclusion of LNI-Startseiten.pdf
% everything before the foreword
\includepdf[pagecommand={\thispagestyle{empty}},pages=1-2,noautoscale]{LNI-Startseiten.pdf}
\phantomsection
\pdfbookmark[part]{Titelseite}{Titelseite}
\includepdf[pagecommand={\thispagestyle{empty}},pages=3-4,noautoscale]{LNI-Startseiten.pdf}
\phantomsection
\pdfbookmark[part]{Vorwort}{Vorwort}
%Use "plain" instead of "empty" if you want to add page numbers -- currently does not work as they seem out of the margins
\includepdf[pagecommand={\thispagestyle{empty}},pages=5-5,noautoscale]{LNI-Startseiten.pdf}
\phantomsection
\pdfbookmark[part]{Sponsoren}{Sponsoren}
\includepdf[pagecommand={\thispagestyle{empty}},pages=6-6,noautoscale]{LNI-Startseiten.pdf}
\phantomsection
\pdfbookmark[part]{Tagungsleitung}{Tagungsleitung}
\pdfbookmark[part]{Programmkomitee}{Programmkomitee}
\pdfbookmark[part]{Organisationsteam}{Organisationsteam}
\includepdf[pagecommand={\thispagestyle{empty}},pages=7-7,noautoscale]{LNI-Startseiten.pdf}
% END: LNI-Startseiten.pdf
\setboolean{@twoside}{true}
\makeatletter
\pagestyle{empty}
\thispagestyle{empty}
\cleardoublepage
\phantomsection
\pdfbookmark[part]{\contentsname}{toc}
\thispagestyle{empty}
\pagestyle{empty}
\thispagestyle{empty}
\tableofcontents
\cleardoublepage
%% now all papers %%
\pagenumberingnoreset{arabic}
\newwrite\pagesfile
\openout\pagesfile=pages.txt
\addpart{Eingeladene Vorträge}
\addpaper{A1-1}{Vorname Nachname}{Erster eingeladener Vortrag}
\addpaper{A2-1}{Other Name}{Second invited Talk}
\addpart{Scientific Program}
\addchap{Topic1}
\addpaper{B1-1}{Firstname1 Lastname1}{Talk1}
\addpaper[Firstname2a Lastname2a et al.]{B1-2}{Firstname2a Lastname2a \and Firstname2b Lastname2b \and Firstname2c Lastname2c \and Firstname2d Lastname2d}{Talk2}
\addchap{Topic2 with a very long title which requires a lot of space and, hence, also requires a line break}
\addpaper{B2-1}{Firstname3 Lastname3}{Talk3}
\addpaper[Firstname4a Lastname4a et al.][Talk 4]{B2-2}{Firstname4a Lastname4a \and Firstname4b Lastname4b \and Firstname4c Lastname4c \and Firstname4d Lastname4d}{Talk4 with a very long title, which does not fit in one line in the running head and therefore must be shortended}
\addchap{Word-Papers}
\addpaper[Vorname1 Nachname1 et al.]{B3-1}{Vorname1 Nachname1 \and Vorname2 Nachname2 \and {in der gleichen Notation}, {weitere Autoren und Autoren}}{Der Titel des Beitrags, der auch etwas länger sein und über zwei Zeilen reichen kann}
\addpaper[Last name 1, First name 1 et al.][Short Title]{B3-2}{{Last name 1}, {First name 1} \and {last name 2}, {first name 2} \and {the same notation}, {other authors using}}{Title of the paper, which can also be somewhat longer and cover more than two lines}
\pagestyle{plain}
\renewcommand{\indexname}{Autorenverzeichnis}
\phantomsection
\addcontentsline{toc}{part}{\indexname}
\printindex
\end{document}