-
Notifications
You must be signed in to change notification settings - Fork 2
/
resume-template.cls
96 lines (76 loc) · 4.38 KB
/
resume-template.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% identification
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume-template}[2020/08/21 A single-column resume template with colored icons and links: https://github.com/MdAbedin/resume-template]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% package imports
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\LoadClass{article}
\RequirePackage{etoolbox}
\RequirePackage[letterpaper, margin=0.5in]{geometry}
\RequirePackage[colorlinks=true, urlcolor=linkColor]{hyperref}
\RequirePackage{fontawesome}
\RequirePackage{xcolor}
\RequirePackage[T1]{fontenc}
\RequirePackage{enumitem}
\RequirePackage{ifthen}
\RequirePackage[T1]{fontenc}
\RequirePackage[usefilenames,
RMstyle={Text,Semibold},
SSstyle={Text,Semibold},
TTstyle={Text,Semibold}]{plex-otf}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% configurations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\raggedright
\pagenumbering{gobble}
\renewcommand*\familydefault{\sfdefault}
\setlist[itemize]{nosep, leftmargin=\bulletTextLeftMargin}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% font size and spacing definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\nameSize}{35pt}
\newcommand{\nameBaselineskip}{35pt}
\newcommand{\iconSize}{12pt}
\newcommand{\iconBaselineskip}{12pt}
\newcommand{\sectionDelimeterSize}{18pt}
\newcommand{\sectionDelimeterBaselineskip}{18pt}
\newcommand{\spaceAfterSectionDelimeter}{0.75ex}
\newcommand{\experienceHeaderSize}{14pt}
\newcommand{\experienceHeaderBaselineskip}{14pt}
\newcommand{\spaceAfterExperienceHeader}{0.5ex}
\newcommand{\experienceHeaderSmallSize}{12pt}
\newcommand{\experienceHeaderSmallBaselineskip}{12pt}
\newcommand{\bulletTextSize}{12pt}
\newcommand{\bulletTextBaselineskip}{20pt}
\newcommand{\bulletTextLeftMargin}{0.4in}
\newcommand{\spaceAfterBullets}{1.5ex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% color definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{mailColor}{RGB}{195, 60, 44}
\definecolor{globeColor}{RGB}{0, 0, 255}
\definecolor{linkedinColor}{RGB}{19, 102, 194}
\definecolor{githubColor}{RGB}{0, 0, 0}
\definecolor{phoneColor}{RGB}{50, 205, 50}
\definecolor{linkColor}{RGB}{51, 102, 187}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% command definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\name}[1]{\begin{center} \fontsize{\nameSize}{\nameBaselineskip}\selectfont \textbf{#1} \end{center}}
\newenvironment{icons}{\begin{center} \fontsize{\iconSize}{\iconBaselineskip}\selectfont \bfseries}{\end{center}}
\newcommand{\coloredMailIcon}{\textcolor{mailColor}{\faEnvelope} \space}
\newcommand{\coloredGlobeIcon}{\textcolor{globeColor}{\faGlobe} \space}
\newcommand{\coloredLinkedinIcon}{\textcolor{linkedinColor}{\faLinkedin} \space}
\newcommand{\coloredGithubIcon}{\textcolor{githubColor}{\faGithub} \space}
\newcommand{\coloredPhoneIcon}{\textcolor{phoneColor}{\faPhone} \space}
\newcommand{\sectionDelimeter}[1]{ \fontsize{\sectionDelimeterSize}{\sectionDelimeterBaselineskip}\selectfont \textbf{#1} \leaders\hbox{\raisebox{0.5ex}{\rule{1pt}{1pt}}}\hfill \vspace{\spaceAfterSectionDelimeter}}
\newcommand{\experienceName}[1]{\fontsize{\experienceHeaderSize}{\experienceHeaderBaselineskip}\selectfont \textbf{#1}}
\newcommand{\experienceDates}[1]{\hfill \fontsize{\experienceHeaderSize}{\experienceHeaderBaselineskip}\selectfont \textbf{#1}}
\newcommand{\experienceHeader}[2]{\experienceName{#1} \experienceDates{#2} \vspace{\spaceAfterExperienceHeader}}
\newcommand{\experienceRole}[1]{\fontsize{\experienceHeaderSmallSize}{\experienceHeaderSmallBaselineskip}\selectfont \textit{#1}}
\newcommand{\experienceLocation}[1]{\hfill \fontsize{\experienceHeaderSmallSize}{\experienceHeaderSmallBaselineskip}\selectfont \textit{#1}}
\newcommand{\experienceHeaderSmall}[2]{\experienceRole{#1} \experienceLocation{#2}}
\newenvironment{bullets}{\begin{itemize} \fontsize{\bulletTextSize}{\bulletTextBaselineskip}\selectfont
}{\end{itemize}\vspace{\spaceAfterBullets}}