-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.cls
74 lines (62 loc) 路 2.02 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
68
69
70
71
72
73
74
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume}[2018/05/21 resume]
\LoadClass{article}
% % UTF8
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[frenchb]{babel}
\RequirePackage{titlesec} % For neater titles
\RequirePackage{geometry} % For page layout
\RequirePackage{fontawesome} % For icons
\RequirePackage{hyperref} % For links
\RequirePackage[dvipsnames]{xcolor} % For colors
\RequirePackage{graphicx} % For images
\pagenumbering{gobble} % Remove page numbering
\graphicspath{ {images/} }
\definecolor{red}{RGB}{213,75,61}
\definecolor{grey}{RGB}{106,115,124}
\definecolor{blue}{RGB}{17,120,179}
% Margins
\geometry{
left=10mm,
right=10mm,
top=10mm,
bottom=15mm,
}
\titleformat{\section} % Customise the \section command
{\Large\scshape\raggedright} % Make the \section headers large (\Large),
% small capitals (\scshape) and left aligned (\raggedright)
{}{0em} % Can be used to give a prefix to all sections, like 'Section ...'
{} % Can be used to insert code before the heading
[\titlerule] % Inserts a horizontal line after the heading
\titleformat{\subsection}
{\large\scshape\raggedright}
{}{0em}
{}
\newcommand{\datedsubsection}[2]{%
\subsection[#1]{\textbf{#1} \hfill \small\textbf{#2}}%
}
\newcommand{\name}[1]{
\centerline{\textbf{\textit{\Huge{#1}}}}
}
% Skill title
\newcommand{\skilltitle}[1]{
\vspace{2mm}
\textbf{#1} \\
}
% Skill description
\newcommand{\skilldesc}[1]{
\vspace{2mm}
#1 \\
}
\renewcommand\labelitemi{$\textendash$}
\newcommand{\graphicslink}[2] {\href{#2}{\includegraphics[width=27mm]{#1}}}
\newcommand{\workitems}[4]{
\renewcommand\labelitemi{}
\begin{itemize}
\item \color{red}\large{\faEnvelope} {\href{mailto:#1}{\texttt{#1}}}
\item \color{grey}\large{\faGithub} {\href{https://www.#2}{#2}}
\item \color{blue}\large{\faLinkedin} {\href{https://www.#3}{#3}}
\item \color{OliveGreen}\large{\faPhone} {\texttt{#4}}
\end{itemize}
}