-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathresume.cls
More file actions
88 lines (76 loc) · 2.95 KB
/
resume.cls
File metadata and controls
88 lines (76 loc) · 2.95 KB
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume}[2016/01/04 Standard Resume Format]
\LoadClass[9pt]{extarticle}
%----------------------------------------------------------------------------------------------------
%REQUIREMENTS
%----------------------------------------------------------------------------------------------------
\RequirePackage[vmargin=0.5in, hmargin=1in]{geometry}
\RequirePackage[T1]{fontenc} % better glyphs
\RequirePackage{nopageno} % Remove page numbering.
\RequirePackage{tgpagella} % Palatino
\RequirePackage[sfdefault]{classico} % Free clone of Optima.
\RequirePackage{inconsolata}
\RequirePackage{adjustbox} % getting tables to fit.
\RequirePackage{enumitem}
%----------------------------------------------------------------------------------------------------
%SECTION FORMATTING
%----------------------------------------------------------------------------------------------------
\setlength\parindent{0em}
% For some reason, you must have no blank lines between `\section` and the content for consistent
% vertical spacing around the section title (above and below).
\renewcommand{\section}[1]{
\begin{center}
\vspace{6pt}\textbf{#1}\vspace{6pt}\\
{\hrule height 1pt}
\end{center}
}
\setlist{noitemsep}
\setlist[itemize]{rightmargin=1.5in}
%----------------------------------------------------------------------------------------------------
%HEADER FORMATTING
%----------------------------------------------------------------------------------------------------
\makeatletter
%center aligned header with name prominently at the top.
\renewcommand{\maketitle}{
\begin{center}
{\Huge\textbf{\@name}} \\
\begin{tabular}{c c}
\@github & \@email %& \@linkedin
\end{tabular} \\
\begin{tabular}{c c}
\@phone & \@website
\end{tabular}
\end{center}
}
%macro definitions for the `\maketitle` command.
\def\@name{\unskip}
\newcommand{\name}[1]{\def\@name{#1}}
\def\@github{\unskip}
\newcommand{\github}[1]{\def\@github{#1}}
\def\@email{\unskip}
\newcommand{\email}[1]{\def\@email{#1}}
\def\@linkedin{\unskip}
\newcommand{\linkedin}[1]{\def\@linkedin{#1}}
\def\@phone{\unskip}
\newcommand{\phone}[1]{\def\@phone{#1}}
\def\@website{\unskip}
\newcommand{\website}[1]{\def\@website{#1}}
%----------------------------------------------------------------------------------------------------
%ITEM FORMATTING
%----------------------------------------------------------------------------------------------------
\newcommand{\experienceHeader}[5]{
\textbf{#1}, #2 \hfill{\small #3} \\
\emph{#5} \\
#4
}
% ProjectName, Description, link
\newcommand{\projectHeader}[3]{
\textbf{#1}\\
\emph{#2}\\
\texttt{#3}
}
%----------------------------------------------------------------------------------------------------
%CLEANUP
%----------------------------------------------------------------------------------------------------
\makeatother
\endinput