aboutsummaryrefslogtreecommitdiff
path: root/resume/resume.cls
blob: e9fc2e6e143ea9083731a13beba4be46caf8920b (plain)
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{joris-cv}[2015/11/27 Joris CV class]
\LoadClass[10pt]{article}

\RequirePackage[hmargin=3cm,tmargin=2cm,bmargin=3.5cm,footskip=2cm]{geometry}

\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{fp,etoolbox,marvosym,bookman,titlesec,hyperref,tabularx,graphicx,fancyhdr,changepage,lastpage,ulem}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage[inline]{enumitem}
\RequirePackage{xifthen}

\setlength{\parindent}{0pt}
\color[HTML]{303030} % Default foreground color
\definecolor{link}{HTML}{505070}
\hypersetup{colorlinks,breaklinks,urlcolor=link,linkcolor=link}
\setlength{\tabcolsep}{0pt}

\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\renewcommand{\headrulewidth}{0pt}
\cfoot{\thepage\ / \pageref{LastPage}}

\newcommand{\header}[5] {
  \begin{minipage}[t]{0.65\textwidth}
    \centering
    {\Huge #1} \\
    \vspace{0.6em}
    {\Large #2} \\
  \end{minipage}
  \begin{minipage}[t]{0.35\textwidth}
    \begin{flushright}
      \vspace{-1.3em}
      \personal{#3}{#4}{#5}
    \end{flushright}
  \end{minipage}
  \vspace{1em}
}

\newcommand{\personal}[3] {
  \begin{tabular}{p{15pt}l}
    \iconLink{externalLink.png}{#1}{#1}
    \iconLink{git.png}{#2#3}{#3}
  \end{tabular}
}

\newcommand{\iconLink}[3] {
  \includegraphics[width=8px]{#1} & \href{#2}{\sf\small#3} \vspace{0.3em} \\
}

\titleformat{\section}
  {\LARGE\scshape\raggedright\color{brown}} % format
  {} % label
  {0em} % sep
  {} % before code
  [\titlerule\vspace{1em}] % after

\titleformat
  {\subsection} % command
  {\large\raggedright\bf} % format
  {} % label
  {0em} % sep
  {} % before code
  [\vspace{0.5em}] % after

\newcommand{\position}[6] {
  {\large\bf #1} \hspace{0.2em} {\color{gray}#2} \vspace{0.5em}

  {\color{OliveGreen}#3} \vspace{0.5em}

  \ifthenelse{\isempty{#4}}{}{#4 \vspace{1em}}

  \ifthenelse{\isempty{#5}}{}{#5 \vspace{1em}}

  \ifthenelse{\isempty{#6}}{}{#6 \vspace{1em}}

  \vspace{0.8em}
}

\newenvironment{bullets} {
  \vspace{-0.5em}
  \begin{enumerate}[label=\color{brown}$\bullet$,leftmargin=0.5cm]\itemsep2pt
} {
  \end{enumerate}
  \vspace{-0.5em}
}

\newenvironment{technos} {
  \begin{enumerate*}[label={}]
} {
  \end{enumerate*}
}

\newcommand{\techno}[1] {
  \hspace{-0.2cm}
  {\color{gray}\uline{\textcolor{black}{#1}}}
  \hspace{0.1cm}
}