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