Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
latextemplates
GitHub Repository: latextemplates/LNCS
Path: blob/main/paper-newtx.tex
428 views
1
% This template has been tested with LLNCS DOCUMENT CLASS -- version 2.21 (12-Jan-2022)
2
3
% !TeX spellcheck = en-US
4
% LTeX: language=en-US
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" enables:
20
%
21
% - page number on page 2 onwards
22
% - title/authors on even/odd pages
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
% The optiion "runningheads" neesd to be removed upon request of the publisher.
30
%
31
% To disable outputting page headers and footers, remove "runningheads"
32
\documentclass[runningheads,a4paper,english]{llncs}[2022/01/12]
33
34
\usepackage{iftex}
35
36
% backticks (`) are rendered as such in verbatim environments.
37
% See following links for details:
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
% Set English as language and allow to write hyphenated"=words
44
%
45
% Even though `american`, `english` and `USenglish` are synonyms for babel package (according to https://tex.stackexchange.com/questions/12775/babel-english-american-usenglish), the llncs document class is prepared to avoid the overriding of certain names (such as "Abstract." -> "Abstract" or "Fig." -> "Figure") when using `english`, but not when using the other 2.
46
% english has to go last to set it as default language
47
\usepackage[ngerman,main=english]{babel}
48
%
49
% Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes
50
\addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}}
51
52
% Links behave as they should. Enables "\url{...}" for URL typesettings.
53
% Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen?
54
% See https://tex.stackexchange.com/a/3034/9075.
55
\usepackage[hyphens]{url}
56
57
% When activated, use text font as url font, not the monospaced one.
58
% For all options see https://tex.stackexchange.com/a/261435/9075.
59
% \urlstyle{same}
60
61
% Improve wrapping of URLs - hint by http://tex.stackexchange.com/a/10419/9075
62
\makeatletter
63
\g@addto@macro{\UrlBreaks}{\UrlOrds}
64
\makeatother
65
66
% nicer // - solution by http://tex.stackexchange.com/a/98470/9075
67
% DO NOT ACTIVATE -> prevents line breaks
68
%\makeatletter
69
%\def\Url@twoslashes{\mathchar`\/\@ifnextchar/{\kern-.2em}{}}
70
%\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}}
71
%\makeatother
72
73
%% !!! If you change the font, be sure that words such as "workflow" can
74
%% !!! still be copied from the PDF. If this is not the case, you have
75
%% !!! to use glyphtounicode. See comment at cmap package.
76
%%
77
%% Background: "workflow" contains "fl" which is a ligature, which in turn
78
%% is rendered as one character in the PDF and needs to be split
79
%% whily copying.
80
81
\ifluatex
82
\usepackage[no-math]{fontspec}
83
\usepackage{unicode-math}
84
85
% See https://tug.org/FontCatalogue/texgyretermes/ for more information
86
\setmainfont{texgyretermes}[
87
Extension = .otf,
88
UprightFont = *-regular,
89
BoldFont = *-bold,
90
ItalicFont = *-italic,
91
BoldItalicFont = *-bolditalic,
92
Ligatures=TeX
93
]
94
% See https://tug.org/FontCatalogue/texgyreheros/ for more information
95
\setsansfont[Scale=.9]{TeX Gyre Heros Regular}
96
% newtxtt looks good with times, but no equivalent for lualatex found,
97
% therefore tried to replace with inconsolata.
98
% However, inconsolata does not look good in the context of LNCS ...
99
%\setmonofont[StylisticSet={1,3},Scale=.9]{inconsolata}
100
% ... thus, we use the good old Latin Modern Mono font for source code.
101
\setmonofont{Latin Modern Mono} % "variable=false"
102
103
% Enable proper ligatures
104
% For more information see https://ctan.org/pkg/selnolig
105
% language "english" or "ngerman" is passed to selnolig by the document class
106
\usepackage{selnolig}
107
108
\else
109
\RequirePackage{newtxtext}
110
\RequirePackage{newtxmath}
111
\RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
112
113
% Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075.
114
\usepackage[T1]{fontenc}
115
\fi
116
117
% Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/
118
119
\usepackage[
120
babel=true, % Enable language-specific kerning. Take language-settings from the languge of the current document (see Section 6 of microtype.pdf)
121
expansion=alltext,
122
protrusion=alltext-nott, % Ensure that at listings, there is no change at the margin of the listing
123
% In the standard configuration, this template is always in the final mode, so this option only makes a difference if "pros" use the draft mode
124
final % Always enable microtype, even if in draft mode. This helps finding bad boxes quickly.
125
]{microtype}
126
127
% \texttt{test -- test} keeps the "--" as "--" (and does not convert it to an en dash)
128
\DisableLigatures{encoding = T1, family = tt* }
129
130
%\DeclareMicrotypeSet*[tracking]{my}{ font = */*/*/sc/* }%
131
%\SetTracking{ encoding = *, shape = sc }{ 45 }
132
% Source: http://homepage.ruhr-uni-bochum.de/Georg.Verweyen/pakete.html
133
% Deactiviated, because does not look good
134
135
\usepackage{graphicx}
136
137
% Diagonal lines in a table - http://tex.stackexchange.com/questions/17745/diagonal-lines-in-table-cell
138
% Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox
139
\usepackage{diagbox}
140
141
\ifluatex
142
\usepackage{spelling}
143
\spellingoutput{off}
144
\fi
145
146
\usepackage[dvipsnames, table]{xcolor}
147
% Code Listings
148
\usepackage{listings}
149
150
\definecolor{eclipseStrings}{RGB}{42,0.0,255}
151
\definecolor{eclipseKeywords}{RGB}{127,0,85}
152
\colorlet{numb}{magenta!60!black}
153
154
% JSON definition
155
% Source: https://tex.stackexchange.com/a/433961/9075
156
157
\lstdefinelanguage{json}{
158
basicstyle=\normalfont\ttfamily,
159
commentstyle=\color{eclipseStrings}, % style of comment
160
stringstyle=\color{eclipseKeywords}, % style of strings
161
numbers=left,
162
numberstyle=\scriptsize,
163
stepnumber=1,
164
numbersep=8pt,
165
showstringspaces=false,
166
breaklines=true,
167
frame=lines,
168
% backgroundcolor=\color{gray}, %only if you like
169
string=[s]{"}{"},
170
comment=[l]{:\ "},
171
morecomment=[l]{:"},
172
literate=
173
*{0}{{{\color{numb}0}}}{1}
174
{1}{{{\color{numb}1}}}{1}
175
{2}{{{\color{numb}2}}}{1}
176
{3}{{{\color{numb}3}}}{1}
177
{4}{{{\color{numb}4}}}{1}
178
{5}{{{\color{numb}5}}}{1}
179
{6}{{{\color{numb}6}}}{1}
180
{7}{{{\color{numb}7}}}{1}
181
{8}{{{\color{numb}8}}}{1}
182
{9}{{{\color{numb}9}}}{1}
183
}
184
185
\lstset{
186
% everything between (* *) is a latex command
187
escapeinside={(*}{*)},
188
%
189
language=json,
190
%
191
showstringspaces=false,
192
%
193
basicstyle=\footnotesize\ttfamily,
194
%
195
commentstyle=\slshape,
196
%
197
% default: \rmfamily
198
stringstyle=\ttfamily,
199
%
200
breaklines=true, % Zeilen werden umbrochen
201
%
202
breakatwhitespace=true,
203
%
204
% alternative: fixed
205
columns=flexible,
206
%
207
tabsize=2, % Groesse von Tabs
208
%
209
numbers=left,
210
%
211
numberstyle=\tiny,
212
%
213
basewidth=.5em,
214
%
215
xleftmargin=.5cm,
216
%
217
% aboveskip=0mm,
218
%
219
% belowskip=0mm,
220
%
221
captionpos=b
222
}
223
224
\ifpdftex
225
% Enable Umlauts when using \lstinputputlisting.
226
% See https://stackoverflow.com/a/29260603/873282 and https://tex.stackexchange.com/a/24532/9075 for details.
227
% listingsutf8 did not work in June 2020.
228
\lstset{extendedchars=true, literate=
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 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
236
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
237
{Ã}{{\~A}}1 {ã}{{\~a}}1 {Õ}{{\~O}}1 {õ}{{\~o}}1
238
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
239
{ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1
240
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
241
}
242
\fi
243
244
\lstloadlanguages{% Check dokumentation for further languages...
245
%[Visual]Basic
246
%Pascal
247
%C
248
%C++
249
%XML
250
%HTML
251
}
252
253
% For easy quotations: \enquote{text}
254
% This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command
255
\usepackage[autostyle=true]{csquotes}
256
257
% Enable using "`quote"' - see https://tex.stackexchange.com/a/150954/9075
258
\defineshorthand{"`}{\openautoquote}
259
\defineshorthand{"'}{\closeautoquote}
260
261
% Nicer tables (\toprule, \midrule, \bottomrule)
262
\usepackage{booktabs}
263
264
% Extended enumerate, such as \begin{compactenum}
265
\usepackage{paralist}
266
267
% Bibliopgraphy enhancements
268
% - enable \cite[prenote][]{ref}
269
% - enable \cite{ref1,ref2}
270
% Alternative: \usepackage{cite}, which enables \cite{ref1, ref2} only (otherwise: Error message: "White space in argument")
271
272
% Doc: http://texdoc.net/natbib
273
\usepackage[%
274
square, % for square brackets
275
comma, % use commas as separators
276
numbers, % for numerical citations;
277
%sort % orders multiple citations into the sequence in which they appear in the list of references;
278
sort&compress % as sort but in addition multiple numerical citations are compressed if possible (as 3-6, 15);
279
]{natbib}
280
281
% In the bibliography, references have to be formatted as 1., 2., ... not [1], [2], ...
282
\renewcommand{\bibnumfmt}[1]{#1.}
283
284
% Enable hyperlinked author names in the case of \citet
285
% Source: https://tex.stackexchange.com/a/76075/9075
286
\usepackage{etoolbox}
287
\makeatletter
288
\patchcmd{\NAT@test}{\else \NAT@nm}{\else \NAT@hyper@{\NAT@nm}}{}{}
289
\makeatother
290
291
% Prepare more space-saving rendering of the bibliography
292
% Source: https://tex.stackexchange.com/a/280936/9075
293
\SetExpansion
294
[ context = sloppy,
295
stretch = 30,
296
shrink = 60,
297
step = 5 ]
298
{ encoding = {OT1,T1,TS1} }
299
{ }
300
301
% Put figures aside a text
302
% Even though the package is from 1998, it works well
303
\usepackage[rflt]{floatflt}
304
305
% Farbige Tabellen
306
% ----------------
307
% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen
308
%
309
% Erweiterte Funktionen innerhalb von Tabellen
310
% --------------------------------------------
311
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty
312
\usepackage{multirow} % Mehrfachspalten
313
%
314
%%% Doc: Documentation inside dtx Package
315
\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt
316
317
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf
318
%\usepackage{supertabular}
319
320
%%% Fussnoten/Endnoten ===================================================
321
322
% EN: Put footnotes below floats
323
% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren
324
% Source: https://tex.stackexchange.com/a/32993/9075
325
\usepackage{stfloats}
326
\fnbelowfloat
327
328
% EN: Extended support for footnotes
329
% DE: Fußnoten
330
%
331
%\usepackage{dblfnote} %Zweispaltige Fußnoten
332
%
333
% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch):
334
%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}}
335
%
336
% Abstand zwischen Fußnoten vergrößern:
337
%\setlength{\footnotesep}{.85\baselineskip}
338
%
339
% EN: Following command disables the separting line of the footnote
340
% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote
341
%\renewcommand{\footnoterule}{}
342
%
343
%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote
344
345
% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite
346
% DE: fnpos kommt aus dem yafoot package
347
%\usepackage{fnpos}
348
%\makeFNbelow
349
%\makeFNbottom
350
351
% TODO (and comment) configuration
352
%
353
% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs
354
% - \todofix - "important" TODOs
355
%
356
% - \textcomment - highlights text and has a hover comment
357
% - \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)
358
%
359
% - \missingfigure
360
%
361
% - \textmarker
362
% - \modified
363
% - \change - adresses a review comment
364
365
% Enable nice comments
366
\usepackage{pdfcomment}
367
368
\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}}
369
370
% Small PDF comment
371
% 1. Parameter: Comment
372
\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}}
373
% Disabled variant - for the final PDF
374
%\newcommand{\sidecomment}[1]{}
375
376
\newcommand{\todo}[1]{TODO!\sidecomment{#1}}
377
378
% Änderungen
379
%
380
% 1. Parameter: Review-Kommentar
381
% 2. Parameter: Neuer Text
382
\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}}
383
% Disabled variant - for the final PDF
384
%\newcommand{\change}[2]{#2}
385
386
% Define default commands
387
\makeatletter
388
\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{}
389
\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{}
390
\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{}
391
\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{}
392
\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{}
393
\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{}
394
\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{}
395
\makeatother
396
397
% Textmarker (Textfarbe rot)
398
\newcommand{\textmarker}[1]{{\color{red} #1}\xspace}
399
400
% Modified (Text blau)
401
\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace}
402
403
\usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx}
404
405
% 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
406
\usepackage{hyperref}
407
408
% Enable hyperref without colors and without bookmarks
409
\hypersetup{
410
hidelinks,
411
colorlinks=true, % Links erhalten Farben statt Kaeten
412
raiselinks=true, % calculate real height of the link
413
allcolors=black,
414
pdfstartview=Fit,
415
breaklinks=true, % Links ueberstehen Zeilenumbruch
416
hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075
417
}
418
419
% Enable correct jumping to figures when referencing
420
\usepackage[all]{hypcap}
421
422
\usepackage[caption=false,font=footnotesize]{subfig}
423
424
% Alternative for making subfigures:
425
% Part of the caption package. See http://www.ctan.org/pkg/caption
426
% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075
427
%
428
% (subfigure is outdated. subfig is maintained, but subcaption is better)
429
% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure
430
%\usepackage[hypcap=true]{subcaption}
431
432
\usepackage{mindflow}
433
434
% Extensions for references inside the document (\cref{fig:sample}, ...)
435
% Enable usage \cref{...} and \Cref{...} instead of \ref: Type of reference included in the link
436
% That means, "Figure 5" is a full link instead of just "5".
437
\usepackage[capitalise,nameinlink]{cleveref}
438
439
\crefname{section}{Sect.}{Sect.}
440
\Crefname{section}{Section}{Sections}
441
\crefname{listing}{List.}{List.}
442
\crefname{listing}{Listing}{Listings}
443
\Crefname{listing}{Listing}{Listings}
444
\crefname{lstlisting}{Listing}{Listings}
445
\Crefname{lstlisting}{Listing}{Listings}
446
447
\usepackage{lipsum}
448
449
% For demonstration purposes only
450
% These packages can be removed when all examples have been deleted
451
\usepackage[math]{blindtext}
452
\usepackage{mwe}
453
\usepackage[realmainfile]{currfile}
454
\usepackage{tcolorbox}
455
\tcbuselibrary{listings}
456
457
%introduce \powerset - hint by http://matheplanet.com/matheplanet/nuke/html/viewtopic.php?topic=136492&post_id=997377
458
\DeclareFontFamily{U}{MnSymbolC}{}
459
\DeclareSymbolFont{MnSyC}{U}{MnSymbolC}{m}{n}
460
\DeclareFontShape{U}{MnSymbolC}{m}{n}{
461
<-6> MnSymbolC5
462
<6-7> MnSymbolC6
463
<7-8> MnSymbolC7
464
<8-9> MnSymbolC8
465
<9-10> MnSymbolC9
466
<10-12> MnSymbolC10
467
<12-> MnSymbolC12%
468
}{}
469
\DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180}
470
471
% Allows for defining commands that don't eat spaces.
472
\usepackage{xspace}
473
% Adds compatibility to \xspace und \enquote
474
\makeatletter
475
\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} }
476
\makeatother
477
478
\newcommand{\eg}{e.g.,\ }
479
\newcommand{\ie}{i.e.,\ }
480
481
% Enable hyphenation at other places as the dash.
482
% Example: applicaiton\hydash specific
483
\makeatletter
484
\newcommand{\hydash}{\penalty\@M-\hskip\z@skip}
485
% Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx
486
\makeatother
487
488
% Add manual adapted hyphenation of English words
489
% See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details
490
\input{ushyphex}
491
492
% correct bad hyphenation here
493
\hyphenation{
494
op-tical net-works semi-conduc-tor
495
% May not be hypphenated
496
AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps
497
}
498
499
\input{commands}
500
501
% Add copyright
502
%
503
% This is recommended if you intend to send the version to colleagues
504
% See https://ctan.org/pkg/llncsconf for details
505
\iffalse
506
% state: intended | submitted | llncs
507
% you can add "crop" if the paper should be cropped to the format Springer is publishing
508
\usepackage[intended]{llncsconf}
509
510
\conference{name of the conference}
511
512
% in case of "proceedings" (final version!)
513
% example: \llncs{Anonymous et al. (eds). \emph{Proceedings of the International Conference on \LaTeX-Hacks}, LNCS~42. Some Publisher, 2016.}{0042}
514
% 0042 denotes an example start page
515
\llncs{book editors and title}{0042}
516
\fi
517
518
\ifpdftex
519
% Enable copy and paste of text from the PDF
520
% Only required for pdflatex. It "just works" in the case of lualatex.
521
% Alternative: cmap or mmap package
522
% mmap enables mathematical symbols, but does not work with the newtx font set
523
% See: https://tex.stackexchange.com/a/64457/9075
524
% 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
525
% Trouble shooting outlined at https://tex.stackexchange.com/a/100618/9075
526
%
527
% According to https://tex.stackexchange.com/q/451235/9075 this is the way to go
528
\input{glyphtounicode}
529
\pdfgentounicode=1
530
\fi
531
\begin{document}
532
533
\title{Paper Title}
534
% If Title is too long, use \titlerunning
535
%\titlerunning{Short Title}
536
537
% Single insitute
538
\author{Firstname Lastname \and Firstname Lastname}
539
540
% If there are too many authors, use \authorrunning
541
%\authorrunning{First Author et al.}
542
543
\institute{Institute}
544
545
%% Multiple insitutes - ALTERNATIVE to the above
546
% \author{%
547
% Firstname Lastname\inst{1} \and
548
% Firstname Lastname\inst{2}
549
% }
550
%
551
%If there are too many authors, use \authorrunning
552
% \authorrunning{First Author et al.}
553
%
554
% \institute{
555
% Insitute 1\\
556
% \email{...}\and
557
% Insitute 2\\
558
% \email{...}
559
%}
560
561
\maketitle
562
563
\begin{abstract}
564
\lipsum[1]
565
566
\keywords{First keyword \and Second keyword \and Third keyword}
567
\end{abstract}
568
569
570
\section{Introduction}
571
\label{sec:introduction}
572
\lipsum[1-3]\todo{Refine me}
573
574
The remainder of the paper starts with a presentation of related work (\cref{sec:relatedwork}).
575
It is followed by a presentation of hints on \LaTeX{} (\cref{sec:latexhints}).
576
Finally, a conclusion is drawn and outlook on future work is made (\cref{sec:outlook}).
577
578
\section{Related Work}
579
\label{sec:relatedwork}
580
581
Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of American English} tool.
582
The whole idea of TOSCA is explained by \citet{Binz2009}.
583
584
\section{LaTeX Hints}
585
\label{sec:latexhints}
586
587
% Required for proper example rendering in the compiled PDF
588
\newcount\LTGbeginlineexample
589
\newcount\LTGendlineexample
590
\newenvironment{ltgexample}%
591
{\LTGbeginlineexample=\numexpr\inputlineno+1\relax}%
592
{\LTGendlineexample=\numexpr\inputlineno-1\relax%
593
\tcbinputlisting{%
594
listing only,
595
listing file=\currfilepath,
596
colback=green!5!white,
597
colframe=green!25,
598
coltitle=black!90,
599
coltext=black!90,
600
left=8mm,
601
title=Corresponding \LaTeX{} code of \texttt{\currfilepath},
602
listing options={
603
frame=none,
604
language={[LaTeX]TeX},
605
escapeinside={},
606
firstline=\the\LTGbeginlineexample,
607
lastline=\the\LTGendlineexample,
608
firstnumber=\the\LTGbeginlineexample,
609
basewidth=.5em,
610
aboveskip=0mm,
611
belowskip=0mm,
612
numbers=left,
613
xleftmargin=0mm,
614
numberstyle=\tiny,
615
numbersep=8pt%
616
}
617
}
618
}%
619
620
This section contains hints on writing LaTeX.
621
It focuses on minimal examples, which can be directly adapted to the content
622
623
\subsection{Handling of paragraphs}
624
625
\begin{ltgexample}
626
One sentence per line.
627
This rule is important for the usage of version control systems.
628
A new line is generated with a blank line.
629
As you would do in Word:
630
New paragraphs are generated by pressing enter.
631
In LaTeX, this does not lead to a new paragraph as LaTeX joins subsequent lines.
632
In case you want a new paragraph, just press enter twice!
633
This leads to an empty line.
634
In word, there is the functionality to press shift and enter.
635
This leads to a hard line break.
636
The text starts at the beginning of a new line.
637
In LaTeX, you can do that by using two backslashes (\textbackslash\textbackslash).
638
\\
639
This is rarely used.
640
641
Please do \textit{not} use two backslashes for new paragraphs.
642
For instance, this sentence belongs to the same paragraph, whereas the last one started a new one.
643
A long motivation for that is provided at \url{http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}.
644
\end{ltgexample}
645
646
\subsection{Notes separated from the text}
647
648
The package mindflow enables writing down notes and annotations in a way so that they are separated from the main text.
649
650
\begin{ltgexample}
651
\begin{mindflow}
652
This is a small note.
653
\end{mindflow}
654
\end{ltgexample}
655
656
\subsection{Handling TODOs}
657
658
\begin{ltgexample}
659
\textmarker{Markierter Text.}
660
\end{ltgexample}
661
662
Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert.
663
664
\begin{ltgexample}
665
\textcomment{Markierter Text.}{Kommentar dazu.}
666
\end{ltgexample}
667
668
\begin{ltgexample}
669
\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.}
670
\end{ltgexample}
671
672
\begin{ltgexample}
673
Das ist ein Text.
674
\change{FL1: Text angepasst}{Geänderter Text}.
675
\end{ltgexample}
676
677
\begin{ltgexample}
678
Hier nur ein Kommentar\sidecomment{Kommentar}.
679
\end{ltgexample}
680
681
\begin{ltgexample}
682
\todo{Hier muss noch kräftig Text produziert werden}
683
\end{ltgexample}
684
685
\subsection{Hyphenation}
686
687
\LaTeX{} automatically hyphenates words.
688
When using \href{https://ctan.org/pkg/microtype}{microtype}, there should be fewer hyphenations than in other settings.
689
It might be necessary to tweak the hyphenations nevertheless.
690
Here are some hints:
691
692
\begin{ltgexample}
693
In case you write \enquote{application-specific}, then the word will only be hyphenated at the dash.
694
You can also write \verb1applica\allowbreak{}tion-specific1 (result: applica\allowbreak{}tion-specific), but this is much more effort.
695
696
You can now write words containing hyphens which are hyphenated at other places in the word.
697
For instance, \verb1application"=specific1 gets application"=specific.
698
This is enabled by an additional configuration of the babel package.
699
\end{ltgexample}
700
701
\subsection{Typesetting Units}
702
703
\begin{ltgexample}
704
Numbers can be written plain text (such as 100), by using the \href{https://ctan.org/pkg/siunitx}{siunitx} package as follows:
705
\SI{100}{\km\per\hour},
706
or by using plain \LaTeX{} (and math mode):
707
$100 \frac{\mathit{km}}{h}$.
708
\end{ltgexample}
709
710
\begin{ltgexample}
711
\SI{5}{\percent} of \SI{10}{kg}
712
\end{ltgexample}
713
714
\begin{ltgexample}
715
Numbers are automatically grouped: \num{123456}.
716
\end{ltgexample}
717
718
\subsection{Surrounding Text by Quotes}
719
720
\begin{ltgexample}
721
Please use the \enquote{enquote command} to quote something.
722
Quoting with "`quote"' or ``quote'' also works.
723
724
\end{ltgexample}
725
726
\subsection{Cleveref examples}
727
\label{sec:ex:cref}
728
729
Cleveref demonstration: Cref at beginning of sentence, cref in all other cases.
730
731
\begin{figure}
732
\centering
733
\includegraphics[width=.75\linewidth]{example-image-a}
734
\caption{Example figure for cref demo}
735
\label{fig:ex:cref}
736
\end{figure}
737
738
\begin{table}
739
\centering
740
\begin{tabular}{ll}
741
\toprule
742
Heading1 & Heading2 \\
743
\midrule
744
One & Two \\
745
Thee & Four \\
746
\bottomrule
747
\end{tabular}
748
\caption{Example table for cref demo}
749
\label{tab:ex:cref}
750
\end{table}
751
752
\begin{ltgexample}
753
\Cref{fig:ex:cref} shows a simple fact, although \cref{fig:ex:cref} could also show something else.
754
755
\Cref{tab:ex:cref} shows a simple fact, although \cref{tab:ex:cref} could also show something else.
756
757
\Cref{sec:ex:cref} shows a simple fact, although \cref{sec:ex:cref} could also show something else.
758
\end{ltgexample}
759
760
\subsection{Figures}
761
762
\begin{ltgexample}
763
\Cref{fig:label} shows something interesting.
764
765
\begin{figure}
766
\centering
767
\includegraphics[width=.8\linewidth]{example-image-golden}
768
\caption[Simple Figure]{
769
Simple Figure.
770
Based on \citet{mwe}.
771
}
772
\label{fig:label}
773
\end{figure}
774
\end{ltgexample}
775
776
One can also have pictures floating inside text:
777
\clearpage
778
779
\begin{ltgexample}
780
\begin{floatingfigure}{.33\linewidth}
781
\includegraphics[width=.29\linewidth]{example-image-a}
782
\caption{A floating figure}
783
\end{floatingfigure}
784
\lipsum[2]
785
\end{ltgexample}
786
787
\subsection{Sub Figures}
788
789
An example of two sub figures is shown in \cref{fig:two_sub_figures}.
790
791
\begin{ltgexample}
792
\begin{figure}[!b]
793
\centering
794
\subfloat[Case I]{\includegraphics[width=.4\linewidth]{example-image-a}%
795
\label{fig:first_case}}
796
\hfil
797
\subfloat[Case II]{\includegraphics[width=.4\linewidth]{example-image-b}%
798
\label{fig:second_case}}
799
\caption{Example figure with two sub figures.}
800
\label{fig:two_sub_figures}
801
\end{figure}
802
\end{ltgexample}
803
804
\subsection{Tables}
805
806
\begin{ltgexample}
807
\begin{table}
808
\caption{Simple Table}
809
\label{tab:simple}
810
\centering
811
\begin{tabular}{ll}
812
\toprule
813
Heading1 & Heading2 \\
814
\midrule
815
One & Two \\
816
Thee & Four \\
817
\bottomrule
818
\end{tabular}
819
\end{table}
820
\end{ltgexample}
821
822
\begin{ltgexample}
823
% Source: https://tex.stackexchange.com/a/468994/9075
824
\begin{table}
825
\caption{Table with diagonal line}
826
\label{tab:diag}
827
\begin{center}
828
\begin{tabular}{|l|c|c|}
829
\hline
830
\diagbox[width=10em]{Diag \\Column Head I}{Diag Column\\Head II} & Second & Third \\
831
\hline
832
& foo & bar \\
833
\hline
834
\end{tabular}
835
\end{center}
836
\end{table}
837
\end{ltgexample}
838
839
840
\subsection{Source Code}
841
842
\begin{ltgexample}
843
\Cref{lst:XML} shows source code written in XML.
844
\Cref{line:comment} contains a comment.
845
846
\begin{lstlisting}[
847
language=XML,
848
caption={Example XML Listing},
849
label={lst:XML}]
850
<listing name="example">
851
<!-- comment --> (* \label{line:comment} *)
852
<content>not interesting</content>
853
</listing>
854
\end{lstlisting}
855
\end{ltgexample}
856
857
One can also add \verb+float+ as parameter to have the listing floating.
858
\Cref{lst:flXML} shows the floating listing.
859
860
\begin{ltgexample}
861
\begin{lstlisting}[
862
% one can adjust spacing here if required
863
% aboveskip=2.5\baselineskip,
864
% belowskip=-.8\baselineskip,
865
float,
866
language=XML,
867
caption={Example XML listing -- placed as floating figure},
868
label={lst:flXML}]
869
<listing name="example">
870
Floating
871
</listing>
872
\end{lstlisting}
873
\end{ltgexample}
874
875
One can also typeset JSON as shown in \cref{lst:json}.
876
877
\begin{ltgexample}
878
\begin{lstlisting}[
879
float,
880
language=json,
881
caption={Example JSON listing -- placed as floating figure},
882
label={lst:json}]
883
{
884
key: "value"
885
}
886
\end{lstlisting}
887
\end{ltgexample}
888
889
Java is also possible as shown in \cref{lst:java}.
890
891
\begin{ltgexample}
892
\begin{lstlisting}[
893
caption={Example Java listing},
894
label=lst:java,
895
language=Java,
896
float]
897
public class Hello {
898
public static void main (String[] args) {
899
System.out.println("Hello World!");
900
}
901
}
902
\end{lstlisting}
903
\end{ltgexample}
904
905
\subsection{Itemization}
906
907
One can list items as follows:
908
909
\begin{ltgexample}
910
\begin{itemize}
911
\item Item One
912
\item Item Two
913
\end{itemize}
914
\end{ltgexample}
915
916
917
One can enumerate items as follows:
918
919
\begin{ltgexample}
920
\begin{enumerate}
921
\item Item One
922
\item Item Two
923
\end{enumerate}
924
\end{ltgexample}
925
926
927
With paralist, one can even have all items typeset after each other and have them clean in the TeX document:
928
929
\begin{ltgexample}
930
\begin{inparaenum}
931
\item All these items...
932
\item ...appear in one line
933
\item This is enabled by the paralist package.
934
\end{inparaenum}
935
\end{ltgexample}
936
937
\subsection{Other Features}
938
939
\begin{ltgexample}
940
The words \enquote{workflow} and \enquote{dwarflike} can be copied from the PDF and pasted to a text file.
941
\end{ltgexample}
942
943
\begin{ltgexample}
944
The symbol for powerset is now correct: $\powerset$ and not a Weierstrass p ($\wp$).
945
946
$\powerset({1,2,3})$
947
\end{ltgexample}
948
949
\begin{ltgexample}
950
Brackets work as designed:
951
<test>
952
One can also input backticks in verbatim text: \verb|`test`|.
953
\end{ltgexample}
954
955
956
\section{Conclusion and Outlook}
957
\label{sec:outlook}
958
\lipsum[1-2]
959
960
\subsubsection*{Acknowledgments}
961
962
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}.
963
964
%%% ===============================================================================
965
%%% Bibliography
966
%%% ===============================================================================
967
968
\renewcommand{\bibsection}{\section*{References}} % requried for natbib to have "References" printed and as section*, not chapter*
969
% Use natbib compatbile splncs04nat style.
970
% It does provide all features of splncs04.bst, but is developed in a clean way.
971
% Source: https://github.com/tpavlic/splncs04nat
972
\bibliographystyle{splncs04nat}
973
\begingroup
974
\microtypecontext{expansion=sloppy}
975
\small % ensure correct font size for the bibliography
976
\bibliography{paper}
977
\endgroup
978
979
% Enfore empty line after bibliography
980
\ \\
981
%
982
\noindent
983
All links were last followed on October 5, 2020.
984
985
%%% ===============================================================================
986
%\appendix
987
%\addcontentsline{toc}{chapter}{APPENDICES}
988
989
%\listoffigures
990
%\listoftables
991
%%% ===============================================================================
992
993
%%% ===============================================================================
994
%\section{My first appendix}\label{sec:appendix1}
995
%%% ===============================================================================
996
\end{document}
997
998