-
Notifications
You must be signed in to change notification settings - Fork 0
/
agdsn-brief.cls
executable file
·179 lines (171 loc) · 5.9 KB
/
agdsn-brief.cls
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{agdsn-brief}[2015/12/02 v1.1]
\RequirePackage{kvoptions}
% AG DSN Global
\newcommand\agdsn@global{%
\setkomavar{agdsn_division}{}%
\setkomavar{agdsn_account}{3120219540}%
\setkomavar{agdsn_blz}{850 503 00}%
\setkomavar{agdsn_iban}{DE61 8505 0300 3120 2195 40}%
\setkomavar{agdsn_bic}{OSDDDE81XXX}%
\setkomavar{agdsn_email}{[email protected]}%
\setkomavar{agdsn_url}{\url{https://agdsn.de}}%
\setkomavar{agdsn_address}{%
StuRa der TU Dresden\\%
%AG DSN\\%
Helmholtzstra{\ss}e 10\\%
01069 Dresden%
}%
\setkomavar{agdsn_logo}{\includegraphics[width=.5\textwidth]{agdsn_logo}}%
}%
% Sektion Borsbergstrasse
\newcommand\agdsn@borsbergstrasse{%
\setkomavar{agdsn_division}{Sektion Borsbergstra{\ss}e}%
\setkomavar{agdsn_account}{3120219540}%
\setkomavar{agdsn_blz}{85050300}%
\setkomavar{agdsn_iban}{DE61850503003120219540}%
\setkomavar{agdsn_bic}{OSDDDE81XXX}%
\setkomavar{agdsn_email}{[email protected]}%
\setkomavar{agdsn_url}{\url{https://www.agdsn.de}}%
\setkomavar{agdsn_address}{Borsbergstra{\ss}e 34\\01309 Dresden}%
\setkomavar{agdsn_logo}{\includegraphics[width=.5\textwidth]{borsbergstrasse_logo}}%
}%
% Sektion Gerokstrasse
\newcommand\agdsn@gerokstrasse{%
\setkomavar{agdsn_division}{Sektion Gerokstra{\ss}e}%
\setkomavar{agdsn_account}{3120230811}%
\setkomavar{agdsn_blz}{85050300}%
\setkomavar{agdsn_iban}{DE33850503003120230811}%
\setkomavar{agdsn_bic}{OSDDDE81XXX}%
\setkomavar{agdsn_email}{[email protected]}%
\setkomavar{agdsn_url}{\url{https://www.agdsn.de}}%
\setkomavar{agdsn_address}{Gerokstra{\ss}e 38\\01307 Dresden}%
\setkomavar{agdsn_logo}{\includegraphics[width=.5\textwidth]{gerokstrasse_logo}}%
}%
% Sektion Hochschulstrasse
\newcommand\agdsn@hochschulstrasse{%
\setkomavar{agdsn_division}{Sektion Hochschulstra{\ss}e}%
\setkomavar{agdsn_account}{3120241937}%
\setkomavar{agdsn_blz}{85050300}%
\setkomavar{agdsn_iban}{DE40850503003120241937}%
\setkomavar{agdsn_bic}{OSDDDE81XXX}%
\setkomavar{agdsn_email}{[email protected]}%
\setkomavar{agdsn_url}{\url{http://www.agdsn.de}}%
\setkomavar{agdsn_address}{Hochschulstra{\ss}e 48\\01069 Dresden}%
\setkomavar{agdsn_logo}{\includegraphics[width=.5\textwidth]{hochschulstrasse_logo}}%
}%
% Sektion Wundtstrasse
\newcommand\agdsn@wundtstrasse{%
\setkomavar{agdsn_division}{Sektion Wundtstra{\ss}e}%
\setkomavar{agdsn_account}{3120219540}%
\setkomavar{agdsn_blz}{85050300}%
\setkomavar{agdsn_iban}{DE61850503003120219540}%
\setkomavar{agdsn_bic}{OSDDDE81XXX}%
\setkomavar{agdsn_email}{[email protected]}%
\setkomavar{agdsn_url}{\url{https://www.agdsn.de}}%
\setkomavar{agdsn_address}{Wundtstra{\ss}e 5\\01217 Dresden}%
\setkomavar{agdsn_logo}{\includegraphics[width=.5\textwidth]{wundtstrasse_logo}}%
}%
% Sektion Zeunerstrasse
\newcommand\agdsn@zeunerstrasse{%
\setkomavar{agdsn_division}{Sektion Zeunerstra{\ss}e}%
\setkomavar{agdsn_account}{3120219540}%
\setkomavar{agdsn_blz}{85050300}%
\setkomavar{agdsn_iban}{DE61850503003120219540}%
\setkomavar{agdsn_bic}{OSDDDE81XXX}%
\setkomavar{agdsn_email}{[email protected]}%
\setkomavar{agdsn_url}{\url{https://www.agdsn.de}}%
\setkomavar{agdsn_address}{Zeunerstra{\ss}e 1f\\01069 Dresden}%
\setkomavar{agdsn_logo}{\includegraphics[width=.5\textwidth]{zeunerstrasse_logo}}%
}%
\let\agdsn@setup\agdsn@global%
\DeclareOption{borsbergstrasse}{%
\let\agdsn@setup\agdsn@borsbergstrasse%
}%
\DeclareOption{gerokstrasse}{%
\let\agdsn@setup\agdsn@gerokstrasse%
}%
\DeclareOption{hochschulstrasse}{%
\let\agdsn@setup\agdsn@hochschulstrasse%
}%
\DeclareOption{wundtstrasse}{%
\let\agdsn@setup\agdsn@wundtstrasse%
}%
\DeclareOption{zeunerstrasse}{%
\let\agdsn@setup\agdsn@zeunerstrasse%
}%
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{scrlttr2}}
\ProcessOptions
\ProcessKeyvalOptions*
\LoadClass[
paper=a4,%
version=last,%
fromalign=right,%
fromrule=on,
fromlogo=true,%
fromurl=true,%
fromemail=true,%
fontsize=12pt,%
parskip=full%
]{scrlttr2}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{tgheros}
\RequirePackage{tgpagella}
\RequirePackage{tgcursor}
\RequirePackage[ngerman]{babel}
\RequirePackage{datetime}
\RequirePackage{fixltx2e}
\RequirePackage[inline]{enumitem}
\RequirePackage{graphicx}
\RequirePackage{array}
\RequirePackage{multicol}
\RequirePackage{multirow}
\RequirePackage{wasysym}
\RequirePackage[%
bookmarks=false,%
hidelinks,%
pdfauthor={Arbeitsgemeinschaft Dresdner Studentennetz},%
%pdfborder={0 0 0},%
]{hyperref}
% Option Names
\newkomavar[Sektion]{agdsn_division}
\newkomavar[Kontonr.]{agdsn_account}
\newkomavar[BLZ]{agdsn_blz}
\newkomavar[IBAN]{agdsn_iban}
\newkomavar[BIC]{agdsn_bic}
\newkomavar[E-Mail]{agdsn_email}
\newkomavar[Homepage]{agdsn_url}
\newkomavar[Adresse]{agdsn_address}
\newkomavar[Logo]{agdsn_logo}
\agdsn@setup
\renewcommand{\familydefault}{\sfdefault}
% Necessary for scrlttr2 to coexist with datetime
\setkomavar{date}{\formatdate{\day}{\month}{\year}}
\setkomavar{fromname}{AG DSN\ifkomavarempty{agdsn_division}{}{\\\usekomavar{agdsn_division}}}
\setkomavar{fromaddress}{\usekomavar{agdsn_address}}
\setkomavar{fromphone}{}
\setkomavar{fromfax}{}
\setkomavar{fromemail}{\usekomavar{agdsn_email}}
\setkomavar{emailseparator}[]{}
\setkomavar{fromurl}{\usekomavar{agdsn_url}}
\setkomavar{urlseparator}[]{}
\setkomavar{signature}{\usekomavar{fromname}}
\setkomavar{firsthead}{
\rlap{\usekomavar{agdsn_logo}}
\parbox[b]{\textwidth}{
\raggedleft\small
\usekomavar{agdsn_address}\\
\ifkomavarempty{agdsn_email}{}{\usekomavar{agdsn_email}\\}
\usekomavar{agdsn_url}\\
}
}
\setkomavar{firstfoot}{
\\[-\baselineskip]\footnotesize
\rule{\textwidth}{\useplength{fromrulethickness}}
\begin{tabular}{lllll}
\multirow{2}{.3\textwidth}{Arbeitsgemeinschaft des StuRa der TU Dresden} & Kto.-Nr. & \usekomavar{agdsn_account} & IBAN & \usekomavar{agdsn_iban} \\
& BLZ & \usekomavar{agdsn_blz} & BIC & \usekomavar{agdsn_bic} \\
\end{tabular}
}
\endinput