-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.cls
125 lines (106 loc) · 2.9 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
% Required Document Information
\ProvidesClass{resume}[2023/01/01 v0.1 Resume Class]
\LoadClass[10pt,letterpaper]{article}
% Package w/ Settings
\usepackage[margin=0.60in]{geometry}
\usepackage[]{parskip}
\usepackage[
dvipsnames,
svgnames,
x11names,
hyperref
]{xcolor}
% Packages
\usepackage{
array,
fontenc,
ragged2e,
tabularx
}
% Fonts
% LaTeX Font Catalogue: https://tug.org/FontCatalogue/
\usepackage[default]{sourcesanspro}
% Page Styling
\pagestyle{empty}
% Custom Page Styling Commands
\def\sectionlineskip{\medskip}
\def\sectionskip{\medskip}
\def\itemsectionskip{\medskip}
\def\itemskip{\smallskip}
\def\projectitemsectionskip{\medskip}
\def\subprojectitemsectionskip{\medskip}
\def\projectitemskip{\smallskip}
% Custom Colours
% Colour Theme Generator: https://color.adobe.com/
\definecolor{linkColour}{RGB}{47,84,153}
\definecolor{headerColour}{RGB}{17,33,63}
\definecolor{subHeaderColour}{RGB}{91,83,126}
% Custom Text Styling
\newcommand{\nameHeader}[1]{{\huge\bf\scshape{#1}}}
\newcommand{\header}[1]{{\large\bf\scshape\textcolor{headerColour}{#1}}}
\newcommand{\subHeader}[1]{{\normalfont\textcolor{subHeaderColour}{#1}}}
\newcommand{\subSubHeader}[1]{{\normalfont\textcolor{subHeaderColour}{#1}}}
\newcommand{\sectionHeader}[1]{{\large\bf\MakeUppercase{#1}}}
\newcommand{\tableHeader}[1]{{\normalfont\textcolor{subHeaderColour}{#1}}}
\newcommand{\normalText}[1]{\normalfont{#1}}
% Hyperref Package
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=linkColour,
}
% Name Section
\newenvironment{namesection}[1]{%
{\nameHeader{#1}}%
}
% Contact Information Section
\newenvironment{contactsection}[4]{%
{#1} \hfill {#3} \\
{#2} \hfill {#4}%
}%
% Header Section
\newenvironment{headersection}[1]{%
\sectionskip
{\sectionHeader{#1}}
\sectionlineskip
\hrule
}%
% General Section
\newenvironment{generalsection}[4]{%
{\header{#1}} \hfill {\normalText{#2}} \\
{\subHeader{#3}} \hfill {\normalText{#4}}%
}%
% Item Section
\newenvironment{itemsection}[4]{%
{\header{#1}} \hfill {\normalText{#2}} \\
{\subHeader{#3}} \hfill {\normalText{#4}}%
\itemskip
\begin{list}{$\cdot$}{\leftmargin=1.50em\rightmargin=1.50em}
\itemsep -0.40em \vspace{-0.25em}%
}{%
\end{list}%
}%
% Project Item Section
\newenvironment{projectitemsection}[4]{%
{\header{#1}} \hfill {\subHeader{#2}} \\
{\normalText{#3}}%
\projectitemskip
\begin{list}{$\cdot$}{\leftmargin=1.50em\rightmargin=1.50em}
\itemsep -0.40em \vspace{-0.25em}%
}{%
\end{list}%
}%
% Sub Project Item Section
\newenvironment{subprojectitemsection}[3]{%
{\header{#1}} \hfill {\normalText{#2}} \\
}{%
}%
% Sub Project Item
\newenvironment{subprojectitem}[3]{%
{\subSubHeader{#1}} \hfill {\subHeader{#2}}%
\projectitemskip
\begin{list}{$\cdot$}{\leftmargin=1.50em\rightmargin=1.50em}
\itemsep -0.40em \vspace{-0.25em}%
}{%
\end{list}%
}%