-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdan-cline-resume.cls
191 lines (163 loc) · 4.14 KB
/
dan-cline-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
\ProvidesClass{dan-cline-resume}[2018/09/24 CV class]
\DeclareOption{print}{\def\@cv@print{}}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}
}
\ProcessOptions\relax
\LoadClass{article}
% margin packages
\usepackage[left=0.0984252in, right=0.75cm, vmargin=0.75cm]{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage[T1]{fontenc}
\usepackage{enumitem}
% \usepackage{calc}
% Add useful line spacing modifiers
\usepackage{setspace}
% Add qr code support and hyperref
\usepackage{hyperref}
\usepackage{qrcode}
% color definitions
\PassOptionsToPackage{usenames, dvipsnames}{xcolor}
\definecolor{primary}{HTML}{000000}
\definecolor{headings}{HTML}{000000}
\definecolor{seperator}{HTML}{bbbbbb}
% Set font to sans serif (replace with helvetica font)
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
% set width (for line and header)
\newlength{\resumewidth}
\setlength{\resumewidth}{7.90944882in}
% section seperators
\newcommand{\sectionsep}{
\color{headings}{
\vspace{-2mm}
\rule{1\textwidth}{0.5mm}
\vspace{-2mm}
}
}
\newcommand{\subsectionsep}{
\color{white}{
\vspace{-2mm}
\rule{1\textwidth}{0.5mm}
\vspace{-2mm}
}
}
\newcommand{\headersep}{
\color{seperator}{
\vspace{-2mm}
\rule{\resumewidth}{0.5mm}
}
% !!! IMPORTANT: EDIT THIS VALUE TO MAKE SPACE SO THERE IS NOTHING AWKWARD
% AT BOTTOM OF RESUME!!!
\vspace{4mm}
}
% create new section command
\newcommand{\primarysection}[1]{
\color{headings}{
\vspace{-3mm}
\section*{#1}
\vspace{-1.5\baselineskip\ }
\sectionsep
}
}
% descriptors command
\newcommand{\descript}[1]{
\color{primary}{
#1
}
\vspace{0.5mm}
}
% subheadings command
\newcommand{\runsubsection}[1]{
\color{primary}{
\textbf{#1}}}
% location command
\newcommand{\location}[1]{
\hfill
#1
\hfill
}
% Name / title section
% \namesection adds the main name section to the top of the document.
% The first and second parameters are the first and last name.
% There isnt really any reason why they are not all in one parameter but
% whatever, just know that they are separated by a space lol.
% The third parameter is the title, as in "software engineer" or "phd student"
% or "CTO" or something idk.
% The fourth parameter is the spacing in between the first and the last name, in
% case your first and last name takes up multiple lines and the spacing needs to
% be adjusted.
% Finally, the fifth parameter is the content on the right of the title.
% I put some personal info here but you can put whatever you want.
% The font is a little smaller so keep in mind that there is some automatic
% formatting that gets applied.
\newcommand{\namesection}[5]{
\begin{minipage}[b]{0.3\textwidth}
\color{primary}{
\fontsize{30pt}{#4}
\selectfont
% TODO: make this a parameter in case people dont like how it looks.
\textbf{#1 #2}
% DO NOT REMOVE THIS BLANK LINE!!!!!!!!!!
% Removing this blank line will cause the baselineskip parameter of the
% fontsize command to have no effect!
}
\end{minipage}
\hfill
\begin{minipage}[b]{0.65\textwidth}
\begin{minipage}[b]{0.45\textwidth}
\fontsize{18pt}{24pt}
\selectfont
\textbf{#3}
\end{minipage}
\hfill%
\begin{minipage}[b]{0.3\textwidth}
\fontsize{8pt}{10pt}
\selectfont
\begin{flushright}
#5
\end{flushright}
\end{minipage}
\end{minipage}
\headersep
\vspace{-4mm}
}
\newcommand{\education}[6]{
\primarysection{Education}
\vspace{-6mm}
\subsection*{\raggedright #1}
\raggedright{\descript{#2 in #3}}
\vspace{2mm}
\location{\\#4 - #5 \vspace{2mm} \\ #6}
}
\newcommand{\undergradcourses}[1]{
\vspace{-2mm}
\subsubsection*{Undergraduate Courses}
#1 \\
}
\newcommand{\gradcourses}[1]{
\vspace{-2mm}
\subsubsection*{Graduate Courses}
#1 \\
}
\newcommand{\courses}[1]{
\vspace{2mm}
\textbf{Courses:}
#1 \\
}
\newcommand{\talks}[1]{
\vspace{2mm}
\textbf{Talks:}
#1 \\
}
\newcommand{\interests}[1]{
\vspace{2mm}
\textbf{Interests:} #1 \\
}
\newenvironment{tightemize}{
\setlist{nolistsep}
\begin{itemize}[itemsep=1mm, leftmargin=7mm]
\raggedright
}{
\end{itemize}
}