\documentclass[
parskip=half,
fontsize=11pt, % fontsize
twoside=off, % onesided layout
version=last,
foldmarks=false,
fromalign=center, % center, if no logo is used, else left
fromrule=true,
frommobilephone,
fromemail,
fromlogo, % if a logo should be used, delete it otherwise
subject=titled,
backaddress=false,
draft=true, % set to true if this is the final version
firstfoot=false, % if the footer should be set or not
final=false, % set this to true if this is the final version
]
{scrlttr2}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc} % text encoding: UTF-8
% \usepackage[scaled]{helvet}
\usepackage{mlmodern}
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}
\newcommand{\toppagemargin}{2cm}
\newcommand{\rightpagemargin}{2cm}
\newcommand{\leftpagemargin}{2cm}
\newcommand{\bottompagemargin}{0.5cm}
\newcommand{\footerheight}{8}
\usepackage[
a4paper,
head=14.5pt,
top=\toppagemargin,
bottom=\bottompagemargin,
inner=\leftpagemargin,
outer=\rightpagemargin
]{geometry}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage{hyperref}
% custom commands
\newcommand{\monthword}[1]{\ifcase#1\or January\or February\or March\or April\or
May\or June\or July\or August\or
September\or October\or November\or December\fi}
\newcommand{\leadingzero}[1]{\ifnum #1<10 0\the#1\else\the#1\fi}
\newcommand{\todaay}{\leadingzero{\day}~\monthword{\the\month} \the\year}
% --------------------------------------------------------------------------------
% set koma variables, this needs to be edited by the user
\newcommand{\mail}{john.smith@example.com}
\setkomavar{fromname}[]{John Smith}
\setkomavar{fromzipcode}{12345}
\setkomavar{place}{Place}
\setkomavar{signature}{\includegraphics[scale=0.05]{fig/signature.png}\\\usekomavar{fromname}}
\setkomavar{fromaddress}{Street 1,
\usekomavar{fromzipcode} \usekomavar{place}}
\setkomavar{frommobilephone}{+1~234~56789}
\setkomavar{subject}{Application~as~<POSITION>}
% --------------------------------------------------------------------------------
\setkomavar{firstfoot}{%
\parbox[b]{\linewidth}{%
\centering\def\\{, }\usekomavar{fromname}, \usekomavar{fromemail}%
}%
}
\setkomavar{fromlogo}{\includegraphics{fig/logo.pdf}} % delete this if no logo should be used
\setkomavar{fromemail}{\href{mailto:\mail}{\mail}}
\setkomavar{date}{\todaay}
\newcommand{\header}{\begin{tabular}{l|l|l|l}
\usekomavar{fromname} & \usekomavar{fromaddress} & \usekomavar{frommobilephone} & \usekomavar{fromemail}\\
\bottomrule[1pt]
\end{tabular}}
\setkomavar{firsthead}{\header}
% Layout
\setplength{refvpos}{3.5cm}
\setplength{firstheadvpos}{0.5cm}
\setplength{subjectaftervskip}{\baselineskip}
\setplength{toaddrvpos}{0.5cm}
\setplength{sigbeforevskip}{0.2cm}
% --------------------------------------------------------------------------------
% edit the company's address
\newcommand{\address}{
Company Name \\
Company Address \\
Contact \\
}
% --------------------------------------------------------------------------------
\begin{document}
\begin{letter}{\address}
\opening{To whom it may concern}
Insert here the text for the cover letter, this should be max. 1 page.
\closing{Yours faithfully}
\encl{
Attachments included in this application
}
\end{letter}
\end{document}

PDF Preview
Create an account to compile and preview