-
Notifications
You must be signed in to change notification settings - Fork 1
/
cv.cls
106 lines (87 loc) · 2.08 KB
/
cv.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
% cv.sty
% Yet another cv style.
% 2013-07-12 Bartosz Witkowski - [email protected]
\ProvidesClass{cv}[2013/07/12]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% document options {
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions \relax
\LoadClass{article}
\RequirePackage{color}
\RequirePackage[
top = 3cm,
bottom= 2.5cm,
left=3cm,
right=2cm]{geometry}
\RequirePackage{hyperref}
\pagestyle{empty}
\renewcommand{\section}[1]{
\vskip 2.0ex
\noindent
\textcolor[rgb]{0.5,0.5,0.5}{\rule{1.5cm}{7.5pt}}
{\Large \textsc{#1}}
\noindent
\vskip 1.0ex
\nobreak
}
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% full name and header {
\def \@fullname{None}
\newcommand{\fullname}[1]{\def \@fullname{#1}}
\newcommand{\mkheader}{
\hypersetup{
pdftitle={\@fullname - Curriculum Vitae},
pdfauthor={\@fullname}
}
{\centering{\Large{\textsc{Curriculum Vitae}}} \\}
{\centering{\LARGE{\textsc{\@fullname}}} \\}
\vskip 3ex
}
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% environments {
\renewenvironment{itemize}
{
\let \@@olditem \item
\renewcommand{\item}[2][]{
{##1} {##2} \\ \noalign{\vskip 1mm}
}
\noindent
\begin{tabular}[t]{@{}p{\linewidth}@{}}
} {
\end{tabular}
\renewcommand{\item}[2][]{
\@@olditem[##1]{##2}
}
}
\renewenvironment{description}
{
\let \@olditem \item
\renewcommand{\item}[2][]{
\begin{hyphenrules}{nohyphenation}
\textsc{##1}
\end{hyphenrules}
& ##2 \\
}
\begin{tabular}{@{}p{0.25 \linewidth} p{0.65\linewidth}@{}}
} {
\end{tabular}
\renewcommand{\item}[2][]{
\@olditem[##1]{##2}
}
}
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% footer {
\newcommand{\footer}[1]{
\null \vfill
\begin{center}
\textsf {
\textcolor[rgb]{0.3,0.3,0.3}{
\scriptsize #1
}
}
\end{center}
}
% }