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