-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.cls
executable file
·273 lines (227 loc) · 10 KB
/
resume.cls
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Medium Length Professional CV - RESUME CLASS FILE
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% This class file defines the structure and design of the template.
%
% Original header:
% Copyright (C) 2010 by Trey Hunner
%
% Copying and distributing this file, with or without modification,
% is permitted in any medium without royalty, provided the copyright
% notice, and this notice is preserved. This file is offered as-is,
% without any warranty.
%
% Created by Trey Hunner and modified by www.LaTeXTemplates.com
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{resume}[2010/07/10 v0.9 Resume class]
\LoadClass[11pt,letterpaper]{article} % Font size and paper type
\usepackage[parfill]{parskip} % Remove paragraph indentation
\usepackage{array} % Required for boldface (\bf and \bfseries) tabular columns
\usepackage{ifthen} % Required for ifthenelse statements
\pagestyle{empty} % Suppress page numbers
%----------------------------------------------------------------------------------------
% HEADINGS COMMANDS: Commands for printing name and address
%----------------------------------------------------------------------------------------
\def \name#1{\def\@name{#1}} % Defines the \name command to set name
\def \@name {} % Sets \@name to empty by default
\def \addressSep {$\diamond$} % Set default address separator to a diamond
% One, two or three address lines can be specified
\let \@addressone \relax
\let \@addresstwo \relax
\let \@addressthree \relax
% \address command can be used to set the first, second, and third address (last 2 optional)
\def \address #1{
\@ifundefined{@addresstwo}{
\def \@addresstwo {#1}
}{
\@ifundefined{@addressthree}{
\def \@addressthree {#1}
}{
\def \@addressone {#1}
}}
}
% \printaddress is used to style an address line (given as input)
\def \printaddress #1{
\begingroup
\def \\ {\addressSep\ }
\centerline{#1}
\endgroup
\par
\addressskip
}
% \printname is used to print the name as a page header
\def \printname {
\begingroup
\hfil{\MakeUppercase{\namesize\bf \@name}}\hfil
\nameskip\break
\endgroup
}
%----------------------------------------------------------------------------------------
% SECTION FORMATTING
%----------------------------------------------------------------------------------------
% Defines the rSection environment for the large sections within the CV
\newenvironment{rSection}[1]{ % 1 input argument - section name
\sectionskip
\MakeUppercase{\bf #1} % Section title
\sectionlineskip
\hrule % Horizontal line
\begin{list}{}{ % List for each individual item in the section
\setlength{\leftmargin}{1.5em} % Margin within the section
}
\item[]
}{
\end{list}
}
%----------------------------------------------------------------------------------------
% PRINT THE HEADING LINES
%----------------------------------------------------------------------------------------
\let\ori@document=\document
\renewcommand{\document}{
\ori@document % Begin document
\printname % Print the name specified with \name
\@ifundefined{@addressone}{}{ % Print the first address if specified
\printaddress{\@addressone}}
\@ifundefined{@addresstwo}{}{ % Print the second address if specified
\printaddress{\@addresstwo}}
\@ifundefined{@addressthree}{}{ % Print the third address if specified
\printaddress{\@addressthree}}
}
%----------------------------------------------------------------------------------------
% SUBSECTION FORMATTING
%----------------------------------------------------------------------------------------
\newenvironment{rSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
\vspace{-1.5em}
{\em #3} \hfill {\em #4} \\
}
\newenvironment{rSubsectionSmall}[2]{ % 2 input arguments
{\bf #1} \hfill {\em #2} \\ % Bold company name and date on the right
\vspace{-1.5em}
}
\newenvironment{rSubsectionBullets}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #3} \hfill {#4} \\
\smallskip
\begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
\itemsep -0.5em \vspace{-2em} % Compress items in list together for aesthetics
}{
\end{list}
\vspace{0.5em} % Some space after the list of bullet points
}
%----------------------------------------------------------------------------------------
% EDUCATION FORMATTING
%----------------------------------------------------------------------------------------
\newenvironment{edSubsectionMin}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #4} \hfill {#3} \\
\vspace{-1em}
}
\newenvironment{edSubsectionFull}[6]{
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #3} \hfill {\em #4} \\
{\em #6} \hfill Supervisor: {#5} \\
\vspace{-1em}
}
\newenvironment{edSubsectionHonours}[6]{
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #5} \hfill {#4} \\
{#3} \hfill {#6} \\
\vspace{-1em}
}
%----------------------------------------------------------------------------------------
% TA SUBSECTION FORMATTING
%----------------------------------------------------------------------------------------
\newenvironment{taSubsectionMin}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #3} \hfill {\em #4} \\
\smallskip
\vspace{-1.5em} % Some space after the list of bullet points
}
\newenvironment{taSubsectionNoInst}[3]{ % 3 input arguments - Course name, code, dates
{\indent \quad \textbf{#1}} \hfill \\ % Bold company name and date on the right
{\indent \qquad \em #2} \hfill {#3} \\
\smallskip
\vspace{-1.5em} % Some space after the list of bullet points
}
\newenvironment{taSubsectionNoInstDouble}[5]{ % 3 input arguments - Course name, code, dates
{\indent \quad \textbf{#1}} \hfill \\ % Bold company name and date on the right
{\indent \qquad \em #2} \hfill {#3} \\
\smallskip
{\indent \qquad \em #4} \hfill {#5} \\
\smallskip
\vspace{-1.5em} % Some space after the list of bullet points
}
\newenvironment{taSubsectionMinBullets}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} % Bold company name and date on the right
\ifthenelse{\equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
\\
{\em #3} \hfill {\em #4} % Italic job title and location
}\smallskip
\begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
\itemsep -0.5em \vspace{-0.5em} % Compress items in list together for aesthetics
}{
\end{list}
\vspace{0.5em} % Some space after the list of bullet points
}
\newenvironment{taSubsectionFull}[6]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #3} \hfill {\sc #4} \\ % Italic job title and location
{\em #5} \hfill {\sc #6} \\ % Italic job title and location
\smallskip
\vspace{-1.5em} % Some space after the list of bullet points
}
\newenvironment{taSubsectionFullBullets}[6]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} % Bold company name and date on the right
\ifthenelse{\equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
\\
{\em #3} \hfill {\sc #4} \\ % Italic job title and location
{\em #5} \hfill {\sc #6} % Italic job title and location
}\smallskip
\begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
\itemsep -0.5em \vspace{-0.5em} % Compress items in list together for aesthetics
}{
\end{list}
\vspace{0.5em} % Some space after the list of bullet points
}
%----------------------------------------------------------------------------------------
% PROJECTS FORMATTING
%----------------------------------------------------------------------------------------
\newenvironment{prSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #3} \hfill {\em #4} \\
}
%----------------------------------------------------------------------------------------
% AWARDS FORMATTING
%----------------------------------------------------------------------------------------
\newenvironment{aSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
{\bf #1} \hfill {#2} \\ % Bold company name and date on the right
{\em #3} \hfill {\bf #4} \\
\vspace{-1em}
}
% The below commands define the whitespace after certain things in the document - they can be \smallskip, \medskip or \bigskip
\def\namesize{\huge} % Size of the name at the top of the document
\def\addressskip{\smallskip} % The space between the two address (or phone/email) lines
\def\sectionlineskip{\medskip} % The space above the horizontal line for each section
\def\nameskip{\bigskip} % The space after your name at the top
\def\sectionskip{\medskip} % The space after the heading section
%=============================================
% Employment
%-=============================================
\newenvironment{employNoInst}[3]{ % 3 input arguments - Date, Title, supervisor(s)
{\indent \quad \textbf{#1}} \hfill \textit{Supervised by:}\\ % Bold company name and date on the right
{\indent \qquad \em #2} \hfill {#3} \\
\smallskip
\vspace{-1.5em} % Some space after the list of bullet points
}
\newenvironment{taSubsectionNoInstDouble}[5]{ % 3 input arguments - Course name, code, dates
{\indent \quad \textbf{#1}} \hfill \textit{Supervised by:}\\ % Bold company name and date on the right
{\indent \qquad \em #2} \hfill {#3} \\
\smallskip
{\indent \qquad \em #4} \hfill {#5} \\
\smallskip
\vspace{-1.5em} % Some space after the list of bullet points
}