-
Notifications
You must be signed in to change notification settings - Fork 1
/
resume.cls
126 lines (106 loc) · 3.36 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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume}[2023/03/18 v0.1 Resume class]
\LoadClass[11pt,letterpaper]{article} % Font size and paper type
% set document margins
\usepackage[left=0.5 in,top=0.4in,right=0.5in,bottom=0.4in]{geometry}
\usepackage[parfill]{parskip} % Remove paragraph indentation
\usepackage{keycommand}
\usepackage{xstring}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
urlcolor=black,
}
% Load the fontspec package to set the font
\usepackage[scaled]{helvet} % Load the Helvetica font
\renewcommand\familydefault{\sfdefault} % Set the default font family to sans-serif
\usepackage[T1]{fontenc} % Use the T1 font encoding to ensure proper character rendering
\pagestyle{empty}
\def \separator {\textbf{\Large\textbullet}}
\newcommand\printNameTitle[1]{%
\begingroup
\hfill{\MakeUppercase{\Huge\bfseries #1}}\hfill
\break
\vspace{-0.5em}
\hrule
\endgroup
}
\newcommand{\printContactInformation}{%
\vspace{-0.3em} % remove vertical space above
\begin{center}
\ifcommandkey{phone}{%
\commandkey{phone}%
\ifcommandkey{email}{ \separator\ }%
{\ifcommandkey{linkedin}{ \separator\ }%
{\ifcommandkey{github}{ \separator\ }%
{}}}%
}{}%
\ifcommandkey{email}{%
\email{\commandkey{email}}%
\ifcommandkey{linkedin}{ \separator\ }%
{\ifcommandkey{github}{ \separator\ }}%
}{}%
\ifcommandkey{linkedin}{%
\profilelink{\commandkey{linkedin}}%
\ifcommandkey{github}{ \separator\ }{}%
}{}%
\ifcommandkey{github}{%
\profilelink{\commandkey{github}}%
}{}%
\end{center}
}
\newcommand{\email}[1]{\href{mailto:#1}{#1}}
\newcommand{\profilelink}[1]{\href{https://#1}{#1}}
\newkeycommand{\introduction}[fullname,email,phone,linkedin,github,]{
\printNameTitle{\commandkey{fullname}}
\printContactInformation
}
\newcommand{\summary}[1]{
\textbf{\MakeUppercase{Summary}}
\vspace{0.4em}
\hrule
\vspace{-0.3em}
#1
}
\newcommand{\education}{
\textbf{\MakeUppercase{Education}}
\vspace{0.4em}
\hrule
\vspace{-0.3em}
}
\newkeycommand{\educationItem}[university,college,program,graduation,grade,coursework]{
{\bf \commandkey{program}} \hfill {\commandkey{graduation}} \\
{\commandkey{university}} \hfill \ifcommandkey{grade}{\commandkey{grade} GPA}{} \\
\ifcommandkey{college}{\commandkey{college}}{} \\
\ifcommandkey{coursework}{Relevant coursework: \commandkey{coursework}}{}
}
\newcommand{\skills}{
\textbf{\MakeUppercase{Technical skills}}
\vspace{0.4em}
\hrule
\vspace{-0.3em}
}
\newkeycommand{\skillItem}[category, skills]{
{\bf \commandkey{category}:} {\commandkey{skills}}
}
\newenvironment{workSection}[1]{
\textbf{\MakeUppercase{#1}}
\vspace{0.4em}
\hrule
\vspace{-0.3em}
\begin{list}{}{ % List for each individual item in the section
\setlength{\leftmargin}{0em} % Margin within the section
}
\item[]
}{
\end{list}
}
\newkeycommand{\experienceItem}[company, position, duration]{
\textbf{\commandkey{company}: \commandkey{position}} \hfill {\commandkey{duration}}
}
\newkeycommand{\customItem}[title, duration, organization, keyHighlight]{
\textbf{\commandkey{title}} \hfill {\commandkey{duration}} \\
\commandkey{organization}
\ifcommandkey{keyHighlight}{\commandkey{keyHighlight}}{}
}