diff --git a/ada-core-cover-letter/info.tex b/ada-core-cover-letter/info.tex index 9bbe0f3..f0616aa 100644 --- a/ada-core-cover-letter/info.tex +++ b/ada-core-cover-letter/info.tex @@ -1,19 +1,29 @@ -% Edit the following - +%%%% % Personal information -\newcommand{\myname}{Joshua Coles} % Your name (e.g. "John Smith") -\newcommand{\mytitle}{Applicant} % Your title (e.g. "Applicant") -\newcommand{\myemail}{me@joshucoles.me} % Your email (e.g. "me@mydomain.com") -\newcommand{\mylinkedin}{johndoe} % Your LinkedIn profile name (e.g. "myname") -\newcommand{\myphone}{0756419926} % Your phone number (e.g. "123.456.7890") -\newcommand{\mylocation}{City, ST} % Your general location (e.g. "PNW, USA") -\newcommand{\recipient}{Hiring Manager} % The recipient (e.g. "Hiring Manager") -\newcommand{\greeting}{Dear} % The greeting to use (e.g. "Dear") -\newcommand{\closer}{Kind Regards} % The closer to use (e.g. "Kind Regards") +%%%% -% Company information -\newcommand{\company}{Microsoft Corporation} % The company (e.g. "Microsoft Corporation") -\newcommand{\street}{1 Microsoft Way} % The company's street address (e.g. "1 Microsoft Way") -\newcommand{\city}{Redmond} % The company's city (e.g. "Redmond") -\newcommand{\state}{WA} % The company's state prefix (e.g. "WA") -\newcommand{\zip}{98052} % The company's zip code (e.g. "98052") +\newcommand{\myname}{Joshua Coles} +\newcommand{\mytitle}{Applicant} +\newcommand{\myemail}{me@joshucoles.me} +\newcommand{\mylinkedin}{https://www.linkedin.com/in/joshua-coles-a79498151/} +\newcommand{\myphone}{+44 7564 199236} +\newcommand{\mylocation}{Bath / Reading, UK} + +%%%% +% Company Information +%%%% + +\newcommand{\recipient}{Hiring Manager} +\newcommand{\greeting}{Dear} +\newcommand{\closer}{Kind Regards} + +\newboolean{include-signature} +\setboolean{include-signature}{false} + +\newboolean{include-company-address} +\setboolean{include-company-address}{false} + +\newcommand{\company}{AdaCore} +\newcommand{\companyaddress}{ +1 Microsoft Way\\ +Redmond, WA\ 98052} diff --git a/ada-core-cover-letter/main.tex b/ada-core-cover-letter/main.tex index c529bb5..b77155b 100644 --- a/ada-core-cover-letter/main.tex +++ b/ada-core-cover-letter/main.tex @@ -1,20 +1,21 @@ -% Project: TeX Cover Letter Template % Author: Sid Lacy \documentclass[12pt]{letter} -\usepackage[utf8]{inputenc} +\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{fontawesome5} +\usepackage{fontawesome} \usepackage{eso-pic} \usepackage{charter} +\usepackage{ifthen} \usepackage{geometry} % Required for adjusting page dimensions and margins \geometry{ paper=a4paper, - top=1.75cm, % Top margin + top=1cm, % Top margin bottom=1.75cm, % Bottom margin left=2cm, % Left margin right=2cm, % Right margin @@ -24,40 +25,59 @@ % showframe, % Uncomment to show how the type block is set on the page } - -%\addtolength{\topmargin}{-0.5in} -%\addtolength{\textheight}{1.0in} -\definecolor{gr}{RGB}{225,225,225} +\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{gr} -\AtPageUpperLeft{\rule[-1.3in]{\paperwidth}{1.3in}} +\color{TopBackground} +\AtPageUpperLeft{\rule[-\shadedheight]{\paperwidth}{\shadedheight}} } % Header \begin{center} {\fontsize{28}{0}\selectfont\scshape \myname} -\href{mailto:\myemail}{\faEnvelope\enspace \myemail}\hfill -\href{https://linkedin.com/in/\mylinkedin}{\faLinkedinIn\enspace linkedin.com/in/\mylinkedin}\hfill -\href{tel:\myphone}{\faPhone\enspace \myphone}\hfill -\faMapMarker\enspace \mylocation +\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.2in} +\vspace{0.75cm} % Opening block -\today\\ +\today +\\ -\vspace{-0.1in}\recipient\\ -\company\\ -\street\\ -\city, \state\ \zip\\ +\vspace{-0.1in}\recipient\\\company +\ifthenelse{\boolean{include-company-address}}{\\\companyaddress}{}\\ \vspace{-0.1in}\greeting\ \recipient,\\ @@ -72,7 +92,7 @@ \begin{flushright} \closer, -\vspace{-0.1in}\includegraphics[width=1.5in]{sig.png}\vspace{-0.1in} +\ifthenelse{\boolean{include-signature}}{\vspace{-0.1in}\includegraphics[width=1.5in]{sig.png}\vspace{-0.1in}}{} \myname\\ \mytitle diff --git a/header.tex b/header.tex index 9bebffa..01a938d 100644 --- a/header.tex +++ b/header.tex @@ -18,7 +18,7 @@ % Other icons can be found by referring to fontawesome.pdf (supplied with the template) and using the word after \fa in the command for the icon you want \icon{MapMarker}{12}{Bath / Reading}\\ \icon{Phone}{12}{+44 7564 199236}\\ - \icon{At}{12}{\emailaddr{josh@coles.to}}\\ + \icon{At}{12}{\emailaddr{me@joshuacoles.me}}\\ \end{minipage} \begin{minipage}[t]{0.275\textwidth} % 27.5% of the page width for the second row of icons \vspace{-\baselineskip} % Required for vertically aligning minipages