-
Notifications
You must be signed in to change notification settings - Fork 4
/
Resume.cls
62 lines (52 loc) · 1.79 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
% Intro Options
\ProvidesClass{Resume}[Resume class]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{print}{\def\@cv@print{}}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}
}
\ProcessOptions\relax
\LoadClass{article}
% Package Imports
\usepackage[hmargin=0.5in, vmargin=0.5in]{geometry}
\usepackage[hidelinks]{hyperref}
% Color definitions
\usepackage[usenames,dvipsnames]{xcolor}
\definecolor{primary}{HTML}{2b2b2b}
% Set main fonts
\usepackage{fontspec}
\defaultfontfeatures{Ligatures={NoCommon, NoDiscretionary, NoHistoric, NoRequired, NoContextual}}
\setmainfont[Color=primary, Path = fonts/lato/, BoldItalicFont=Lato-RegIta, BoldFont=Lato-Reg, ItalicFont=Lato-LigIta]{Lato-Lig}
% Name command
\newcommand{\namesection}[2]{
\centering{
\fontsize{16pt}{20pt}
\fontspec[Path = fonts/georgia/]{georgiab}\selectfont #1
} \\
\centering{\fontsize{10pt}{12pt}\selectfont #2}
\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
\vspace{-10pt}
}
% Section seperators
\usepackage{titlesec}
\titlespacing{\section}{0pt}{0pt}{-8pt}
\titlespacing{\subsection}{0pt}{0pt}{0pt}
\newcommand{\sectionsep}{\vspace{8pt}}
\newcommand{\postsectionsep}{\vspace{0pt}}
% Headings command
\titleformat{\section}{
\scshape\fontspec[Path = fonts/lato/]{Lato-Lig}\fontsize{12pt}{14pt}\selectfont \raggedright\uppercase}{}{0em}{}
% Subheadings command
\titleformat{\subsection}{
\fontspec[Path = fonts/lato/]{Lato-Bol}\fontsize{10pt}{12pt}\selectfont \bfseries
}{}{0em}{}
\newcommand{\position}[2]{
\fontspec[Path = fonts/lato/]{Lato-RegIta}\fontsize{10pt}{11.5pt}\selectfont
\textit{\textbf{#1}} \normalfont \hfill #2 \\
}
% Other command
\newcommand{\descript}[1]{
\raggedright\scshape\fontspec[Path = fonts/lato/]{Lato-Bol}
\fontsize{10pt}{12pt}\selectfont {} \normalfont
}
\newcommand{\pt}{\textbullet{} }