-
Notifications
You must be signed in to change notification settings - Fork 2
/
coverletter_template.tex
85 lines (66 loc) · 1.59 KB
/
coverletter_template.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
%%%%%%%%%%%%%%%%%%%%%%%%%
% Cover Letter Template %
% By: Jolon Behrent %
%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage[margin=1.0in]{geometry}
% Set document font to Calibri
\setmainfont{Calibri}
% Remove starting indent of paragraphs
\setlength\parindent{0pt}
% Remove page numbers
\pagestyle{empty}
%% Set author's name (required)
\newcommand{\setname}[1]{
\newcommand \name {#1}}
%% Set personal information (email, phone, profile link)
\newcommand{\settopmatter}[1]{
\newcommand \topmatter {#1}}
%% Set greeting (defaults to "Dear Hiring Manager,")
\newcommand{\setgreeting}[1]{
\newcommand \greeting {#1}}
%% Set topic of letter
\newcommand{\setregarding}[1]{
\newcommand \regarding {#1}}
%% Set sign off message (defaults to "Yours faithfully,")
\newcommand{\setfarewell}[1]{
\newcommand \farewell {#1}}
%% Displays name, top matter, data, greeting, and regarding
\newcommand{\addtitle}{
% Print title and (optional) top matter
\begin{center}
{\huge \name}
\hrulefill
\ifdefined\topmatter
\topmatter
\fi
\end{center}
% Print date document was compiled
\today \\
% Print greeting
\ifdefined\greeting
\greeting
\else
Dear Hiring Manager,
\fi \\
% Print regarding information
\ifdefined\regarding
\textbf{Re: \regarding} \\
\fi
}
%% Displays farewell and name
\newcommand{\addclosing}{
\\~\\
\ifdefined\farewell
\farewell
\else
Yours faithfully,
\fi \\~\\
\name
}
%% Defines begin and end tags for document
\newenvironment{coverletter}{\addtitle}{\addclosing}
%%%%%%%%%%
% Sample %
%%%%%%%%%%