forked from gi-ev/LNI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lni.dtx
3156 lines (2952 loc) · 84.1 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.0 (2017/04/07)
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.0 (2017/04/07)
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-2017 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>
[2017/11/08 v1.4BETA 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}
\newcommand*{\MiKTeX}{\hologo{MiKTeX}}
\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},
urlcolor=blue,%
linktoc=both,%
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}}
\makeatletter
\newcommand*\DescribeOption{%
\leavevmode%
\@bsphack%
\begingroup%
\MakePrivateLetters%
\Describe@Option%
}%
\newcommand*\Describe@Option[1]{%
\endgroup%
\marginpar{%
\raggedleft%
\PrintDescribeEnv{#1}%
}%
\SpecialOptionIndex{#1}%
\@esphack%
\ignorespaces%
}%
\newcommand*\SpecialOptionIndex[1]{%
\@bsphack%
\index{%
#1\actualchar{\protect\ttfamily#1} (option)\encapchar usage%
}%
\index{%
options:\levelchar#1\actualchar{\protect\ttfamily#1}%
\encapchar usage%
}%
\@esphack%
}%
\makeatother
\lstset{
basicstyle = \small\ttfamily,
gobble = 2,
keywordstyle = \color{blue}\bfseries,
language = [LaTeX]{TeX},
moretexcs = {,
addbibresource,authorrunning,%
email,lnidoi,
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 reagarding the running header
% and the captions: \cs{small} was redefined, so we need an \cs{oldsmall} here}
%
% \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 incoporate without changing the existing
% mechanisms too much.
%
% This is the first public release. I would to thank especially
% \href{https://github.com/koppor/}{Oliver Kopp} and
% \href{https://www.fernuni-hagen.de/evis/team/stefan.strecker.shtml}{Stefan
% Strecker} and his team for their suggestions and tests.
%
% \section{Installation}
% The \lni{} bundle is currently distributed via
% \href{https://github.com/gi-ev/LNI}{GitHub}, the
% \href{https://www.gi.de/service/publikationen/lni/autorenrichtlinien.html}
% {GI website} 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.
% \newpage
% \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.
%
% Please note, that the support of \hologo{XeLaTeX} and \hologo{LuaLaTeX} is
% only partial. For example the mono font is not the same. Moreover \hologo{pdfLaTeX}
% is a \TeX{} engine used by the publishers. Therefore it is strongly recommended
% to use \hologo{pdfLaTeX}.
%
% \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}\DescribeOption{latin1}\DescribeOption{applemac}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}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 \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\space(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}\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\space(new in v1.3, 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\space(new in v1.4)}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.
%
% \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.
%
% \subsection{Special meta data}\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 data to tell the editor, how
% to deal with a concrete document.
%
% A typical example looks like:
% \begin{examplecode}
% % !TeX program = pdflatex
% % !BIB program = bibtex8
% % !TeX encoding = UTF-8
% !TeX spellcheck = de_DE
% \documentclass[english]{lni}
% \end{examplecode}
%
% \subsection{Special macros for editors}
% \DescribeMacro{\startpage}\DescribeMacro{\editor}\DescribeMacro{\booktitle}%
% \DescribeMacro{\year}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
% \item\cs{year} can be used to set the year
% \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{substitle\marg{subtitle}}.
%
% \DescribeMacro{\author}\DescribeMacro{\email}\DescribeMacro{\footnote}%
% \DescribeMacro{\and}%
% The authors of an article are
% given using the standard \cs{author} macro. Multiple authors are separated
% by \cs{and}; affiliations have to be added with
% \cs{footnote\marg{affiliations}} where you can use
% \cs{email\marg{email address}} for the email address of an author:
% \begin{examplecode}[label={lst:author}]
% \author[Author 1 \and Author 2]{%
% Author 1\footnote{Affiliations including \email{email@author1}} \and%
% Author 2\footnote{Affiliations including \email{email@author2}}}
% \end{examplecode}
% In case the authors are too long for the page header, see
% \cref{sec:pageheader} of how to shorten the authors for the page header.
%
% \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 (semicolon plus space) automatically.
% \end{keywords}
% \end{examplecode}
%
% \subsection{Page header}\label{sec:pageheader}
% The template automatically sets the page headers according to the
% requirements of \LNI. From page~2 onwards, the title and the authors are
% printed. These information has to stay in one line. In case the title is too
% long, use the optional argument for \cs{title}:
% \begin{examplecode}
% \title[Short title]{Title}
% \end{examplecode}
%
% \DescribeMacro{\authorrunning}%
% In case there are many authors on a paper, they might not fit into the paper.
% For that purpose, additionally use \cs{authorrunning}:
% \begin{examplecode}
% \author[Firstname1 Lastname1 \and Firstname2 Lastname2%
% \and Firstname3 Lastname3]{Firstname1 Lastname1\footnote{...}%
% \and Firstname2 Lastname2\footnote{...}%
% \and Firstname3 Lastname3\footnote{...}}%
% \authorrunning{Lastname1 et al.}
% \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{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}
% If you need mathematics, you can load packages \pkg{amsmath} and \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 option
% \opt{biblatex} (cf.~\cref{sec:options}) you can easily switch to the modern
% \pkg{biblatex} package. 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}
% \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}}
\DeclareOption{utf8}{\PassOptionsToPackage{utf8}{inputenc}}
\DeclareOption{ansinew}{\PassOptionsToPackage{ansinew}{inputenc}}
\newif\iflnienglish
\lnienglishfalse
\DeclareOption{english}{\lnienglishtrue\@clearglobaloption{english}}
\newif\ifusehyperref
\usehyperreftrue
\DeclareOption{nohyperref}{\usehyperreffalse}
\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}
\newif\ifoldfonts
\oldfontsfalse
\DeclareOption{oldfonts}{\oldfontstrue\autofontsfalse}
\newif\ifautofonts
\autofontstrue
\ExecuteOptions{utf8}
\DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}}
\ProcessOptions\relax
%
\RequirePackage{iftex}
\ifPDFTeX
\RequirePackage{hyphsubst}
\HyphSubstIfExists{ngerman-x-latest}%
{\HyphSubstLet{ngerman}{ngerman-x-latest}%
\ClassInfo{lni}{Using latest German hyphenation patterns}}%
{\ClassWarning{lni}{Latest German hyphenation patterns could not be found!%
\MessageBreak If you write a German article you should check your%
installation}}%
\fi%
\LoadClass[10pt,twoside,a4paper,fleqn]{article}
\ifPDFTeX
\RequirePackage{cmap}
\RequirePackage{inputenc}
\RequirePackage[T1]{fontenc}
\fi%
%
\iflnienglish
\RequirePackage[ngerman,english]{babel}
\else
\RequirePackage[english,ngerman]{babel}
\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{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{texgyretrmes-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}%
\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}
% Support for CC icons
\RequirePackage{ccicons}
% Support for \cs{ifdefempty}
\RequirePackage{etoolbox}
% Satzspiegel
% \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]
{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\@rigyear/\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@
\def\@listi{\leftmargin\leftmargini
\topsep 4\p@ \@plus2\p@ \@minus2\p@
\parsep 2\p@ \@plus\p@ \@minus\p@
\itemsep \parsep}%
\belowdisplayskip \abovedisplayskip
}
\renewcommand\Large{\@setfontsize\Large{14}{17}}
% \end{macrocode}
% \begin{macrocode}
\RequirePackage[autostyle]{csquotes}
\ifusebiblatex
\RequirePackage[%
backend=biber,% UTF-8 support
style=LNI, % The GI style - see https://www.ctan.org/pkg/biblatex-lni
natbib=true % Required for \Citet
]{biblatex}[2016-09-15]% at least version 3.6 of biblatex is required.
% \end{macrocode}
% \begin{macro}{\citeauthor}
% \begin{macrocode}
% Enable hyperlinked authors when using \citeauthor
% Source: http://tex.stackexchange.com/a/75916/9075
\DeclareCiteCommand{\citeauthor}%
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}%
{\ifciteindex%
{\indexnames{labelname}}%
{}%
\printtext[bibhyperref]{\printnames{labelname}}}%
{\multicitedelim}%
{\usebibmacro{postnote}}%
% \end{macro}
% \begin{macrocode}
\fi%
% \end{macrocode}
% \begin{macrocode}
\RequirePackage{graphicx}
\RequirePackage{eso-pic}
\RequirePackage{grffile}
\RequirePackage{fancyhdr}
\RequirePackage{listings}
% \end{macrocode}
% We fix the basewidth for lstlistings:
% The default setting of listings with ``fixed columns'' has a space 0.6em
% wide, while the characters in TX Typewriter (as in Computer Modern
% Typewriter) are 0.5em wide.
% Source: https://tex.stackexchange.com/a/179072/9075
% \begin{macrocode}
\lstset{%
basicstyle=\ttfamily,%
columns=fixed,%
basewidth=.5em,%
xleftmargin=0.5cm,%
captionpos=b}%
% \end{macrocode}
% Ragged bottom -- verhindert die Ausdehnung der Seite = Veränderung der
% Abstände
% \begin{macrocode}
\def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil
\global\let\@textbottom\relax}}
% \end{macrocode}
% Seitenzahlen -- Größe der Box