cv/ada-core-cover-letter/main.tex

101 lines
2.5 KiB
TeX

% Author: Sid Lacy
\documentclass[12pt]{letter}
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage[empty]{fullpage}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx}
\usepackage{fontawesome}
\usepackage{eso-pic}
\usepackage{charter}
\usepackage{ifthen}
\usepackage{geometry} % Required for adjusting page dimensions and margins
\geometry{
paper=a4paper,
top=1cm, % Top margin
bottom=1.75cm, % Bottom margin
left=2cm, % Left margin
right=2cm, % Right margin
headheight=0.75cm, % Header height
footskip=1cm, % Space from the bottom margin to the baseline of the footer
headsep=0.5cm, % Space from the top margin to the baseline of the header
% showframe, % Uncomment to show how the type block is set on the page
}
\newcommand{\shadedheight}{3.5cm}
\definecolor{TopBackground}{RGB}{225,225,225}
\definecolor{Accent}{HTML}{367DA2}
\input{info}
\begin{document}
\newcommand{\emailaddr}[1]{\href{mailto:#1}{#1}}
\newcommand{\tel}[1]{\href{tel:#1}{#1}}
% Command to vertically centre adjacent content
\newcommand{\vcenteredhbox}[1]{% The only parameter is for the content to centre
\begingroup%
\setbox0=\hbox{#1}\parbox{\wd0}{\box0}%
\endgroup%
}
\newcommand{\icon}[3]{%
\vcenteredhbox{\colorbox{Accent}{\makebox(#2, #2){\textcolor{white}{\large\csname fa#1\endcsname}}}}% Icon and box
\hspace{0.2cm}% Whitespace
\vcenteredhbox{#3}% Text
}
% Shaded header banner
\AddToShipoutPictureBG{%
\color{TopBackground}
\AtPageUpperLeft{\rule[-\shadedheight]{\paperwidth}{\shadedheight}}
}
% Header
\begin{center}
{\fontsize{28}{0}\selectfont\scshape \myname}
\vspace{0.2cm}
\icon{MapMarker}{12}{Bath / Reading}
\hfill
\icon{Phone}{12}{\tel{+44 7564 199236}}
\hfill
\icon{At}{12}{\emailaddr{me@joshuacoles.me}}
\hfill
\icon{Github}{12}{\href{https://github.com/joshuacoles}{joshuacoles}}
% \icon{Linkedin}{12}{\href{https://www.linkedin.com/in/joshua-coles-a79498151/}{LinkedIn}}
\end{center}
\vspace{0.75cm}
% Opening block
\today
\\
\vspace{-0.1in}\recipient\\\company
\ifthenelse{\boolean{include-company-address}}{\\\companyaddress}{}\\
\vspace{-0.1in}\greeting\ \recipient,\\
% Body
\vspace{-0.1in}\setlength\parindent{24pt}
\noindent\input{body}
% Closer
\vspace{0.1in}
\vfill
\begin{flushright}
\closer,
\ifthenelse{\boolean{include-signature}}{\vspace{-0.1in}\includegraphics[width=1.5in]{sig.png}\vspace{-0.1in}}{}
\myname\\
\mytitle
\end{flushright}
\end{document}