Newer
Older
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
\usepackage{graphicx} %% Required for including pictures
\usepackage[utf8]{inputenc} %% Required for inputting international characters
\pagestyle{empty} %% Suppress headers and footers
\usepackage{microtype} %% Improves typography
\renewcommand{\familydefault}{\rmdefault}
\usepackage{geometry}
\geometry{left=26mm, right=16mm, top=10mm}
\textheight=270mm
\setlength\parindent{10mm} % Paragraph indentation
\usepackage{xcolor}
%%-----------------------------------------------------------------------------
%% Layout - to check overall format of the letter
%%-----------------------------------------------------------------------------
\usepackage{layout}
%% default to mm instead of pt for layout command
\makeatletter
\renewcommand*{\lay@value}[2]{%
\strip@pt\dimexpr0.351459\dimexpr\csname#2\endcsname\relax\relax mm%
}
\makeatother
%%-----------------------------------------------------------------------------
%% DEFINE CUSTOM COMMANDS
%%-----------------------------------------------------------------------------
\newcommand{\who}[1]{\renewcommand{\who}{#1}}
\newcommand{\topic}[1]{\renewcommand{\topic}{#1}}
\newcommand{\location}[1]{\renewcommand{\location}{#1}}
\newcommand{\leftheaderlineone}[1]{\renewcommand{\leftheaderlineone}{#1}}
\newcommand{\leftheaderlinetwo}[1]{\renewcommand{\leftheaderlinetwo}{#1}}
\newcommand{\leftheaderlinethree}[1]{\renewcommand{\leftheaderlinethree}{#1}}
\newcommand{\rightheaderlineone}[1]{\renewcommand{\rightheaderlineone}{#1}}
\newcommand{\rightheaderlinetwo}[1]{\renewcommand{\rightheaderlinetwo}{#1}}
\newcommand{\rightheaderlinethree}[1]{\renewcommand{\rightheaderlinethree}{#1}}
\newcommand{\letterfrom}[1]{\renewcommand{\letterfrom}{#1}}
\newcommand{\letterto}[1]{\renewcommand{\letterto}{#1}}
%%-----------------------------------------------------------------------------
%% DEFINE CUSTOM HEADER
%%-----------------------------------------------------------------------------
\newcommand{\logoheader}[1]{%
\noindent
\begin{minipage}[t]{30mm}
\flushleft
\includegraphics[width=25mm]{#1}
\end{minipage}
\begin{minipage}[t]{50mm}
\vspace{-15mm}
\noindent
\flushleft
\small{\sffamily
\textbf{\leftheaderlineone} \\
\textbf{\leftheaderlinetwo} \\
\leftheaderlinethree} % \itshape
\end{minipage}
\hfill
\begin{minipage}[t]{80mm}
\vspace{-15mm}
\noindent
\flushleft
\small{\sffamily
\rightheaderlineone \\
\rightheaderlinetwo \\
\rightheaderlinethree}
\end{minipage}}
\newcommand{\contactinfo}[1]{%
\noindent
\begin{minipage}[t]{85mm}
\flushleft
\bigskip
\bigskip
%\footnotesize{\sffamily Hochschule Bonn-Rhein-Sieg, 53754 Sankt Augustin} \\
\normalsize
\vspace{13mm}
\letterto
\end{minipage}
\hfill
\begin{minipage}[t]{80mm}
\footnotesize{\sffamily
\letterfrom
}
\end{minipage}
\normalsize
\vspace{5mm}
\noindent
\newline
\location, \today
\newline
~\\
\noindent
\textbf{\topic}
~\\
~\\
\noindent}