-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompact_resume.cls
114 lines (98 loc) · 3.83 KB
/
compact_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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{compact_resume}[2016/01/04 Compact Resume Format]
\LoadClass[9pt]{extarticle}
%----------------------------------------------------------------------------------------------------
%REQUIREMENTS
%----------------------------------------------------------------------------------------------------
\RequirePackage[vmargin=0.5in, hmargin=0.5in]{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}
% \RequirePackage{hyperref}
%----------------------------------------------------------------------------------------------------
%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]{leftmargin=*}
% \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
%----------------------------------------------------------------------------------------------------
% To get the compiler to shutup.
\newcommand{\givencompany}{REQUIRED}
\newcommand{\givenlocation}{REQUIRED}
\newcommand{\givendates}{REQUIRED}
\newcommand{\givenposition}{REQUIRED}
\newcommand{\givendescription}{REQUIRED}
\newenvironment{experience}{
\vspace{0.5em}
\newcommand{\Rcompany}[1]{\renewcommand{\givencompany}{##1}}
\newcommand{\Rlocation}[1]{\renewcommand{\givenlocation}{##1}}
\newcommand{\Rdates}[1]{\renewcommand{\givendates}{##1}}
\newcommand{\Rposition}[1]{\renewcommand{\givenposition}{##1}}
\newcommand{\Rdescription}[1]{\renewcommand{\givendescription}{##1}}
\newenvironment{experiences}{
\begin{minipage}{0.25\linewidth}
\textbf{\givencompany}, \givenlocation \\
\givenposition \\
{\small \givendates}
\end{minipage}%
\begin{minipage}{0.75\linewidth}
% \emph{\givendescription}
\begin{itemize}
}
{\end{itemize}\end{minipage}\vspace{0.5em}}
}{}
% ProjectName, Description, link
\newcommand{\projectHeader}[3]{
\textbf{#1}\\
\emph{#2}\\
\texttt{#3}
}
%----------------------------------------------------------------------------------------------------
%CLEANUP
%----------------------------------------------------------------------------------------------------
\makeatother
\endinput