-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.cls
67 lines (57 loc) · 1.18 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
\ProvidesClass{resume}[Resume Class]
\LoadClass[11pt, a4paper]{article}
\usepackage[left=1.5cm,top=1.5cm,right=1.5cm,bottom=1.5cm]{geometry}
\usepackage[parfill]{parskip}
\usepackage{lmodern}
\pagestyle{empty}
\def \name#1{\def\@name{#1}}
\def \@name {}
\def \printname{
\begingroup
\hfill{\namestyle\namesize \@name}\hfill
\nameskip\break
\endgroup
}
\def \email#1{\def\@email{#1}}
\def \@email {}
\def \printcontact{
\begingroup
\centerline{\emailstyle \@email}
\smallskip\break
\endgroup
}
\let\old@document=\document
\renewcommand{\document}{
\old@document
\printname
\printcontact
}
\newenvironment{res-section}[1]{
\sectionskipbefore
{\bfseries\sffamily #1}
\sectionskipafter
\hrule
\begin{list}{}{
\setlength{\leftmargin}{1.5em}
}
\item[]
}{
\end{list}
}
\newenvironment{res-subsection}[2]{
{\bfseries\sffamily #1} \hfill {\it #2}
\begin{list}{--}{
\setlength{\leftmargin}{1.5em}
}
\itemsep -0.5em \vspace{-0.5em}
\item[]
}{
\end{list}
\vspace{0.5em}
}
\def\namestyle{\bfseries\sffamily}
\def\namesize{\huge}
\def\nameskip{\bigskip}
\def\emailstyle{\ttfamily}
\def\sectionskipbefore{\medskip}
\def\sectionskipafter{\medskip}