forked from latextemplates/LNCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlncs_as.sty
129 lines (115 loc) · 3.25 KB
/
lncs_as.sty
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
% Meta data
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lncs_as}[2022/05/17 Cover for seminar papers at IPVS/AS]
% Dependencies
\RequirePackage{graphicx} % Frontpage logo
\RequirePackage{floatflt} % Frontpage logo
\RequirePackage{kvoptions} % Key value options
\RequirePackage{ifthen} % Conditional expressions
% Configure key value options
\SetupKeyvalOptions{
family=SemCov,
prefix=SemCov@
}
% List of options
\DeclareStringOption[Title not set!]{title} % Title of the seminar paper
\DeclareStringOption[\SemCov@title]{shortTitle} % Short title of the seminar paper
\DeclareStringOption[Author not set!]{author} % Author of the seminar paper
\DeclareStringOption[Email not set!]{email} % Email address of the author
\DeclareStringOption[Seminar name not set!]{seminarName} % Name or topic of the seminar
\DeclareStringOption[Semester not set!]{semester} % Semester of the seminar course
\DeclareStringOption[Deadline not set!]{deadline} % Deadline for the seminar paper
\DeclareStringOption[Supervisor not set!]{supervisor} % Name of the supervisor
\DeclareStringOption[Link date not set!]{linkDate} % Date when the links were checked for the last time
\DeclareBoolOption[false]{isGerman} % Whether German is used instead of English
% Process options
\ProcessKeyvalOptions*
% German labels
\def\labelsGerman{
\gdef\@labelUniversity{Universität Stuttgart}%
\gdef\@labelInstitute{Institut für Parallele und Verteilte Systeme}%
\gdef\@labelDepartment{Anwendersoftware}%
\gdef\@labelSeminar{Seminararbeit}%
\gdef\@labelSupervisor{Betreuer/in}%
\gdef\@labelLinks{Alle Links wurden zuletzt am \SemCov@linkDate\ geprüft.}
}
% English labels
\def\labelsEnglish{
\gdef\@labelUniversity{University of Stuttgart}%
\gdef\@labelInstitute{Institute for Parallel and Distributed Systems}%
\gdef\@labelDepartment{Application Software}%
\gdef\@labelSeminar{Seminar Paper}%
\gdef\@labelSupervisor{Supervisor}%
\gdef\@labelLinks{All links were last followed on \SemCov@linkDate.}
}
% Select the correct language
\ifthenelse{\boolean{SemCov@isGerman}}{\labelsGerman}{\labelsEnglish}
% Front page
\newcommand{\CoverPage}{%
\thispagestyle{empty}
\begin{floatingfigure}[l]{32mm}
\includegraphics[width=3cm]{ipvs_logo.png}
\vspace{10cm}
\includegraphics[width=3.5cm]{as_logo.png}
\end{floatingfigure}
\ \vspace{-2.2em}
\begin{flushright}
{\sf
{\LARGE
\@labelUniversity\\
\ }
\vspace{1.8em}
{\large
\\\@labelInstitute\\
\ }
{\bfseries
{\large
\@labelDepartment\\
\ }
}
\vspace{8em}
{\LARGE
\\\SemCov@title\\
\ }
\vspace{1.5em}
{\bfseries
{\large
\\\@labelSeminar\\
\ }
}
{\large
\\\SemCov@seminarName\ (\SemCov@semester)\\
\ }
{\large
\\\@labelSupervisor:\ \SemCov@supervisor\\
\ }
\vspace{1.5em}
{\bfseries
{\large
\\\SemCov@author\\
\ }
}
\vfill
{\large
\SemCov@deadline\\
\ }
}
\end{flushright}
\newpage
}
% Title header
\newcommand{\Title}{%
\title{\SemCov@title}
\titlerunning{\SemCov@shortTitle}
\author{\SemCov@author}
\institute{\email{\SemCov@email}}
\thispagestyle{empty}
\cleardoublepage
\maketitle
}
% Bibliography section
\newcommand{\BibliographySection}{%
\bibliographystyle{splncs04}
\bibliography{bibliography}
\@labelLinks
}