-
Notifications
You must be signed in to change notification settings - Fork 33
/
lni.dtx
3370 lines (3164 loc) · 93.7 KB
/
lni.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% \iffalse meta-comment
%<*internal>
\iffalse
%</internal>
%<*internal>
\fi
\def\nameofplainTeX{plain}
\ifx\fmtname\nameofplainTeX\else
\expandafter\begingroup
\fi
%</internal>
%<*install>
\input docstrip.tex
\keepsilent
\askforoverwritefalse
\declarepreamble\bibtexengpre
lnig.bst
Lecture Notes in Informatics Style File (english)
Version 1.1 (2022/06/10)
The Style File is based on alpha.bst
This work may be freely used,
distributed and modified.
Modified files should be clearly indicated as such and renamed.
\endpreamble
\declarepreamble\bibtexgerpre
lnig.bst
Lecture Notes in Informatics Style File (german)
Version 1.1 (2022/06/10)
The Style File is based on alpha.bst
This work may be freely used,
distributed and modified.
Modified files should be clearly indicated as such and renamed.
\endpreamble
\declarepreamble\classpre
--------| -----------------------------------------------------------------
lni:| A class for submissions to the ``Lecture Notes in Informatics''
Author:| Martin Sievers
Email:| [email protected]
License:| Released under the LaTeX Project Public License v1.3c or later
See:| http://www.latex-project.org/lppl.txt
--------| -----------------------------------------------------------------
\endpreamble
\def\templatepre{%
\perCent\space !TeX encoding = UTF-8^^J%
\perCent\space !TeX program = pdflatex^^J%
\perCent\space !BIB program = bibtex^^J%
}
\def\templatepreger{%
\perCent\space !TeX encoding = UTF-8^^J%
\perCent\space !TeX spellcheck = de_DE^^J%
}
\postamble
Copyright (C) 2016-2024 by Gesellschaft für Informatik e.V. (GI)
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License (LPPL), either
version 1.3c of this license or (at your option) any later
version. The latest version of this license is in the file:
http://www.latex-project.org/lppl.txt
This work is "maintained" (as per LPPL maintenance status) by
Martin Sievers.
This work consists of the file lni.dtx
lni.ins
README.md
CHANGELOG.md
and the derived files lni.pdf
lni.cls
lni-author-template.tex
lni-paper-example-de.bib
lni-paper-example-de.tex
lni.bst
lnig.bst
\endpostamble
\usedir{tex/latex/lni}
\AddGenerationDate
\generate{
\usepreamble\classpre
\file{\jobname.cls}{\from{\jobname.dtx}{class}}
}
\usedir{bibtex/bst/lni}
\generate{
\usepreamble\bibtexengpre
\file{\jobname.bst}{\from{\jobname.dtx}{bibtex,eng}}
\usepreamble\bibtexgerpre
\file{lnig.bst}{\from{\jobname.dtx}{bibtex,ger}}
}
%</install>
%<install>\endbatchfile
%<*internal>
%%%\usedir{source/latex/lni}
%%%\generate{
%%%% \usepreamble\classpre
%%% \file{\jobname.ins}{\from{\jobname.dtx}{install}}
%%%}
\nopreamble\nopostamble
\usedir{doc/latex/lni}
\generate{
\usepreamble\templatepre
\file{lni-author-template.tex}{\from{\jobname.dtx}{template}}
}
\generate{
\file{lni-paper-example-de.bib}{\from{\jobname.dtx}{exampledebib}}
}
\generate{
\usepreamble\templatepreger
\file{lni-paper-example-de.tex}{\from{\jobname.dtx}{exampledetex}}
}
\ifx\fmtname\nameofplainTeX
\expandafter\endbatchfile
\else
\expandafter\endgroup
\fi
%</internal>
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{lni.dtx}
%</driver>
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{lni}
%<*class>
[2024/07/23 v1.10 Official class for submissions to the ``Lecture Notes
in Informatics'']
%</class>
%<*driver>
\documentclass[a4paper]{ltxdoc}
\usepackage[ngerman,english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage[scaled=0.8]{beramono}
\usepackage[%
final,%
tracking=smallcaps,%
expansion=alltext,%
protrusion=alltext-nott]{microtype}%
\SetTracking{encoding=*,shape=sc}{50}%
\usepackage{textcomp}
\usepackage{upquote}
\usepackage[final]{listings}
\usepackage{csquotes}
\usepackage[dvipsnames]{xcolor}
\usepackage{hologo}
\usepackage{dtxdescribe}
\usepackage[%
pdftitle={lni: Official LaTeX class for submissions to the ``Lecture Notes in
Informatics'', published by the ``Gesellschaft für Informatik e.\,V.'' (GI)},
pdfauthor={Martin Sievers and Oliver Kopp},
urlcolor=blue,%
linktoc=all,%
colorlinks=true]{hyperref}
\usepackage[nameinlink,capitalise]{cleveref}
\DeclareFontFamily{U}{MnSymbolC}{}
\DeclareSymbolFont{MnSyC}{U}{MnSymbolC}{m}{n}
\DeclareFontShape{U}{MnSymbolC}{m}{n}{
<-6> MnSymbolC5
<6-7> MnSymbolC6
<7-8> MnSymbolC7
<8-9> MnSymbolC8
<9-10> MnSymbolC9
<10-12> MnSymbolC10
<12-> MnSymbolC12%
}{}
\DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180}
\newcommand{\lni}{\texttt{lni}}
\newcommand{\LNI}{\emph{Lecture Notes in Informatics}}
\lstset{
basicstyle = \small\ttfamily,
gobble = 2,
keywordstyle = \color{blue}\bfseries,
language = [LaTeX]{TeX},
moretexcs = {,
addbibresource,authorrunning,%
email,lnidoi,affil,
ExecuteBibliographyOptions,includegraphics,printbibliography,
}
frame = single,
backgroundcolor = \color{yellow!60},
framesep = 5pt,
literate={Ö}{{\"O}}1 {Ä}{{\"A}}1 {Ü}{{\"U}}1 {ß}{{\ss}}1 {ü}{{\"u}}1 {ä}{{\"a}}1 {ö}{{\"o}}1
}%
\lstnewenvironment{examplecode}[1][]
{\lstset{#1}}
{}
\providecommand*\env[1]{\texttt{#1}}
\providecommand*\file[1]{\texttt{#1}}
\providecommand*\opt[1]{\texttt{#1}}
\providecommand*\pkg[1]{\textsf{#1}}
\OnlyDescription %nur Anleitung (ohne Index und History)
\CodelineIndex %kein Index wenn auskommentiert
\EnableCrossrefs %kein Index wenn auskommentiert
\RecordChanges %keine History wenn auskommentiert
\begin{document}
\DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
% \CheckSum{0}
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2017/04/07}{Official release of revised version}
% \changes{v1.1}{2017/04/08}{Added macros \cs{subtitle} and keyword delimiter
% \cs{add}}
% \changes{v1.1}{2017/04/08}{Fixed bug with \cs{Crefname}}
% \changes{v1.1}{2017/04/08}{Updated documentation and bundle structure}
% \changes{v1.1}{2017/04/12}{Changed spacing for \cs{subtitle}}
% \changes{v1.1}{2017/04/18}{Added check for ngerman-x-latest patterns}
% \changes{v1.1}{2017/04/19}{Added option \opt{crop}}
% \changes{v1.2}{2017/04/26}{Set option \opt{straighquotes} for \pkg{newtxtt}
% manually to gain compatibility with version prior to v1.05}
% \changes{v1.2}{2017/04/27}{Added \pkg{iftex} to check for pdflatex}
% \changes{v1.2}{2017/05/04}{Added (partial) support for XeTeX and LuaTeX}
% \changes{v1.3}{2017/05/04}{Added option \opt{nofonts} to suppress font
% loading completely}
% \changes{v1.3}{2017/05/08}{Changed syntax for \pkg{fontspec}}
% \changes{v1.4}{2017/05/27}{Added new macros taken from the EMISA class file}
% \changes{v1.4}{2017/05/27}{Added option \opt{oldfonts} to use a font package
% available}
% \changes{v1.4}{2017/07/26}{Added package \pkg{caption} and changed all
% \cs{fontsize} calls to nativ \LaTeX{} macros}
% \changes{v1.4}{2017/09/11}{Fixed basewidth for \env{lstlistings}}
% \changes{v1.4}{2017/09/29}{Fixed font size for \cs{Large}}
% \changes{v1.4}{2017/11/08}{Added full example for an article in German}
% \changes{v1.4}{2017/11/08}{Adapting captions of \env{lstlistings}}
% \changes{v1.4}{2017/11/08}{Fix font size bug regarding the running header
% and the captions: \cs{small} was redefined, so we need an \cs{oldsmall} here}
% \changes{v1.5}{2018/09/11}{Postpone loading of \pkg{cleveref}}
% \changes{v1.5}{2018/09/11}{Load \pkg{textcomp} by default and add option
% \opt{upquote} to \pkg{listings}}
% \changes{v1.5}{2019/02/13}{Fix layout for English texts}
% \changes{v1.5}{2019/02/13}{Changed \cs{refname} for English texts}
% \changes{v1.5}{2019/02/20}{New option \opt{norunningheads}}
% \changes{v1.6}{2019/04/18}{\cs{email} now generates a mailto: hyperlink}
% \changes{v1.6}{2019/04/23}{Global options are passed to article class}
% \changes{v1.6}{2019/09/14}{New macro \cs{booksubtitle}}
% \changes{v1.6}{2019/09/14}{Add option `driver=none` to `geometry` for better
% crop results}
% \changes{v1.6}{2019/09/14}{\cs{booktitle} now uses an optional argument for
% shorttitle}
% \changes{v1.6}{2019/09/14}{New macro \cs{booksubtitle}}
% \changes{v1.6}{2019/09/14}{\pkg{hypcap} is only loaded if \pkg{hyperref}
% has been loaded before.}
% \changes{v1.6}{2019/09/14}{\pkg{hyperref} is loaded without options to make
% it more compatible with other packages like \pkg{authorarchive}}
% \changes{v1.6}{2019/10/14}{Fix for BibTeX style}
% \changes{v1.6}{2019/10/14}{Add support for \pkg{selnolig}}
% \changes{v1.7}{2020/12/03}{Revert redefinition of \cs{year} after
% \cs{maketitle}}
% \changes{v1.7}{2021/03/02}{Fix setting of pdf metadata (#87)}
% \changes{v1.7}{2021/03/02}{Change loading of latest ngerman hyphenation
% patterns (#47)}
% \changes{v1.7}{2021/03/02}{Change \cs{year} to \cs{yearofpublication} to
% avoid problems (#85)}
% \changes{v1.8}{2022/06/10}{Improvements for documentation}
% \changes{v1.8}{2022/06/10}{Fix output error in bst files (#97)}
% \changes{v1.8}{2022/11/25}{Make class compatable with latest publisher requirements (#121)}
% \changes{v1.8}{2022/11/25}{Make usage of `hyperref` mandatory (#131)}
% \changes{v1.9}{2024/07/01}{Support multiple affiliations (#158)}
% \changes{v1.10}{2024/07/01}{Change font for URLs to text font and change footnote numbers to superscript}
% \changes{v1.10}{2024/07/23}{Fix support multiple affiliations (#173)}
%
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\newcommand,\newenvironment}
%
% \title{\textsf{lni} -- Official class for submissions to the\\%
% ``Lecture Notes in Informatics''\thanks{This file describes version
% \fileversion, last revised \filedate.}}
% \author{Martin Sievers\setcounter{footnote}{6}\thanks{Email:
% \date{Released \filedate}
%
% \maketitle
%
% \begin{abstract}
% \noindent After several years the \lni{} bundle has been updated. The
% resulting new version fixes some long-standing bugs, solves problems and
% supports modern packages like \pkg{biblatex} and \pkg{microtype}. It has been
% put into one DTX file to make maintaining and distributing via CTAN a bit
% easier.
% \end{abstract}
%
% \section{Introduction}
% \LaTeX{} templates are often long-lasting. Even if they use meanwhile
% deprecated packages they are often passed from one generation of authors to
% the next.
%
% The Gesellschaft für Informatik~e.\,V. (GI) thankfully realized, that their
% bundle should be technologically
% modernized while the general layout remains the same.
%
% Based on the existing class and bib files I set-up a DTX file and started
% reworking the source code. Editors and authors suggested different additions
% and changes, which I tried to incorporate without changing the existing
% mechanisms too much.
%
% There is an additional package
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}} for an easy
% way of getting a correctly formed bibliography. This package can be
% incorporated using the option \opt{biblatex}. See \cref{sec:bibliography} for
% more information.
%
% \section{Installation}
% The \lni{} bundle is currently distributed via
% \href{https://github.com/gi-ev/LNI}{GitHub} and (preferably) \href{https://www.ctan.org/pkg/lni}{CTAN}.
% The later is the basis for all updates of the two main \TeX{} distributions
% \MiKTeX{} and \TeX{}~Live. Thus the easiest way to get all files needed to
% typeset an article for the \LNI{} is to use the package manager of your
% distribution.
%
% For a manual installation please call \texttt{pdflatex lni.dtx} at least
% twice and
% copy all resulting files (cls, tex, pdf and bst) to your local TEXMF tree.
% Don't forget to update your file name database.
%
% \section{Usage}
% To use the predefined layout for a (German) submission to the \LNI{} just
% load the class file as usual with \cs{documentclass\{lni\}}.
%
% The class file loads a bunch of packages which are all part of modern \TeX{}
% distributions. Therefore, if you are confronted
% with a missing package, please try to download and install it using your
% distribution's package manager. Alternatively go to
% \href{http://www.ctan.org}{CTAN} to download missing packages.
%
% The \lni{} class can be used with \hologo{pdfLaTeX} as well as with
% \hologo{XeLaTeX} and \hologo{LuaLaTeX}. To achieve same results, the
% Type1-based packages \pkg{newtxtext}, \pkg{newtxmath} and \pkg{newtxtt}
% are used even for the unicode engines.
%
% \subsection{Options}\label{sec:options}
% Although the class file includes all layout information for a submission to
% the \LNI{}, there are options to adapt the output one way or another.
%
% \DescribeOption{english}A document loading the \lni{} class file uses German
% language adoptions by default. To switch to English, just load the class with
% option \opt{english}.
%
% The language influences not only the hyphenation patterns and terms used in
% the text, but also the choice of a corresponding \BibTeX{} file
% (cf.~\cref{sec:bibliography}).
%
% \DescribeOption{utf8 (deprecated in v1.8)}\DescribeOption{latin1 (deprecated in v1.8)}%
% \DescribeOption{applemac (deprecated in v1.8)}Although
% nowadays all major plattforms support and widely use UTF-8 encoding for
% text files, there might be some need to change the input encoding the
% \LaTeX{} document uses.
%
% This can be achieved by giving one of the options \opt{utf8} (which is the
% default), \opt{latin1} or \opt{applemac} to the document class. Using UTF-8
% is strongly recommended. Please note, that currently the bib file is supposed
% to use the same encoding.
%
% \DescribeOption{biblatex (deprecated in v1.8; will become default option in next major release)}%
% Nowadays bibliographies cannot only be produced with
% \BibTeX{}, but with a much more powerful approach consisting of the package
% \pkg{biblatex} and the tool \texttt{biber}.
%
% There is even a specialized package
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}} which is
% automatically used when setting the class option \opt{biblatex}. For more
% information see as well \cref{sec:bibliography}.
%
% \DescribeOption{crop (new in v1.1)}%
% Option \opt{crop} gives you some crop marks (using the package \pkg{crop}) to
% better illustrate the final
% result of your article.
%
% \DescribeOption{nocleveref}When referencing figures, one has to type
% \texttt{Figure\textasciitilde}\cs{ref\marg{label}}. The package \pkg{cleveref}
% reduces the effort by offering the command \cs{cref\marg{label}}. This can be
% used with all floating objects. The package is loaded as default. In case it
% causes issues, one can disable it using with the \opt{nocleveref} option.
%
% \DescribeOption{nohyperref (deprecated in v1.8)}\pkg{hyperref} is used for colored hyperlinks
% within the articles. If you consider problems or just do not want that
% feature, you can disable it by using the option \opt{nohyperref}.
%
% \DescribeOption{nofonts (deprecated in v1.4)}On old systems
% you might not have installed the New TX fonts. If for whatever reason the
% \opt{oldfonts} option
% does not work for you, you can activate option \opt{nofonts}. This allows to
% suppress font loading completely using the engines standard fonts instead.
% Usually there should be no need to do so. Please note, that your output will
% differ from the publishers'.
%
% \DescribeOption{oldfonts (deprecated in v1.8)}On older systems you might not
% have installed the New TX fonts. Therefore option \opt{oldfonts} allows to
% to load the package \pkg{mathptmx} instead of the New TX fonts. The output
% will be in accordance to (or at least near) the publisher's requirements.
%
% \DescribeOption{norunningheads (deprecated in v1.8)}By default there are no more
% running headers from your document.
%
% \DescribeOption{runningheads (new in v1.8)}Editors can turn on the running headers
% using option \opt{runningheads}.
%
% \DescribeOption{anonymous (new in v1.8)}To easily anonymize a paper for
% blind review, use this option. Then all author information will be replaced
% with a placeholder. Additionally, there is a new macro \cs{anon\marg{hide in review}}
% which will be replaced with ``ANONYMIZED'' if the option is set.
% Also, \cs{anon\oarg{for review}\marg{for final version}} can be used that outputs ``for review''
% if the option is set, and ``for final version'' otherwise.
%
% \newpage
% \section{Setting up a document}
% You can use the file \file{lni-author-template.tex} as a starting point
% for setting up a document for submission. The \lni{} class uses the standard
% ways to build an article. A larger German example can be found in \file{lni-paper-example-de.tex}
%
% \subsection{Special meta comments}\label{sec:metadata}
% There is not just one \enquote{\TeX} and one \enquote{bibliography tool}, but
% many different ways to transform a .tex file into a PDF.
% Some \TeX{} editors like \texttt{TeXstudio}, \texttt{TeXmaker} and
% \texttt{TeXshop} support a special set of meta comments to give some
% information, how to deal with a concrete document.
%
% A typical example looks like:
% \begin{examplecode}
% % !TeX program = pdflatex
% % !BIB program = biber
% % !TeX encoding = UTF-8
% % !TeX spellcheck = en_US
% \documentclass[english]{lni}
% \end{examplecode}
%
% \subsection{Special macros for editors}
% \DescribeMacro{\startpage}\DescribeMacro{\editor}%
% \DescribeMacro{\booktitle\space(changed in v1.6)}%
% \DescribeMacro{\booksubtitle\space(new in v1.6)}%
% \DescribeMacro{\yearofpublication\space(new in v1.7)}In addition to the macros stated in
% \cref{sec:titlepage} for authors, there are special editor macros to
% influence the layout of the article:
% \begin{itemize}
% \item\cs{startpage} determines the starting page of the article. This
% should always be an odd (right) page.
% \item\cs{editor} states the name of the editor(s)
% \item\cs{booktitle} holds the name of a conference (optional argument for
% a short title used in the running headers)
% \item\cs{booksubtitle} holds an optional subtitle of a conference
% \item\cs{yearofpublication} can be used to set the year of publication
% \end{itemize}
%
% \subsection{Title page}\label{sec:titlepage}
% \DescribeMacro{\title}%
% \DescribeMacro{\subtitle\space(new in v1.1)}%
% The title of your work is given using the \cs{title} macro. In addition to
% the title itself, you can add a short title to be used
% in the header of a page:
% \begin{examplecode}[label={lst:title}]
% \title[Short title]{Title}
% \end{examplecode}
%
% You can also add a subtitle by \cs{subtitle\marg{subtitle}}.
%
% \DescribeMacro{\author}\DescribeMacro{\email}\DescribeMacro{\footnote\space(deprecated in v1.8)}%
% \DescribeMacro{\and\space(deprecated in v1.8)}\DescribeMacro{\affil}%
% The authors of an article are
% given using an extended \cs{author} macro, which holds not only the name, but also
% email adress and ORCID iD. Moreover the affiliation marker (number) is given as an optional
% argument. Affiliations are added with
% \cs{affil\oarg{number}\marg{information}} where you can use
% \texttt{\textbackslash\textbackslash} to split the address.
% \begin{examplecode}[label={lst:author}]
% \author[1,2]{Firstname1 Lastname1}{[email protected]}{0000-0000-0000-0000}
% \author[2]{Firstname2 Lastname2}{[email protected]}{0000-0000-0000-0000}
% \author[3]{Firstname3 Lastname3}{[email protected]}{0000-0000-0000-0000}
% \author[1]{Firstname4 Lastname4}{[email protected]}{0000-0000-0000-0000}%
% \affil[1]{Universität 1\\Abteilung\\Straße\\Postleitzahl Ort\\Land}
% \affil[2]{University 2 \\Department\\Address\\Country}
% \affil[3]{University 3\\Department\\Address\\Country}
% \end{examplecode}
%
% Leave the third and/or fourth argument empty if there is no email address and/or ORCID iD.
% Finally \cs{maketitle} will output the formatted title page.
%
% \DescribeMacro{\lnidoi\space(new in v1.2)}%
% LNI provides a DOI for each paper. In case, the DOI is known, it can be
% specified using the \cs{lnidoi} macro.
% \begin{examplecode}[label={lst:lnidoi}]
% \lnidoi{18.18420/se2016_01}
% \end{examplecode}
%
% Finally \cs{maketitle} will output the formatted title page.
%
% \subsection{Abstract and keywords}
% \DescribeEnv{abstract}\DescribeEnv{keywords}%
% \DescribeMacro{\and\space(new in v1.1)}%
% Each article should start with a short (70 to 150 words) abstract and some
% keywords. Please use the environments \env{abstract} and \env{keywords} for
% that purpose:
% \begin{examplecode}
% \begin{abstract}
% Tell the reader what your article is about
% \end{abstract}
% \begin{keywords}
% Give some keywords to categorize your article. You can use \and between two
% keywords to get the correct delimiter (comma plus space) automatically.
% \end{keywords}
% \end{examplecode}
%
% \subsection{Main text}
% \subsubsection{Headings}
% \DescribeMacro{\section}\DescribeMacro{\subsection}%
% \DescribeMacro{\subsubsection}
% You can use the standard macros \cs{section}, \cs{subsection}, \dots{} for
% sectioning your text.
%
% \subsubsection{Footnotes}
% \DescribeMacro{\footnote}%
% For adding a footnote, just use \cs{footnote\marg{footnote text}} where
% needed. Please note, that the footnote counter is automatically set to the
% correct value at the beginning of your text, i.\,e. it respects the number
% of affiliations given on the title page.
%
% \subsubsection{Lists}
% \DescribeEnv{itemize}\DescribeEnv{enumerate}%
% The \lni{} class redefines the standard lists environments \env{itemize} and
% \env{enumerate} to meet the requirements of the \LNI{}.
%
% Lists can be filled as usual by adding \cs{item} macros.
%
% \subsubsection{Floating objects}
% \DescribeEnv{figure}\DescribeEnv{table}%
% The environments \env{figure} and \env{table} can be used the standard way to
% include graphics or tables resp.
%
% However, please note, that the default placement parameters are changed to
% \opt{htbp} by the class \lni{}. If you need some local adjustment, please use
% the optional argument of both environments (cf.~Listing~\ref{lst:figure}).
%
% \DescribeMacro{\caption}\DescribeMacro{\label}
% A caption should be added by \cs{caption\marg{caption text}}, followed
% immediately by a \cs{label\marg{unique label}} entry.
% \begin{examplecode}[label={lst:figure}]
% \begin{figure}[tb]
% \includegraphics{...}
% \caption{...}
% \label{...}
% \end{figure}
% \end{examplecode}
%
% If you want to center floats, please \emph{do not} use the \env{center}
% environment, but the macro \cs{centering}, which does not add extra white
% space (cf.~Listing~\ref{lst:table}).
% \begin{examplecode}[label={lst:table}]
% \begin{table}
% \centering
% \begin{tabular}{lll}
% ...
% \end{tabular}
% \caption{...}
% \label{...}
% \end{table}
% \end{examplecode}
%
% \subsubsection{\texorpdfstring{Listings\,/\,Source code}%
% {Listings/Source code}}
% The \lni{} bundle loads the \pkg{verbatim} and \pkg{listings} package. While
% the former is there for compatability, the later is the standard way of
% integrating source code listings into a \LaTeX{} document.
%
% However, there are currently no config files shipped with the \lni{} bundle.
% Please consult the documentation for help on setting up \pkg{listings} for a
% specific programming language.
%
% \subsubsection{Math}
% For writing mathematics the package \pkg{amsmath} is already loaded by default.
% In addtion you can load e.g. \pkg{mathtools} for
% additional features. The \lni{} class offers by default the command
% \cs{powerset} to render the powerset symbol correctly as $\powerset$ and not
% as Weierstrass p ($\wp$).
%
% \subsubsection{Abbreviations and initialisms}
% \DescribeMacro{\eg}\DescribeMacro{\ie}\DescribeMacro{\cf}%
% \DescribeMacro{\etal}%
% To achieve consistent typesetting of common abbreviations, macros are
% predefined by the class. These macros should \emph{consistently} being used
% instead of writing the plain version. For example use \verb|\eg| rather than
% {\verb|e.g.,|}. The macros take care of spacing within and after the
% abbreviations.
% \begin{itemize}
% \item \cs{eg} for e.\,g.
% \item \cs{ie} for i.\,e.
% \item \cs{cf} for cf.
% \item \cs{etal} for et~al.
% \end{itemize}
%
% \DescribeMacro{\OMG}\DescribeMacro{\BPM}\DescribeMacro{\BPMN}\DescribeMacro{\UML}%
% In addition to common abbreviations, further initialisms are provided by the
% class for convenience and for a consistent visual appearance. Note that the
% class uses \textsc{smallcaps} for typesetting initialisms. The list of
% predefined initialisms comprises:
%
% \begin{itemize}
% \item \cs{OMG} for \textsc{omg} (Object Management Group).
% \item \cs{BPM} for \textsc{bpm} (Business Process Management).
% \item \cs{BPMN} for \textsc{bpmn} (Business Process Model and Notation).
% \item \cs{BPEL} for \textsc{bpel} (Business Process Execution Language).
% \item \cs{UML} for \textsc{uml} (Unified Modelling Language).
% \end{itemize}
%
% \DescribeMacro{\lniinitialism} You can add your own initialisms by stating
% \cs{lniinitialism\marg{\textbackslash initialism\_macro}\marg{text}} in the
% preamble.
%
% \subsection{Bibliography}\label{sec:bibliography}
% \enlargethispage{\baselineskip}The old \lni{} class file only supports
% \BibTeX{} with bst files for German
% and English submissions resp. If you want to use this approach for your
% article you have to add \cs{bibliography\marg{Bib file}} at an appropriate
% position within your text. The correct bst file is loaded automatically.
%
% With document option
% \opt{biblatex} (cf.~\cref{sec:options}) you can easily switch to the
% \pkg{biblatex} style \enquote{lni} provided by
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}}.
% However, you have to add information on the bib
% file(s) in your preamble using \cs{addbibresource\marg{Bib file(s)}} and call
% \cs{printbibliography} where you want the bibliography to appear.
%
% Please note, that the \lni{} class sets
% \texttt{biber} as the default bibliography tool. \texttt{biber} is part of
% both major \TeX{} distributions and can easily be used within most \TeX{}
% editors, e.\,g. by using special meta data as described in
% \cref{sec:metadata}.
%
% If you want to pass settings to \pkg{biblatex} you can use a config
% file \texttt{biblatex.cfg}, for additional options please use the macro
% \cs{ExecuteBibliographyOptions}. Please consult the
% \href{http://texdoc.net/pkg/biblatex}{package's documentation} for
% more information.
% \begin{examplecode}
% % !TeX program = pdflatex
% % !BIB program = biber
% \documentclass[biblatex]{lni}
% ...
% \ExecuteBibliographyOptions{...}
% \addbibresource{FILENAME.bib}
% ...
% \begin{document}
% ...
% \printbibliography
% ...
% \end{document}
% \end{examplecode}
%
% \section{Trouble shooting}
% This section lists the most common issues when using this template. For more
% help, please head to
% \href{https://github.com/egeerardyn/awesome-LaTeX/blob/master/README.md}%
% {the awesome \LaTeX{} list}.
%
% \begin{itemize}
% \item If the compiler error is\\
% \texttt{!pdfTeX error (font expansion): auto
% expansion is only possible with scalable fonts.},\\%
% then you have to install the
% \pkg{cm-super} package. Afterwards, run \texttt{initexmf --mkmaps} on the
% command line. A longer discussion is available at
% \url{http://tex.stackexchange.com/a/324972/9075}.
% \item If the compiler error is\\
% \texttt{!LaTeX Error: Command \textbackslash
% openbox already defined.},\\
% insert\\
% \cs{let}\cs{openbox}\cs{relax} before \cs{usepackage\{amsthm\}}.
% \item If the compiler error is\\
% \texttt{!Undefined control sequence. l.84
% \textbackslash ulp@afterend},\\
% just clean up (remove \texttt{paper.aux}) and recompile.
% \item If the compiler error is\\
% \texttt{!Package xkeyval Error: 'family\_i'
% undefined in families blx@opt@name}\\\texttt{part'.},\\
% it is an indicator that you
% switched from \BibTeX{} to \pkg{biblatex}. Clean up (remove
% \texttt{paper.bbl}) and recompile.
% \item Errors with \BibTeX: The bst files may still report errors, although
% the output is okay. This will be solved as soon as possible. However, you
% might consider switching to \pkg{biblatex} (cf.~\cref{sec:bibliography}).
% \end{itemize}
%
% \section{Bugs and feature request}
% If you find a bug or have a feature request, please open an ``issue'' at the
% \href{https://github.com/gi-ev/LNI/issues}{GitHub website}.
%
% \StopEventually{^^A
% \PrintChanges
% \PrintIndex
% }
%
% \section{Implementation}
%
% \begin{macrocode}
%<*class>
% \end{macrocode}
% We have to make sure, that pdf is always written (arXiv's requirements)
% \begin{macrocode}
\RequirePackage{iftex}\ifluatex\else\pdfoutput=1\fi%
% \end{macrocode}
% \begin{macrocode}
\def\@clearglobaloption#1{%
\def\@tempa{#1}%
\def\@tempb{\@gobble}%
\@for\next:=\@classoptionslist\do
{\ifx\next\@tempa
\message{Cleared option \next\space from global list}%
\else
\edef\@tempb{\@tempb,\next}%
\fi}%
\let\@classoptionslist\@tempb
\expandafter\ifx\@tempb\@gobble
\let\@classoptionslist\@empty
\fi}
%
\DeclareOption{latin1}{%
\PassOptionsToPackage{latin1}{inputenc}
\ClassNoteNoLine{lni}{The option `latin1` will be removed from the class with the next major release}}
\DeclareOption{utf8}{%
\PassOptionsToPackage{utf8}{inputenc}
\ClassNoteNoLine{lni}{The option `utf8` will be removed from the class with the next major release as it is the only valid value}}
\DeclareOption{ansinew}{%
\PassOptionsToPackage{ansinew}{inputenc}
\ClassNoteNoLine{lni}{The option `ansinew` will be removed from the class with the next major release}}
\newif\iflnienglish
\lnienglishfalse
\DeclareOption{english}{\lnienglishtrue\@clearglobaloption{english}}
\newif\ifusehyperref
\usehyperreftrue
\DeclareOption{nohyperref}{%
\ClassWarningNoLine{lni}{The option `nohyperref` has been deactivated and will be removed from the class with the next major release}}
\newif\ifusecleveref
\useclevereftrue
\DeclareOption{nocleveref}{\useclevereffalse}
\newif\ifusebiblatex
\usebiblatexfalse
\DeclareOption{biblatex}{\usebiblatextrue}
\newif\ifcrop
\cropfalse
\DeclareOption{crop}{\croptrue}
\newif\ifnofonts
\nofontsfalse
\DeclareOption{nofonts}{%
\nofontstrue\autofontsfalse
\ClassNoteNoLine{lni}{The option `nofonts` will be removed from the class with the next major release}}
\newif\ifoldfonts
\oldfontsfalse
\DeclareOption{oldfonts}{%
\oldfontstrue\autofontsfalse
\ClassNoteNoLine{lni}{The option `oldfonts` will be removed from the class with the next major release}}
\newif\ifautofonts
\autofontstrue
\newif\ifnorunningheads
\DeclareOption{norunningheads}{%
\norunningheadstrue
\ClassNoteNoLine{lni}{The option `norunningheads` will be removed from the class with the next major release}}
\newif\ifrunningheads
\DeclareOption{runningheads}{\norunningheadsfalse}
\newif\ifanonymous
\anonymousfalse
\DeclareOption{anonymous}{\anonymoustrue}
\newcommand{\anon}[2][\iflnienglish ANONYMIZED\else ANONYMISIERT\fi]{%
\ifanonymous%
{\color{orange}#1}%
\else%
#2%
\fi}
\ExecuteOptions{utf8,norunningheads}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
% \end{macrocode}
% \changes{v1.8}{2023/11/06}{Fix option handling for \opt{fleqn}}
% \begin{macrocode}
\PassOptionsToPackage{fleqn}{amsmath}
\LoadClass[10pt,twoside,a4paper]{article}
\ifPDFTeX
\RequirePackage{cmap}
\RequirePackage{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[full]{textcomp}
\fi%
%
\iflnienglish
\RequirePackage[ngerman,english]{babel}
\else
\RequirePackage[english,ngerman]{babel}
\babelprovide[hyphenrules=ngerman-x-latest]{ngerman}
\ClassInfo{lni}{Using latest German hyphenation patterns}%
\fi%
% Hint by http://tex.stackexchange.com/a/321067/9075 -> enable "= as dashes
\useshorthands*{"}
\addto\extrasenglish{\languageshorthands{ngerman}}
% \end{macrocode}
% Define a modern variant of Times as the main font
% \begin{macrocode}
\ifautofonts
\ClassInfo{lni}{*******************************************************}
\MessageBreak
\ClassInfo{lni}{Checking for fonts ...}
\ClassInfo{lni}{*******************************************************}
\ifPDFTeX
\IfFileExists{newtxtext.sty}
{%
\RequirePackage[defaultsups]{newtxtext}
\RequirePackage{newtxmath}
\RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
% \end{macrocode}
% For compatibility with version of \pkg{newtxtt} prior to v1.05 we set the
% option \opt{straightquotes} manually for recent versions
% \begin{macrocode}
\@ifpackagelater{newtxtt}{2014/11/18}%
{\txtt@upqtrue}%
{\ClassWarning{lni}{You are using an old version of
`newtxtt'.\MessageBreak
Option `straightquotes' will not be used!}}%
% \end{macrocode}
% \begin{macrocode}
}%
{\IfFileExists{mathptmx.sty}
{\oldfontstrue}%
{\nofontstrue}%
}%
% \end{macrocode}
% for \hologo{XeTeX} or \hologo{LuaTeX} we use \pkg{fontspec}
% \begin{macrocode}
\else%
\IfFileExists{newtxmath.sty}
{\RequirePackage{newtxmath}}%
{}%
\RequirePackage[no-math]{fontspec}
\IfFontExistsTF{texgyretermes-regular.otf}
{%
\setmainfont{texgyretermes}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
Ligatures=TeX
]
}%
{\IfFileExists{mathptmx.sty}
{\oldfontstrue}%
{\nofontstrue}%
}%
\fi%
\fi%
\ifoldfonts
\RequirePackage{mathptmx}
\else%
\ifnofonts % nofonts activated
\ClassWarning{lni}{Option `nofonts' set! I will use standard fonts
\MessageBreak
instead of the New TX fonts. Your document will NOT look like the
\MessageBreak
final result for publication. This should only be used if you have
\MessageBreak
no possibility to install fonts or upgrade your TeX installation!}%
\fi%
\fi%
% \begin{macrocode}
\ifPDFTeX
\RequirePackage[%
final,%
tracking=smallcaps,%
expansion=alltext,%
protrusion=alltext-nott]{microtype}%
\else
\RequirePackage[%
final,%
protrusion=alltext-nott]{microtype}%
% \end{macrocode}
% When using \hologo{LuaLaTeX} we can activate \pkg{selnolig}
% \begin{macrocode}
\ifluatex
\iflnienglish
\RequirePackage[english]{selnolig}%
\else
\RequirePackage[ngerman]{selnolig}%
\fi%
\fi%
\fi%
\SetTracking{encoding=*,shape=sc}{50}%
% \end{macrocode}
% Introduce \cs{powerset} - hint by \url{http://matheplanet.com/matheplanet/nuke/html/viewtopic.php?topic=136492&post_id=997377}
% \begin{macrocode}
\DeclareFontFamily{U}{MnSymbolC}{}
\DeclareSymbolFont{MnSyC}{U}{MnSymbolC}{m}{n}
\DeclareFontShape{U}{MnSymbolC}{m}{n}{
<-6> MnSymbolC5
<6-7> MnSymbolC6
<7-8> MnSymbolC7
<8-9> MnSymbolC8
<9-10> MnSymbolC9
<10-12> MnSymbolC10
<12-> MnSymbolC12%
}{}
\DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180}
% \end{macrocode}
% \changes{v1.8}{2023/11/06}{Remove support for ccicons}
% \begin{macrocode}
% Support for \cs{ifdefempty}
\RequirePackage{etoolbox}
% \end{macrocode}
% \begin{macrocode}
\newlength{\doihoffset}
\newlength{\doivoffset}
\ifcrop
\RequirePackage[
paperheight=23.5cm,paperwidth=15.5cm,
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering,
driver=none]
{geometry}
\RequirePackage[a4,center,cam,info]{crop}
\renewcommand*\CROP@@info{{%
\global\advance\CROP@index\@ne
\def\x{\discretionary{}{}{\hbox{\kern.5em---\kern.5em}}}%
\advance\paperwidth-20\p@
\dimen@4pt
\ifx\CROP@pagecolor\@empty
\else
\advance\dimen@\CROP@overlap
\fi
\hb@xt@\z@{%
\hss
\vbox to\z@{%
\centering
\hsize\paperwidth
\vss
\normalfont
\normalsize
\expandafter\csname\CROP@font\endcsname{%
``\jobname''\x
\the\year/\the\month/\the\day\x
\CROP@time\x
page\kern.5em\thepage\x
\#\the\CROP@index
\strut
}%
\vskip\dimen@
}%
\hss
}%
}}%
\setlength{\doihoffset}{1.45cm}
\setlength{\doivoffset}{1.2cm}
\else
\RequirePackage[
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\setlength{\doihoffset}{4.2cm}
\setlength{\doivoffset}{4.3cm}
\fi%
% \end{macrocode}
% We change \cs{small} and \cs{Large} to get the correct baseline skips and add
% an \cs{oldsmall}
% \begin{macrocode}
\let\oldsmall\small%
\renewcommand\small{%
\@setfontsize\small\@ixpt{10}%
\abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
\abovedisplayshortskip \z@ \@plus2\p@
\belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@