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
|
%%
%% This is file `hu-berlin-letter.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hu-berlin-bundle.dtx (with options: `cls,letter')
%% ----------------------------------------------------------------
%% hu-berlin-bundle
%% Author: Lukas C. Bossert
%% E-mail: lukas@texografie.de
%% License: Released under the LaTeX Project Public License v1.3c or later
%% See: http://www.latex-project.org/lppl.txt
%% Various parts my have a different licence,
%% please consider and respect them carefully.
%% ----------------------------------------------------------------
%%
\def\Version{2020/04/28 v1.0.5}
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesClass{hu-berlin-letter}
[\Version\ Humboldt-Universit"at zu Berlin - letter documentclass]
\ClassInfo{hu-berlin}{* * * hu-berlin * * *\MessageBreak
Part of the hu-berlin Bundle }
\LoadClass[%
fontsize=10pt,
version=last,
% visualize
]{scrlttr2}
\RequirePackage{hu-berlin-base}
\RequirePackage{scrlayer-scrpage}
\clearpairofpagestyles
\DeclareNewLayer[
foreground,
voffset=\useplength{firstheadvpos},
hoffset=\useplength{firstheadhpos},
width=\useplength{firstheadwidth},
mode=picture,
contents=\putUL{\raisebox{-\height}{\usekomavar{firsthead}}}
]{likefirstpage.head}
\AddLayersToPageStyle{scrheadings}{likefirstpage.head}
\DeclareNewLayer[
foreground,
align=r,
voffset=\useplength{locvpos},
hoffset=\paperwidth-\useplength{lochpos},
width=\useplength{locwidth},
height=\useplength{locheight},
contents=\usekomavar{nextlocation},
%pretocontents=\layercontentsmeasure% to show the position of the layer
]{likefirstpage.loc}
\AddLayersToPageStyle{scrheadings}{likefirstpage.head,likefirstpage.loc}
\newkomavar{nextlocation}
\setkomavar{nextlocation}{%
\raggedright
\fontsize{7}{8.5}\selectfont
\pagemark
}
\RequirePackage{geometry}
\geometry{%
a4paper
,left =25mm
,bottom =16mm
,foot =4mm
,top =77mm
,headheight =15pt
,textwidth =117mm
,marginparsep =0mm
,marginparwidth =0mm
}
\renewcommand*{\raggedsignature}{\raggedright}
\raggedright
\def\stopletter{}
\let\enclold\encl
\renewcommand\encl[1]{\vskip0ptplus1filll\enclold{#1}}
\newkomavar{faculty}
\newkomafont{faculty}{\bfseries\fontsize{8.5}{10}\selectfont}
\newkomavar{institute}
\newkomafont{institute}{\fontsize{8.5}{10}\selectfont}
\newkomavar{institute.additional}
\newkomafont{institute.head}{\bfseries}
\newkomavar{institute.head}%
\newkomavar{institute.head.mail}%
\newkomavar{local}
\setkomavar*{local}{Sitz:}
\newkomavar{connections}
\setkomavar*{connections}{Verkehrsverbindungen:}
\newkomavar{officehours}
\setkomavar*{officehours}{Sprechzeiten:}
\newkomavar{accessibility}
\setkomavar*{accessibility}{{\large\reflectbox{\Wheelchair}} Eingang:}
\newkomavar{bank}
\setkomavar*{bank}{Bankverbindung:}
\setkomavar{bank}{Deutsche Bank PGK AG}
\newkomavar{IBAN}
\setkomavar{IBAN}{\mbox{IBAN DE95 1007 0848 0512 6206 01}}
\newkomavar{BIC}
\setkomavar{BIC}{BIC DEUTDEDB110}
\setkomavar{location}{%
\raggedright
\fontsize{7}{8.5}\selectfont
\begin{minipage}[t][64mm]{\useplength{locwidth}}
{\usekomafont{faculty}%
\usekomavar{faculty}\\[1\baselineskip]}
{\usekomafont{institute}\usekomavar{institute}\\[1\baselineskip]}
\Ifkomavarempty{institute.additional}
{}
{\usekomavar{institute.additional}\\[1\baselineskip]}
\Ifkomavarempty{institute.head}
{}
{{\usekomafont{institute.head}%
\usekomavar{institute.head}}\\%
\usekomavar*{institute.head}}
\end{minipage}
\textbf{\usekomavar*{date}}\\
\usekomavar{date}\par
\Ifkomavarempty{fromname}
{}
{\textbf{\usekomavar*{fromname}}\\
\usekomavar{fromname}\par}
\Ifkomavarempty{myref}
{}
{\textbf{\usekomavar*{myref}}\\
\usekomavar{myref}\par}
\Ifkomavarempty{yourref}
{}
{\textbf{\usekomavar*{yourref}}\\
\usekomavar{yourref}\par}
\Ifkomavarempty{yourmail}
{}
{\textbf{\usekomavar*{yourmail}}\\
\usekomavar{yourmail}\par}
\Ifkomavarempty{customer}
{}
{\textbf{\usekomavar*{customer}}\\
\usekomavar{customer}\par}
\Ifkomavarempty{invoice}
{}
{\textbf{\usekomavar*{invoice}}\\
\usekomavar{invoice}\par}
\textbf{\usekomavar*{fromaddress}}\\
\usekomavar{fromaddress}
\Ifkomavarempty{fromphone}
{\par}
{\\\usekomavar*{fromphone}\usekomavar{fromphone}
\Ifkomavarempty{fromfax}
{\par}
{\\}}
\Ifkomavarempty{fromfax}
{}
{\usekomavar*{fromfax}\usekomavar{fromfax}\par}
\Ifkomavarempty{institute.head.mail}
{}
{\usekomavar{institute.head.mail}
\Ifkomavarempty{fromemail}
{\Ifkomavarempty{fromurl}
{\par}
{\\}}
{\\}}
\Ifkomavarempty{fromemail}
{}
{\usekomavar{fromemail}
\Ifkomavarempty{fromurl}
{\par}
{\\}}
\Ifkomavarempty{fromurl}
{}
{\usekomavar{fromurl}\par}
\Ifkomavarempty{local}
{}
{\textbf{\usekomavar*{local}}\\
\usekomavar{local}\par}
\vfill
\Ifkomavarempty{connections}
{}
{\textbf{\usekomavar*{connections}}\\
\usekomavar{connections}\par}
\Ifkomavarempty{officehours}
{}
{\textbf{\usekomavar*{officehours}}\\
\usekomavar{officehours}\par}
\Ifkomavarempty{accessibility}
{}
{\textbf{\usekomavar*{accessibility}}\\
\usekomavar{accessibility}\par}
\Ifkomavarempty{bank}
{}
{\textbf{\usekomavar*{bank}}\\
\usekomavar{bank}\\
\usekomavar{IBAN}\\
\usekomavar{BIC}
}
}
\KOMAoptions{%
numericaldate =true
,refline =nodate
,backaddress =plain
,parskip =half-
}
\setplength{refvpos}{110mm}
\setplength{refaftervskip}{0pt}
\setplength{toaddrhpos}{25mm}
\setplength{firstheadhpos}{\useplength{toaddrhpos}}
\setplength{lochpos}{15mm}
\setplength{locvpos}{\useplength{toaddrvpos}}
\addtoplength{locvpos}{.75\baselineskip}
\setplength{locwidth}{45mm}
\setplength{locheight}{232mm}
\setkomavar{firsthead}{%
\includegraphics[width=145mm]{hu-berlin-logo}%
}
\setkomavar{backaddressseparator}{~\textbar~}
\setkomavar{fromphone}{0000}
\setkomavar*{fromphone}{Telefon +49 [30] 2093–}
\setkomavar{fromfax}{0000}
\setkomavar*{fromfax}{Telefax +49 [30] 2093–}
\setkomavar*{fromaddress}{Postanschrift:}
\setkomavar{fromaddress}{%
Humboldt-Universität zu Berlin\par
Unter den Linden 6\par
D-10099 Berlin}
\setkomavar*{date}{Datum:}
\setkomavar*{fromname}{Bearbeiter:}
\setkomavar*{myref}{Geschäftszeichen:}
\setkomavar*{enclseparator}{Anlage}
\setkomavar*{ccseparator}{Kopie an}
%%
%% Copyright (C) 2019-2020
%%
%% End of file `hu-berlin-letter.cls'.
|