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