-
Notifications
You must be signed in to change notification settings - Fork 0
/
eucv.cls
111 lines (86 loc) · 3.53 KB
/
eucv.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
\ProvidesClass{eucv}[2017/11/17 CV]
% Based on https://www.overleaf.com/latex/templates/cv-template/gsztvcrdvvbj
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{print}{\def\@cv@print{}}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{scrartcl}
}
\ProcessOptions\relax
\LoadClass{scrartcl}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[default,scale=0.95]{opensans}
\usepackage[T1]{fontenc}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{amsmath,amsfonts,amsthm}
\usepackage[pdftex]{graphicx} % include images
\graphicspath{{./images/}}
\usepackage{wrapfig}
\usepackage[hmargin=1.25cm, vmargin=0.7cm]{geometry}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{sidecap}
\usepackage[hidelinks]{hyperref}
\usepackage{float}
\frenchspacing % Better looking spacings after periods
\pagestyle{empty} % No pagenumbers/headers/footers
% Color definitions
\definecolor{date}{HTML}{666666}
\definecolor{primary}{HTML}{191919}
\definecolor{headings}{HTML}{025178}
\definecolor{subheadings}{HTML}{002648}
%%% Custom sectioning (sectsty package)
%%% ------------------------------------------------------------
\usepackage{sectsty}
\sectionfont{\usefont{OT1}{phv}{b}{n}\sectionrule{0pt}{0pt}{-5pt}{3pt}}
\subsectionfont{\color{headings}\usefont{OT1}{phv}{b}{n}}
\subsubsectionfont{\sectionrule{0pt}{0pt}{-5pt}{3pt}}
%%% Macros
%%% ------------------------------------------------------------
\newlength{\spacebox}
\settowidth{\spacebox}{8888888888} % Box to align text
\newcommand{\sepspace}{\vspace*{1em}} % Vertical space macro
\newcommand{\MyName}[1]{ % Name
\huge \usefont{OT1}{phv}{b}{n} \hfill \textcolor{headings}{#1}
\par \normalsize \normalfont}
\newcommand{\MyEmail}[1]{% email
\href{mailto:#1}{#1}
}
\newcommand{\MySkype}[1]{ % email
\href{skype:#1}{#1}
}
\newcommand{\NewPart}[1]{\section*{ \color{headings} \uppercase{#1}}}
\newcommand{\PersonalEntry}[2]{
\noindent\hangindent=2em\hangafter=0 % Indentation
\parbox{\spacebox}{ % Box to align text
\textit{#1}} % Entry name (birth, address, etc.)
\hspace{1.5em} #2 \par} % Entry value
\newcommand{\SkillsEntry}[2]{ % Same as \PersonalEntry
\noindent\hangindent=2em\hangafter=0 % Indentation
\parbox{\spacebox}{ % Box to align text
\textit{#1}} % Entry name (programming language, technology, etc.)
\hspace{1.5em} #2 \par} % Entry value
\newcommand{\WorkEntry}[4]{
\begin{minipage}{0.92\linewidth}
\noindent {\color{subheadings}\bfseries\uppercase {#1}}, {\color{subheadings}\textit{#3}}
\hfill {\color{headings}\fontsize{10pt}{12pt}#2}
\par
\noindent\hangindent=2em\hangafter=0 \small #4 % Description
\normalsize \par
\end{minipage}
}
\newcommand{\EducationEntry}[4]{
\begin{minipage}{0.92\linewidth}
\noindent {\color{subheadings}\bfseries\uppercase {#1}}
\hfill {\color{headings}\fontsize{10pt}{12pt}#2}
\par
\noindent {\color{subheadings}\textit{#3}} \par
\noindent\hangindent=2em\hangafter=0 \small #4 % Description
\normalsize \par
\end{minipage}
}
\newcommand{\Software}[1]{
\includegraphics[height=9pt]{soft/#1}
}
\newcommand{\SoftwareB}[1]{
\raisebox{-.6\height}{\includegraphics[height=18pt]{#1}}
}