-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjoycv.sty
68 lines (47 loc) · 2.83 KB
/
joycv.sty
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
\reversemarginpar
% ???
\newcommand{\MarginDate}[1]{\marginpar{\raggedleft\itshape\small#1}}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[LabelsAligned]{currvita}
\usepackage[nochapters]{classicthesis}
\usepackage{url}
\usepackage{enumitem}
\usepackage{xunicode} \usepackage{fontspec} \usepackage{xltxtra}
\usepackage{graphicx}
\usepackage{float}
% CUSTOMIZE
% \usepackage[right=1cm]{geometry}
% FONTS
\defaultfontfeatures{Mapping=tex-text} % this is just part of fontspec boilerplate
\renewcommand{\cvheadingfont}{\LARGE\color{Maroon}}
\renewcommand{\cvlistheadingfont}{\large}
\renewcommand{\cvlabelfont}{\qquad}
\ProvidesPackage{joycv}
% Setup hyperref package, and colours for links, text and headings
\usepackage{hyperref}
\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon}
\newlength{\datebox}\settowidth{\datebox}{FEV 1985--NOV 2011}
\newlength{\trainingdatebox}\settowidth{\trainingdatebox}{\textit{\small{NOV 1985}}}
\newlength{\langbox}\settowidth{\langbox}{Portuguese}
\newcommand{\NewWorkExperience}[3]{\noindent\hangindent=2em\hangafter=0 \parbox{\datebox}{\textit{#1}}\hspace{1.5em} #2 #3%
\vspace{0.5em}}
\newcommand{\NewTraining}[2]{\noindent\hangindent=2em\hangafter=0 \parbox{\trainingdatebox}{\textit{\small{#1}}}\hspace{1.5em}\small{#2}\vspace{0.5em}}
\newcommand{\NewConference}[3]{\noindent\hangindent=2em\hangafter=0 \parbox{\trainingdatebox}{\textit{\small{#1}}}\hspace{1.5em} \small{#2 #3}%
\vspace{0.5em}}
\newcommand{\TrainingInstitution}[1]{\noindent\hangindent=2em\hangafter=0 \parbox{\trainingdatebox}{}\hspace{1.5em}\small{#1}\vspace{0.5em}}
\newcommand{\Sep}{\vspace{2em}}
\newcommand{\TrainingSep}{\vspace{0.2em}{\centering{\textbf{$\cdotp$}\par\normalsize}}\vspace{0.3em}}
\newcommand{\Highlights}[2]{\vspace{0.75em}\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{#1}\vspace{0.3em}\footnotesize{#2}\par\normalsize}
\newcommand{\Author}[1]{\spacedallcaps{#1}}
\newcommand{\PlaceAndDateOfBirth}[2]{\NewWorkExperience{}{\textit{#1}, }{#2}}
\newcommand{\Contact}[2]{\NewWorkExperience{#1}{#2}{}}
\newcommand{\Section}[1]{\vspace{1.75em}\noindent\spacedlowsmallcaps{#1}\vspace{0.75em}}
\newcommand{\Description}[2]{\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{\MarginDate{#1}#2}\par\normalsize}
\newcommand{\SimpleDescription}[1]{\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{#1}\par\normalsize}
\newcommand{\Profile}[1]{\raggedright\footnotesize{#1}\par\normalsize}
\newcommand{\Publication}[1]{\raggedright\footnotesize{#1}\par\normalsize}
\newcommand{\Tech}[1]{\textsc{Tech:} #1}
% Pretty contacts
\newcommand{\Twitter}[1]{\Contact{\includegraphics[width=12pt]{twitter-blue-cropped}}{\href{http://twitter.com/#1}{@#1}}}
\newcommand{\LinkedIn}[1]{\Contact{\includegraphics[width=12pt]{linkedin-logo}}{\href{http://linkedin.com/in/#1}{http://linkedin.com/in/#1}}}