-
Notifications
You must be signed in to change notification settings - Fork 1
/
letter.tex
141 lines (109 loc) · 5.17 KB
/
letter.tex
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Elmueller Formal Letter
% LaTeX Template
% Version 1.3 (20/11/16)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Micha Elmueller (http://micha.elmueller.net/) with modifications by
% Vel (vel@LaTeXTemplates.com)
% johuellm
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[
pagenumber=false, % Removes page numbers from page 2 onwards when false
parskip=half, % Separates paragraphs with some whitespace, use parskip=full for more space or comment out to return to default
foldmarks=true, % Prints small fold marks on the left of the page
addrfield=true,
fromphone=true,
fromemail=true,
fromurl=true,
locfield=wide,
enlargefirstpage=true
]{scrlttr2}
\usepackage[T1]{fontenc} % For extra glyphs (accents, etc)
\usepackage{stix} % Use the Stix font by default
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{xhfill}
\usepackage{hyperref}
\usepackage[ngerman]{babel} % Explicitly load the babel package to stop an error occurring on some LaTeX installations
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
\renewcommand*{\raggedsignature}{\raggedright} % Stop the signature from indenting
\def\Vhrulefill{\leavevmode\leaders\hrule height 1.0ex depth \dimexpr0.4pt-0.7ex\hfill\kern0pt}
\pagestyle{myheadings}
\makeatletter
\@setplength{lochpos}{\oddsidemargin}
\@addtoplength{lochpos}{1in}
\@setplength{toaddrhpos}{\oddsidemargin}
\@addtoplength{toaddrhpos}{1in}
\@addtoplength{toaddrwidth}{-10mm}
\@setplength{firstfootwidth}{\textwidth}
\@setplength{firstheadwidth}{\textwidth}
\makeatother
\setkomavar{firsthead}{%
\includegraphics[width=\textwidth]{forest2_bw.jpg}
}
\setkomavar{location}{%
\raggedleft
\footnotesize
\usekomavar{fromname}\\
\usekomavar{fromaddress}\\
\usekomavar{fromphone}\\
\vspace{2mm}
\usekomavar{fromemail}\\
\usekomavar{fromurl}
}
\setkomavar{firstfoot}{%
\normalfont
\sffamily
\footnotesize
\color{lightgray}
\Vhrulefill\quad MY FOOTER PHRASE\quad\Vhrulefill
}
\setkomavar{nextfoot}{%
\usekomavar{firstfoot}
}
%----------------------------------------------------------------------------------------
% YOUR INFORMATION AND LETTER DATE
%----------------------------------------------------------------------------------------
\setkomavar{fromname}{Anna Muster} % Your name used in the from address
\setkomavar{fromaddress}{Muster-Allee 11\\ 34459 Musterstadt} % Your address
\setkomavar{fromphone}[]{+49 123 555333}
\setkomavar{fromemail}[]{anna.muster@gmail.com}
\setkomavar{fromurl}[]{www.anna-muster.de}
\setkomavar{signature}{Anna Muster} % Your name used in the signature
\setkomavar{date}{\today} % Date of the letter
% \setkomavar{subject}{Betreff!}
% \setkomavar{title}{Titel!}
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% ADDRESSEE
%----------------------------------------------------------------------------------------
\begin{letter}{Max Mustermann\\ Mustermannstraße 24 \\ 49991 Musterhausen} % Addressee name and address
%----------------------------------------------------------------------------------------
% LETTER CONTENT
%----------------------------------------------------------------------------------------
\opening{Hallo Max,}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam aliquet tellus vel justo porta et semper libero rutrum. Duis vestibulum sagittis aliquam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac velit eu dolor lobortis fringilla. Quisque imperdiet porta ante in pretium. Maecenas facilisis varius metus et blandit. Proin rhoncus arcu non ante elementum non vehicula sem varius. Morbi feugiat, elit eget tristique posuere, urna eros vestibulum nibh, at tempus neque justo nec enim.
Curabitur id est enim. Suspendisse potenti. Fusce eleifend sodales tortor, a interdum tortor sollicitudin vel. Morbi vel tellus enim, eget hendrerit ligula. Proin molestie suscipit erat, eget consectetur orci convallis at. Ut vestibulum, odio vitae blandit dignissim, dui magna auctor leo, at molestie augue magna sed nisi. Phasellus ipsum magna, fringilla id tempor id, tristique vitae mauris. Maecenas sed orci vel eros consectetur ultrices.
Mauris enim velit, feugiat at venenatis eu, scelerisque vitae mauris. Nullam accumsan facilisis mauris sagittis iaculis. Mauris condimentum dictum libero. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam consequat malesuada feugiat. Vestibulum tempor commodo turpis id gravida.
\closing{Herzliche Grüße}
%----------------------------------------------------------------------------------------
\end{letter}
\end{document}