Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
latextemplates
GitHub Repository: latextemplates/LNCS
Path: blob/main/paper-de-newtx.tex
224 views
1
% Dieses Template wurde mit der "LLNCS DOCUMENT CLASS -- version 2.21 (12-Jan-2022)" getestet
2
3
% !TeX spellcheck = de-DE
4
% LTeX: language=de-DE
5
% !TeX encoding = utf8
6
% !TeX program = lualatex
7
% !BIB program = bibtex
8
% -*- coding:utf-8 mod:LaTeX -*-
9
10
% "a4paper" enables:
11
%
12
% - easy print out on DIN A4 paper size
13
%
14
% One can configure default page size (a4 vs. letter) in the LaTeX installation.
15
% Thus, it is configuration dependend, what the paper size will be.
16
% Having "a4paper" option present, the page size is set to A4.
17
% Note that the current word template offered by Springer is DIN A4.
18
%
19
% "runningheads" führt zu folgendem:
20
%
21
% - zeigt Author + Titel auf jeder Seite.
22
% - Während des Schreibens und das Review des Papers hilft das, um z.B. auf konkrete Seitenzahlen einfach verweisen zu können.
23
%
24
% This is good for other readers to enable proper archiving among other papers and pointing to
25
% content. Even if the title page states the title, when printed and stored in a folder, when
26
% blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore,
27
% it is good to have title printed on the pages, too.
28
%
29
% Die Option "runningheads" ist nach Aufforderung durch die Herausgeber entfernen.
30
%
31
% To disable outputting page headers and footers, remove "runningheads"
32
\documentclass[runningheads,a4paper,ngerman]{llncs}[2022/01/12]
33
34
\usepackage{iftex}
35
36
% backticks (`) werden als solches in verbatim-Umgebungen dargestellt
37
% Details unter:
38
% - https://tex.stackexchange.com/a/341057/9075
39
% - https://tex.stackexchange.com/a/47451/9075
40
% - https://tex.stackexchange.com/a/166791/9075
41
\usepackage{upquote}
42
43
% Setze Deutsch als Sprache
44
\usepackage[english,main=ngerman]{babel}
45
% Neue deutsche Trennmuster
46
\babelprovide[hyphenrules=ngerman-x-latest]{german}
47
%
48
% Hinweis von http://tex.stackexchange.com/a/321066/9075
49
% Ermögliche die Benutzung von "= als Trennstriche
50
\addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}}
51
52
% Links verhalten sich so, wie sie sollen
53
% Zeilenumbrüche bei URLs auch bei Bindestrichen erlauben, auch wenn es verwirrend sein könnte: Gehört der Bindestrich zur URL oder ist es ein Trennstrich?
54
% Siehe https://tex.stackexchange.com/a/3034/9075.
55
\usepackage[hyphens]{url}
56
% \urlstyle{same}
57
%
58
% Hinweis von http://tex.stackexchange.com/a/10419/9075.
59
\makeatletter
60
\g@addto@macro{\UrlBreaks}{\UrlOrds}
61
\makeatother
62
63
%% !!! If you change the font, be sure that words such as "workflow" can
64
%% !!! still be copied from the PDF. If this is not the case, you have
65
%% !!! to use glyphtounicode. See comment at cmap package.
66
%%
67
%% Background: "workflow" contains "fl" which is a ligature, which in turn
68
%% is rendered as one character in the PDF and needs to be split
69
%% whily copying.
70
71
\ifluatex
72
\usepackage[no-math]{fontspec}
73
\usepackage{unicode-math}
74
75
% See https://tug.org/FontCatalogue/texgyretermes/ for more information
76
\setmainfont{texgyretermes}[
77
Extension = .otf,
78
UprightFont = *-regular,
79
BoldFont = *-bold,
80
ItalicFont = *-italic,
81
BoldItalicFont = *-bolditalic,
82
Ligatures=TeX
83
]
84
% See https://tug.org/FontCatalogue/texgyreheros/ for more information
85
\setsansfont[Scale=.9]{TeX Gyre Heros Regular}
86
% newtxtt looks good with times, but no equivalent for lualatex found,
87
% therefore tried to replace with inconsolata.
88
% However, inconsolata does not look good in the context of LNCS ...
89
%\setmonofont[StylisticSet={1,3},Scale=.9]{inconsolata}
90
% ... thus, we use the good old Latin Modern Mono font for source code.
91
\setmonofont{Latin Modern Mono} % "variable=false"
92
93
% Enable proper ligatures
94
% For more information see https://ctan.org/pkg/selnolig
95
% language "english" or "ngerman" is passed to selnolig by the document class
96
\usepackage{selnolig}
97
98
\else
99
\RequirePackage{newtxtext}
100
\RequirePackage{newtxmath}
101
\RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
102
103
% Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075.
104
\usepackage[T1]{fontenc}
105
\fi
106
107
% Optischer Randausgleich und Grauwertkorrektur. Siehe See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/
108
109
\usepackage[
110
babel=true,
111
expansion=alltext,
112
protrusion=alltext-nott,
113
final
114
]{microtype}
115
116
% \texttt{test -- test} - diese Einstellung behält "--" bei (und konveriert sie nicht zu einem Bindestrich)
117
\DisableLigatures{encoding = T1, family = tt* }
118
119
% tracking=true muss als Parameter des microtype-packages mitgegeben werden
120
% Deaktiviert, da dies bei Algorithmen seltsam aussieht
121
122
%\DeclareMicrotypeSet*[tracking]{my}{ font = */*/*/sc/* }%
123
124
% Hier wird festgelegt, dass alle Passagen in Kapitälchen automatisch leicht gesperrt werden.
125
% Quelle: http://homepage.ruhr-uni-bochum.de/Georg.Verweyen/pakete.html
126
% Deaktiviert, da sonst "BPEL", "BPMN" usw. wirklich komisch aussehen.
127
% Macht wohl nur bei geisteswissenschaftlichen Arbeiten Sinn.
128
%\SetTracking{ encoding = *, shape = sc }{ 45 }
129
130
\usepackage{graphicx}
131
132
% Diagonal lines in a table - http://tex.stackexchange.com/questions/17745/diagonal-lines-in-table-cell
133
% Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox
134
\usepackage{diagbox}
135
136
\ifluatex
137
\usepackage{spelling}
138
\spellingoutput{off}
139
\fi
140
141
\usepackage[dvipsnames, table]{xcolor}
142
143
% Code Listings
144
\usepackage{listings}
145
146
\definecolor{eclipseStrings}{RGB}{42,0.0,255}
147
\definecolor{eclipseKeywords}{RGB}{127,0,85}
148
\colorlet{numb}{magenta!60!black}
149
150
% JSON definition
151
% Source: https://tex.stackexchange.com/a/433961/9075
152
153
\lstdefinelanguage{json}{
154
basicstyle=\normalfont\ttfamily,
155
commentstyle=\color{eclipseStrings}, % style of comment
156
stringstyle=\color{eclipseKeywords}, % style of strings
157
numbers=left,
158
numberstyle=\scriptsize,
159
stepnumber=1,
160
numbersep=8pt,
161
showstringspaces=false,
162
breaklines=true,
163
frame=lines,
164
% backgroundcolor=\color{gray}, %only if you like
165
string=[s]{"}{"},
166
comment=[l]{:\ "},
167
morecomment=[l]{:"},
168
literate=
169
*{0}{{{\color{numb}0}}}{1}
170
{1}{{{\color{numb}1}}}{1}
171
{2}{{{\color{numb}2}}}{1}
172
{3}{{{\color{numb}3}}}{1}
173
{4}{{{\color{numb}4}}}{1}
174
{5}{{{\color{numb}5}}}{1}
175
{6}{{{\color{numb}6}}}{1}
176
{7}{{{\color{numb}7}}}{1}
177
{8}{{{\color{numb}8}}}{1}
178
{9}{{{\color{numb}9}}}{1}
179
}
180
181
\lstset{
182
% everything between (* *) is a latex command
183
escapeinside={(*}{*)},
184
%
185
language=json,
186
%
187
showstringspaces=false,
188
%
189
extendedchars=true,
190
%
191
basicstyle=\footnotesize\ttfamily,
192
%
193
commentstyle=\slshape,
194
%
195
% Default: \rmfamily, damit werden die Strings im Quellcode hervorgehoben. Zusaetzlich evtl.: \scshape oder \rmfamily durch \ttfamily ersetzen. Dann sieht's aus, wie bei fancyvrb
196
stringstyle=\ttfamily,
197
%
198
breaklines=true, % Zeilen werden umbrochen
199
%
200
breakatwhitespace=true,
201
%
202
% Alternative: fixed
203
columns=flexible,
204
%
205
tabsize=2, % Groesse von Tabs
206
%
207
numbers=left,
208
%
209
numberstyle=\tiny,
210
%
211
basewidth=.5em,
212
%
213
xleftmargin=.5cm,
214
%
215
% aboveskip=0mm,
216
%
217
% belowskip=0mm,
218
%
219
captionpos=b
220
}
221
222
\ifpdftex
223
% Ermögliche Umlaute falls \lstinputputlisting genutzt wird
224
% Siehe https://stackoverflow.com/a/29260603/873282 für Details.
225
% listingsutf8 hat im Juni 2020 nicht funktioniert.
226
\lstset{literate=
227
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
228
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
229
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
230
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
231
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
232
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
233
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
234
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
235
{Ã}{{\~A}}1 {ã}{{\~a}}1 {Õ}{{\~O}}1 {õ}{{\~o}}1
236
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
237
{ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1
238
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
239
}
240
\fi
241
242
\lstloadlanguages{% Check dokumentation for further languages...
243
%[Visual]Basic
244
%Pascal
245
%C
246
%C++
247
%XML
248
%HTML
249
}
250
251
% For easy quotations: \enquote{text}
252
% This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command
253
\usepackage[autostyle=true]{csquotes}
254
255
% Enable using "`quote"' - see https://tex.stackexchange.com/a/150954/9075
256
\defineshorthand{"`}{\openautoquote}
257
\defineshorthand{"'}{\closeautoquote}
258
259
% bessere Abstaende innerhalb der Tabelle (Layout))
260
% -------------------------------------------------
261
% \toprule, \midrule, \bottomrule
262
% Doc: https://texdoc.org/serve/booktabs/0
263
\usepackage{booktabs}
264
265
% Extended enumerate, such as \begin{compactenum}
266
\usepackage{paralist}
267
268
% Bibliopgraphy enhancements
269
% - enable \cite[prenote][]{ref}
270
% - enable \cite{ref1,ref2}
271
% Alternative: \usepackage{cite}, which enables \cite{ref1, ref2} only (otherwise: Error message: "White space in argument")
272
273
% Doc: http://texdoc.net/natbib
274
\usepackage[%
275
square, % for square brackets
276
comma, % use commas as separators
277
numbers, % for numerical citations;
278
%sort % orders multiple citations into the sequence in which they appear in the list of references;
279
sort&compress % as sort but in addition multiple numerical citations are compressed if possible (as 3-6, 15);
280
]{natbib}
281
282
% In the bibliography, references have to be formatted as 1., 2., ... not [1], [2], ...
283
\renewcommand{\bibnumfmt}[1]{#1.}
284
285
% Enable hyperlinked author names in the case of \citet
286
% Source: https://tex.stackexchange.com/a/76075/9075
287
\usepackage{etoolbox}
288
\makeatletter
289
\patchcmd{\NAT@test}{\else \NAT@nm}{\else \NAT@hyper@{\NAT@nm}}{}{}
290
\makeatother
291
292
% Prepare more space-saving rendering of the bibliography
293
% Source: https://tex.stackexchange.com/a/280936/9075
294
\SetExpansion
295
[ context = sloppy,
296
stretch = 30,
297
shrink = 60,
298
step = 5 ]
299
{ encoding = {OT1,T1,TS1} }
300
{ }
301
302
% Put figures aside a text
303
% Even though the package is from 1998, it works well
304
\usepackage[rflt]{floatflt}
305
306
% Farbige Tabellen
307
% ----------------
308
% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen
309
%
310
% Erweiterte Funktionen innerhalb von Tabellen
311
% --------------------------------------------
312
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty
313
\usepackage{multirow} % Mehrfachspalten
314
%
315
%%% Doc: Documentation inside dtx Package
316
\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt
317
318
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf
319
%\usepackage{supertabular}
320
321
%%% Fussnoten/Endnoten ===================================================
322
323
% EN: Put footnotes below floats
324
% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren
325
% Source: https://tex.stackexchange.com/a/32993/9075
326
\usepackage{stfloats}
327
\fnbelowfloat
328
329
% EN: Extended support for footnotes
330
% DE: Fußnoten
331
%
332
%\usepackage{dblfnote} %Zweispaltige Fußnoten
333
%
334
% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch):
335
%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}}
336
%
337
% Abstand zwischen Fußnoten vergrößern:
338
%\setlength{\footnotesep}{.85\baselineskip}
339
%
340
% EN: Following command disables the separting line of the footnote
341
% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote
342
%\renewcommand{\footnoterule}{}
343
%
344
%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote
345
346
% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite
347
% DE: fnpos kommt aus dem yafoot package
348
%\usepackage{fnpos}
349
%\makeFNbelow
350
%\makeFNbottom
351
352
% TODO (and comment) configuration
353
%
354
% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs
355
% - \todofix - "important" TODOs
356
%
357
% - \textcomment - highlights text and has a hover comment
358
% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others)
359
%
360
% - \missingfigure
361
%
362
% - \textmarker
363
% - \modified
364
% - \change - adresses a review comment
365
366
% Enable nice comments
367
\usepackage{pdfcomment}
368
369
\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}}
370
371
% Small PDF comment
372
% 1. Parameter: Comment
373
\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}}
374
% Disabled variant - for the final PDF
375
%\newcommand{\sidecomment}[1]{}
376
377
\newcommand{\todo}[1]{TODO!\sidecomment{#1}}
378
379
% Änderungen
380
%
381
% 1. Parameter: Review-Kommentar
382
% 2. Parameter: Neuer Text
383
\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}}
384
% Disabled variant - for the final PDF
385
%\newcommand{\change}[2]{#2}
386
387
% Define default commands
388
\makeatletter
389
\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{}
390
\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{}
391
\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{}
392
\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{}
393
\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{}
394
\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{}
395
\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{}
396
\makeatother
397
398
% Textmarker (Textfarbe rot)
399
\newcommand{\textmarker}[1]{{\color{red} #1}\xspace}
400
401
% Modified (Text blau)
402
\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace}
403
404
\usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx}
405
\addto\extrasgerman{\sisetup{locale = DE}}
406
407
% Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document
408
\usepackage{hyperref}
409
410
% Enable hyperref without colors and without bookmarks
411
\hypersetup{
412
hidelinks,
413
colorlinks=true, % Links erhalten Farben statt Kaeten
414
raiselinks=true, % calculate real height of the link
415
allcolors=black,
416
pdfstartview=Fit,
417
breaklinks=true, % Links ueberstehen Zeilenumbruch
418
hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075
419
}
420
421
% Enable correct jumping to figures when referencing
422
\usepackage[all]{hypcap}
423
424
% Hint by https://tex.stackexchange.com/a/193370/9075 to suppress strange outputs of the babel package
425
% Example strange output: Package babel Info: Redefining ngerman shorthand "|
426
\usepackage{etoolbox}
427
\makeatletter
428
\patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{}
429
\makeatother
430
431
\usepackage[caption=false,font=footnotesize]{subfig}
432
433
% Alternative for making subfigures:
434
% Part of the caption package. See http://www.ctan.org/pkg/caption
435
% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075
436
%
437
% (subfigure is outdated. subfig is maintained, but subcaption is better)
438
% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure
439
%\usepackage[hypcap=true]{subcaption}
440
441
\usepackage{mindflow}
442
443
% cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert
444
\usepackage[capitalise,nameinlink]{cleveref}
445
446
\crefname{table}{Tabelle}{Tab.}
447
\Crefname{table}{Tabelle}{Tabellen}
448
\crefname{figure}{Abbildung}{Abbildungen}
449
\Crefname{figure}{Abbildung}{Abbildungen}
450
\crefname{equation}{Gleichung}{Gleichungen}
451
\Crefname{equation}{Gleichung}{Gleichungen}
452
\crefname{theorem}{Theorem}{Theoreme}
453
\Crefname{theorem}{Theorem}{Theoreme}
454
\crefname{listing}{Listing}{Listings}
455
\Crefname{listing}{Listing}{Listings}
456
\crefname{section}{Abschnitt}{Abschnitte}
457
\Crefname{section}{Abschnitt}{Abschnitte}
458
\crefname{paragraph}{Abschnitt}{Abschnitte}
459
\Crefname{paragraph}{Abschnitt}{Abschnitte}
460
\crefname{subparagraph}{Abschnitt}{Abschnitte}
461
\Crefname{subparagraph}{Abschnitt}{Abschnitte}
462
463
\usepackage{lipsum}
464
465
% For demonstration purposes only
466
% These packages can be removed when all examples have been deleted
467
\usepackage[math]{blindtext}
468
\usepackage{mwe}
469
\usepackage[realmainfile]{currfile}
470
\usepackage{tcolorbox}
471
\tcbuselibrary{listings}
472
473
%introduce \powerset - hint by http://matheplanet.com/matheplanet/nuke/html/viewtopic.php?topic=136492&post_id=997377
474
\DeclareFontFamily{U}{MnSymbolC}{}
475
\DeclareSymbolFont{MnSyC}{U}{MnSymbolC}{m}{n}
476
\DeclareFontShape{U}{MnSymbolC}{m}{n}{
477
<-6> MnSymbolC5
478
<6-7> MnSymbolC6
479
<7-8> MnSymbolC7
480
<8-9> MnSymbolC8
481
<9-10> MnSymbolC9
482
<10-12> MnSymbolC10
483
<12-> MnSymbolC12%
484
}{}
485
\DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180}
486
487
\usepackage{xspace}
488
% Macht \xspace und \enquote kompatibel
489
\makeatletter
490
\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} }
491
\makeatother
492
493
% Enable hyphenation at other places as the dash.
494
% Example: applicaiton\hydash specific
495
\makeatletter
496
\newcommand{\hydash}{\penalty\@M-\hskip\z@skip}
497
% Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx
498
\makeatother
499
500
\ifluatex
501
% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype
502
% See ADR-0008 for alternatives
503
\usepackage{autotype}
504
\fi
505
506
% correct bad hyphenation here
507
\hyphenation{
508
Spe-zi-fi-ka-tion
509
In-te-gra-tion
510
An-for-de-rung An-for-de-run-gen
511
Be-nut-zer-ober-flä-che
512
Mes-sung-en
513
aus-zu-tau-schen
514
Lauf-zeit-in-for-ma-tionen
515
% May not be hypphenated
516
AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps
517
}
518
519
\input{commands}
520
521
% Add copyright
522
%
523
% This is recommended if you intend to send the version to colleagues
524
% See https://ctan.org/pkg/llncsconf for details
525
\iffalse
526
% state: intended | submitted | llncs
527
% you can add "crop" if the paper should be cropped to the format Springer is publishing
528
\usepackage[intended]{llncsconf}
529
530
\conference{name of the conference}
531
532
% in case of "proceedings" (final version!)
533
% example: \llncs{Anonymous et al. (eds). \emph{Proceedings of the International Conference on \LaTeX-Hacks}, LNCS~42. Some Publisher, 2016.}{0042}
534
% 0042 denotes an example start page
535
\llncs{book editors and title}{0042}
536
\fi
537
538
\ifpdftex
539
% Enable copy and paste of text from the PDF
540
% Only required for pdflatex. It "just works" in the case of lualatex.
541
% Alternative: cmap or mmap package
542
% mmap enables mathematical symbols, but does not work with the newtx font set
543
% See: https://tex.stackexchange.com/a/64457/9075
544
% Other solutions outlined at http://goemonx.blogspot.de/2012/01/pdflatex-ligaturen-und-copynpaste.html and http://tex.stackexchange.com/questions/4397/make-ligatures-in-linux-libertine-copyable-and-searchable
545
% Trouble shooting outlined at https://tex.stackexchange.com/a/100618/9075
546
%
547
% According to https://tex.stackexchange.com/q/451235/9075 this is the way to go
548
\input{glyphtounicode}
549
\pdfgentounicode=1
550
\fi
551
\begin{document}
552
\ifluatex
553
% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype
554
% See ADR-0008 for alternatives
555
\autotypelangoptions{ngerman}{ligbreak}
556
\fi
557
558
\title{Paper Title}
559
% If Title is too long, use \titlerunning
560
%\titlerunning{Short Title}
561
562
% Single insitute
563
\author{Firstname Lastname \and Firstname Lastname}
564
565
% If there are too many authors, use \authorrunning
566
%\authorrunning{First Author et al.}
567
568
\institute{Institute}
569
570
%% Multiple insitutes - ALTERNATIVE to the above
571
% \author{%
572
% Firstname Lastname\inst{1} \and
573
% Firstname Lastname\inst{2}
574
% }
575
%
576
%If there are too many authors, use \authorrunning
577
% \authorrunning{First Author et al.}
578
%
579
% \institute{
580
% Insitute 1\\
581
% \email{...}\and
582
% Insitute 2\\
583
% \email{...}
584
%}
585
586
\maketitle
587
588
\begin{abstract}
589
\lipsum[1]
590
591
\keywords{First keyword \and Second keyword \and Third keyword}
592
\end{abstract}
593
594
595
\section{Einleitung}
596
\label{sec:introduction}
597
Hier steht die Einleitung zu dieser Ausarbeitung.
598
Sie soll nur als Beispiel dienen.
599
Nun viel Erfolg bei der Arbeit!
600
601
Die Arbeit ist in folgender Weise gegliedert:
602
Zuerst werden Grundlagen und verwandte Arbeiten vorgestellt (\cref{sec:relatedwork}).
603
It is followed by a presentation of hints on \LaTeX{} (\cref{sec:latexhints}).
604
Schließlich fasst \cref{sec:outlook} die Ergebnisse der Arbeit zusammen und stellt Anknüpfungspunkte vor.
605
606
\section{Verwandte Arbeiten}
607
\label{sec:relatedwork}
608
609
Eine Beschreibung relevanter wissenschaftlicher Arbeiten mit Bezug zur eigenen Arbeit.
610
Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen.
611
612
Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of American English} tool.
613
The whole idea of TOSCA is explained by \citet{Binz2009}.
614
615
\section{LaTeX Hinweise}
616
\label{sec:latexhints}
617
618
% Benötigt für eine korrekte Darstellung der Hinweise im erzeugten PDF
619
\newcount\LTGbeginlineexample
620
\newcount\LTGendlineexample
621
\newenvironment{ltgexample}%
622
{\LTGbeginlineexample=\numexpr\inputlineno+1\relax}%
623
{\LTGendlineexample=\numexpr\inputlineno-1\relax%
624
\tcbinputlisting{%
625
listing only,
626
listing file=\currfilepath,
627
colback=green!5!white,
628
colframe=green!25,
629
coltitle=black!90,
630
coltext=black!90,
631
left=8mm,
632
title=Zugehöriger \LaTeX{}-Quelltext aus \texttt{\currfilepath},
633
listing options={
634
frame=none,
635
language={[LaTeX]TeX},
636
escapeinside={},
637
firstline=\the\LTGbeginlineexample,
638
lastline=\the\LTGendlineexample,
639
firstnumber=\the\LTGbeginlineexample,
640
basewidth=.5em,
641
aboveskip=0mm,
642
belowskip=0mm,
643
numbers=left,
644
xleftmargin=0mm,
645
numberstyle=\tiny,
646
numbersep=8pt%
647
}
648
}
649
}%
650
651
Hier sollen allgemeine \LaTeX-Hinweise gegeben werden, damit man Minimalbeispiele vorliegen hat, um sofort loszulegen.
652
653
\subsection{Trennung von Absätzen}
654
655
\begin{ltgexample}
656
Pro Satz eine neue Zeile.
657
Das ist wichtig, um sauber versionieren zu können.
658
In LaTeX werden Absätze durch eine Leerzeile getrennt.
659
Analogie zu Word: Bei Word werden neue Absätze durch einmal Eingabetaste herbeigeführt.
660
Dies führt bei LaTeX jedoch nicht zu einem neuen Absatz, da LaTeX direkt aufeinanderfolgende Zeilen zu einer Zeile zusammenfügt.
661
Mächte man nun einen Absatz haben, muss man zweimal die Eingabetaste drücken.
662
Dies führt zu einer leeren Zeile.
663
In Word gibt es die Funktion Großschreibetaste und Eingabetaste gleichzeitig.
664
Wenn man dies drückt, wird einer harter Umbruch erzwungen.
665
Der Text fängt am Anfang der neuen Zeile an.
666
In LaTeX erreicht man dies durch Doppelbackslashes (\textbackslash\textbackslash) erzeugt.
667
\\
668
Dies verwendet man quasi nie.
669
670
Folglich werden neue Abstäze insbesondere \emph{nicht} durch Doppelbackslashes erzeugt.
671
Beispielsweise begann der letzte Satz in einem neuen Absatz.
672
Eine ausführliche Motivation hierfür findet sich in \url{http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}.
673
\end{ltgexample}
674
675
676
\subsection{Notes separated from the text}
677
678
The package mindflow enables writing down notes and annotations in a way so that they are separated from the main text.
679
680
\begin{ltgexample}
681
\begin{mindflow}
682
This is a small note.
683
\end{mindflow}
684
\end{ltgexample}
685
686
\subsection{Handling TODOs}
687
688
\begin{ltgexample}
689
\textmarker{Markierter Text.}
690
\end{ltgexample}
691
692
Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert.
693
694
\begin{ltgexample}
695
\textcomment{Markierter Text.}{Kommentar dazu.}
696
\end{ltgexample}
697
698
\begin{ltgexample}
699
\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.}
700
\end{ltgexample}
701
702
\begin{ltgexample}
703
Das ist ein Text.
704
\change{FL1: Text angepasst}{Geänderter Text}.
705
\end{ltgexample}
706
707
\begin{ltgexample}
708
Hier nur ein Kommentar\sidecomment{Kommentar}.
709
\end{ltgexample}
710
711
\begin{ltgexample}
712
\todo{Hier muss noch kräftig Text produziert werden}
713
\end{ltgexample}
714
715
\subsection{Hyphenation}
716
717
\LaTeX{} automatically hyphenates words.
718
When using \href{https://ctan.org/pkg/microtype}{microtype}, there should be fewer hyphenations than in other settings.
719
It might be necessary to tweak the hyphenations nevertheless.
720
Here are some hints:
721
722
\begin{ltgexample}
723
In case you write \enquote{application-specific}, then the word will only be hyphenated at the dash.
724
You can also write \verb1applica\allowbreak{}tion-specific1 (result: applica\allowbreak{}tion-specific), but this is much more effort.
725
726
You can now write words containing hyphens which are hyphenated at other places in the word.
727
For instance, \verb1application"=specific1 gets application"=specific.
728
This is enabled by an additional configuration of the babel package.
729
\end{ltgexample}
730
731
\subsection{Typesetting Units}
732
733
\begin{ltgexample}
734
Numbers can be written plain text (such as 100), by using the \href{https://ctan.org/pkg/siunitx}{siunitx} package as follows:
735
\SI{100}{\km\per\hour},
736
or by using plain \LaTeX{} (and math mode):
737
$100 \frac{\mathit{km}}{h}$.
738
\end{ltgexample}
739
740
\begin{ltgexample}
741
\SI{5}{\percent} of \SI{10}{kg}
742
\end{ltgexample}
743
744
\begin{ltgexample}
745
Numbers are automatically grouped: \num{123456}.
746
\end{ltgexample}
747
748
\subsection{Surrounding Text by Quotes}
749
750
\begin{ltgexample}
751
Please use the \enquote{enquote command} to quote something.
752
Quoting with "`quote"' or ``quote'' also works.
753
754
\end{ltgexample}
755
756
\subsection{Cleveref examples}
757
\label{sec:ex:cref}
758
759
Cleveref demonstration: Cref at beginning of sentence, cref in all other cases.
760
761
\begin{figure}
762
\centering
763
\includegraphics[width=.75\linewidth]{example-image-a}
764
\caption{Example figure for cref demo}
765
\label{fig:ex:cref}
766
\end{figure}
767
768
\begin{table}
769
\centering
770
\begin{tabular}{ll}
771
\toprule
772
Heading1 & Heading2 \\
773
\midrule
774
One & Two \\
775
Thee & Four \\
776
\bottomrule
777
\end{tabular}
778
\caption{Example table for cref demo}
779
\label{tab:ex:cref}
780
\end{table}
781
782
\begin{ltgexample}
783
\Cref{fig:ex:cref} shows a simple fact, although \cref{fig:ex:cref} could also show something else.
784
785
\Cref{tab:ex:cref} shows a simple fact, although \cref{tab:ex:cref} could also show something else.
786
787
\Cref{sec:ex:cref} shows a simple fact, although \cref{sec:ex:cref} could also show something else.
788
\end{ltgexample}
789
790
\subsection{Abbildungen}
791
792
\begin{ltgexample}
793
\Cref{fig:label} zeigt etwas Interessantes
794
795
\begin{figure}
796
\centering
797
Füge deine Abbildung hier ein.
798
\caption{Bildunterschrift.}
799
\label{fig:label}
800
\end{figure}
801
\end{ltgexample}
802
803
One can also have pictures floating inside text:
804
\clearpage
805
806
\begin{ltgexample}
807
\begin{floatingfigure}{.33\linewidth}
808
\includegraphics[width=.29\linewidth]{example-image-a}
809
\caption{A floating figure}
810
\end{floatingfigure}
811
\lipsum[2]
812
\end{ltgexample}
813
814
\subsection{Sub Figures}
815
816
An example of two sub figures is shown in \cref{fig:two_sub_figures}.
817
818
\begin{ltgexample}
819
\begin{figure}[!b]
820
\centering
821
\subfloat[Case I]{\includegraphics[width=.4\linewidth]{example-image-a}%
822
\label{fig:first_case}}
823
\hfil
824
\subfloat[Case II]{\includegraphics[width=.4\linewidth]{example-image-b}%
825
\label{fig:second_case}}
826
\caption{Example figure with two sub figures.}
827
\label{fig:two_sub_figures}
828
\end{figure}
829
\end{ltgexample}
830
831
\subsection{Tables}
832
833
\begin{ltgexample}
834
\begin{table}
835
\caption{Simple Table}
836
\label{tab:simple}
837
\centering
838
\begin{tabular}{ll}
839
\toprule
840
Heading1 & Heading2 \\
841
\midrule
842
One & Two \\
843
Thee & Four \\
844
\bottomrule
845
\end{tabular}
846
\end{table}
847
\end{ltgexample}
848
849
\begin{ltgexample}
850
% Source: https://tex.stackexchange.com/a/468994/9075
851
\begin{table}
852
\caption{Table with diagonal line}
853
\label{tab:diag}
854
\begin{center}
855
\begin{tabular}{|l|c|c|}
856
\hline
857
\diagbox[width=10em]{Diag \\Column Head I}{Diag Column\\Head II} & Second & Third \\
858
\hline
859
& foo & bar \\
860
\hline
861
\end{tabular}
862
\end{center}
863
\end{table}
864
\end{ltgexample}
865
866
867
\subsection{Quellcode}
868
869
\begin{ltgexample}
870
\Cref{lst:XML} zeigt XML-Quelltext.
871
\Cref{line:comment} enthält einen Kommentar.
872
873
\begin{lstlisting}[
874
language=XML,
875
caption={Beispiel-XML-Listing},
876
label={lst:XML}]
877
<listing name="example">
878
<!-- comment --> (* \label{line:comment} *)
879
<content>not interesting</content>
880
</listing>
881
\end{lstlisting}
882
\end{ltgexample}
883
884
Der zusätzliche Paramter \verb+float+ führt dazu, dass das Listing auch floated.
885
\Cref{lst:flXML} zeigt das gleitendede Listing.
886
887
\begin{ltgexample}
888
\begin{lstlisting}[
889
% Es ist möglcih, die Abstände bei Bedarf einzustellen
890
% aboveskip=2.5\baselineskip,
891
% belowskip=-.8\baselineskip,
892
float,
893
language=XML,
894
caption={Beispiel-XML-Listing -- gleitend},
895
label={lst:flXML}]
896
<listing name="example">
897
Floating
898
</listing>
899
\end{lstlisting}
900
\end{ltgexample}
901
902
Es ist möglich auch JSON zu setzen, wie in \cref{lst:json} gezeigt.
903
904
\begin{ltgexample}
905
\begin{lstlisting}[
906
float,
907
language=json,
908
caption={Beispiel-JSON-listing},
909
label={lst:json}]
910
{
911
key: "value"
912
}
913
\end{lstlisting}
914
\end{ltgexample}
915
916
Java ist auch möglich -- \cref{lst:java}.
917
918
\begin{ltgexample}
919
\begin{lstlisting}[
920
caption={Example Java listing},
921
label=lst:java,
922
language=Java,
923
float]
924
public class Hello {
925
public static void main (String[] args) {
926
System.out.println("Hello World!");
927
}
928
}
929
\end{lstlisting}
930
\end{ltgexample}
931
932
\subsection{Itemization}
933
934
One can list items as follows:
935
936
\begin{ltgexample}
937
\begin{itemize}
938
\item Item One
939
\item Item Two
940
\end{itemize}
941
\end{ltgexample}
942
943
944
One can enumerate items as follows:
945
946
\begin{ltgexample}
947
\begin{enumerate}
948
\item Item One
949
\item Item Two
950
\end{enumerate}
951
\end{ltgexample}
952
953
954
With paralist, one can even have all items typeset after each other and have them clean in the TeX document:
955
956
\begin{ltgexample}
957
\begin{inparaenum}
958
\item All these items...
959
\item ...appear in one line
960
\item This is enabled by the paralist package.
961
\end{inparaenum}
962
\end{ltgexample}
963
964
\subsection{Other Features}
965
966
\begin{ltgexample}
967
The words \enquote{workflow} and \enquote{dwarflike} can be copied from the PDF and pasted to a text file.
968
\end{ltgexample}
969
970
\begin{ltgexample}
971
The symbol for powerset is now correct: $\powerset$ and not a Weierstrass p ($\wp$).
972
973
$\powerset({1,2,3})$
974
\end{ltgexample}
975
976
\begin{ltgexample}
977
Brackets work as designed:
978
<test>
979
One can also input backticks in verbatim text: \verb|`test`|.
980
\end{ltgexample}
981
982
983
\section{Zusammenfassung und Ausblick}
984
\label{sec:outlook}
985
Hier bitte einen kurzen Durchgang durch die Arbeit.
986
987
\lipsum[1-2]
988
989
...und anschließend einen Ausblick.
990
991
\subsubsection*{Danksagungen}
992
993
Identification of funding sources and other support, and thanks to individuals and groups that assisted in the research and the preparation of the work should be included in an acknowledgment section, which is placed just before the reference section in your document \cite{acmart}.
994
995
%%% ===============================================================================
996
%%% Bibliography
997
%%% ===============================================================================
998
999
In the bibliography, use \texttt{\textbackslash textsuperscript} for \enquote{st}, \enquote{nd}, \ldots:
1000
E.g., \enquote{The 2\textsuperscript{nd} conference on examples}.
1001
When you use \href{https://www.jabref.org}{JabRef}, you can use the clean up command to achieve that.
1002
See \url{https://help.jabref.org/en/CleanupEntries} for an overview of the cleanup functionality.
1003
1004
\renewcommand{\bibsection}{\section*{Literatur}} % requried for natbib to have "References" printed and as section*, not chapter*
1005
% Use natbib compatbile splncs04nat style.
1006
% It does provide all features of splncs03, but is developed in a clean way.
1007
% Source: https://github.com/tpavlic/splncs04nat
1008
\bibliographystyle{splncs04nat}
1009
\begingroup
1010
\microtypecontext{expansion=sloppy}
1011
\small % ensure correct font size for the bibliography
1012
\bibliography{paper}
1013
\endgroup
1014
1015
% Enfore empty line after bibliography
1016
\ \\
1017
%
1018
\noindent
1019
Alle Links wurden zuletzt am 29.03.2021 geprüft.
1020
1021
%%% ===============================================================================
1022
%\appendix
1023
%\addcontentsline{toc}{chapter}{APPENDICES}
1024
1025
%\listoffigures
1026
%\listoftables
1027
%%% ===============================================================================
1028
1029
%%% ===============================================================================
1030
%\section{My first appendix}\label{sec:appendix1}
1031
%%% ===============================================================================
1032
\end{document}
1033
1034