summaryrefslogtreecommitdiff
path: root/latex_styles/cv_sty.sty
blob: 33f1b834eccf5a82ae1e00916c1645a858c3d145 (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
%% PACKAGES %%
\RequirePackage[english]{babel} % multilingual support
\RequirePackage[utf8]{inputenc} % encoding
\RequirePackage{graphicx}
\RequirePackage{tikz}
\RequirePackage{fontawesome}
\RequirePackage{multicol}

% Set the default font
\RequirePackage{tgpagella}

% set the page layout
\RequirePackage{geometry}
\geometry{
  a4paper,
  left=20mm,
  %right=
  %bottom=
  top=15mm}

% to write a short phrase on the document
\usepackage{verse}
\newcommand{\attrib}[1]{%
\nopagebreak{\raggedleft\footnotesize #1\par}}
\renewcommand{\poemtitlefont}{\normalfont\large\itshape\centering}

% empty the headers, footers, pagenumbers…
%\pagestyle{empty}

% Custom sectioning with secsty
\RequirePackage{sectsty}

% For links
\RequirePackage[citecolor=blue, urlcolor=blue, colorlinks, linkcolor=black]{hyperref}

\sectionfont{%                        
  \large % make sections smaller
  \fontfamily{qag}\selectfont % change font family
  \sectionrule{0pt}{0pt}{-5pt}{0.7pt} % insert a thin rule
}

%% BIBLIOGRAPHY FOR PAPERS %%  
\RequirePackage[style=numeric-comp,%
sorting=ydnt,%
maxbibnames=3,%
minbibnames=3,%
maxcitenames=1,%
mincitenames=1,%
isbn=false,%
url=false,%
doi=false,%
eprint=false,%
related=false]{biblatex}
\renewbibmacro{in:}{}
% then remove these two properties to avoid printing the "visited on" string on the URL
\AtEveryBibitem{
    \clearfield{urlyear}
    \clearfield{urlmonth}
}

%% MACROS %%
% size of the boxes used to align text
\newlength{\spacebox}
\settowidth{\spacebox}{12345678912345}
% vertical space separator between entries
\newcommand{\sepspace}{\vspace*{1.8em}}

% name
\newcommand{\name}[1]{
\Huge % font size
\fontfamily{phv}\selectfont % font family
% print name centered and bold
\begin{center} \textbf{#1} \end{center}\par
% back to normal size and font
\normalsize\normalfont}

% motto
\newcommand{\motto}[1]{
  \large % font size
  \fontfamily{phv}\selectfont % font family
% print motto centered and slanted
  \begin{center} \textsl{#1}\end{center}\par
% back to normal size and font
  \normalsize \normalfont}

% picture
\newcommand{\avatar}[1]{
  \begin{tikzpicture}[baseline=(ola.center),inner sep=0pt]
    \clip (0,0)  circle (2cm) node (ola) {\includegraphics[width=4cm]{#1}};
  \end{tikzpicture}
}

% personal information
\newcommand{\info}[2]{
  % set specific indentation for personal information
  \noindent\hangindent=2em\hangafter=0
  % create a box to align two pieces of text
  \parbox{\spacebox}{%
    \textsl{#1}} % slanted entry name
  #2 \par} % entry value

% skill
\newcommand{\skill}[2]{
  % set specific indentation for personal information
  \noindent\hangindent=1em\hangafter=0
  % create a box to align two pieces of text
  \parbox{2.5\spacebox}{% three times larger box
    \textsc{#1}} % small caps entry name
  #2 \par} % entry value

% specific skill
\newcommand{\sskill}[2]{
  % set specific indentation for personal information
  \noindent\hangindent=1em\hangafter=0
  % create a box to align two pieces of text
  \parbox{2\spacebox}{% three times larger box
    \textsc{#1}} % small caps entry name
  \linebreak[4]
  \parbox{0.5\spacebox}{#2} \par \vspace{1em}} % entry value

% language level
\newcommand{\lang}[3]{
  % set specific indentation for personal information
  \noindent\hangindent=2em\hangafter=0
  % create a box to align two pieces of text
  \parbox{\spacebox}{%
    \textbf{#1}} % bold font entry name
  \parbox{\spacebox}{#2}
  #3 \par}    % entry value

% education entry
\newcommand{\education}[4]{
  % name of the studies
  \noindent  \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faMapPin \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faQuoteLeft \quad \small #4 
  % back to normal size
  \normalsize \par}

% work experience
\newcommand{\work}[4]{
  % name of the work
  \noindent \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faMapPin \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faBriefcase \quad \small #4 
  % back to normal size
  \normalsize \par}

% grants and fellowships
\newcommand{\grant}[4]{
  % name of the work
  \noindent \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faUniversity \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faCheckSquareO \quad \small #4 
  % back to normal size
  \normalsize \par}

% teaching experience
\newcommand{\teaching}[4]{
  % name of the work
  \noindent \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faGraduationCap \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faHourglassEnd \quad \small #4 
  % back to normal size
  \normalsize \par}

% students supervised
\newcommand{\student}[4]{
  % name of the work
  \noindent \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faUniversity \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faCheckSquareO \quad \small #4 
  % back to normal size
  \normalsize \par}

% awards obtained
\newcommand{\award}[4]{
  % name of the work
  \noindent \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faTrophy \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faQuoteLeft \quad \small #4 
  % back to normal size
  \normalsize \par}

% participation in conferences
\newcommand{\conf}[4]{
  % name of the work
  \noindent \textbf{#1}
  % at the right the duration
  \hfill 
  \framebox{% duration inside a frame box
    \parbox{7em}{%
      \centering\textbf{#2}}} \par
  % new paragraph with the school in italics
  \vspace{1em} \noindent\hangindent=2em\hangafter=0 \faUsers \quad \textit{#3} \par
  % description with no hanging and in smaller text
  \vspace*{0.5em}
  \noindent\hangindent=2em\hangafter=0 \faQuoteLeft \quad \small #4 
  % back to normal size
  \normalsize \par}