-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathRaphaelPinson.sty
104 lines (83 loc) · 2.49 KB
/
RaphaelPinson.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
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
%% Copyright 2011-2017 Raphaël Pinson ([email protected]).
\ProvidesPackage{RaphaelPinson}
%\RequirePackage[pdftex]{hyperref}
\RequirePackage{metalogo}
% moderncv themes
\moderncvtheme[blue]{classic} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{casual} % idem
% character encoding
%\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[scale=0.8]{geometry}
\usepackage{ifxetex,ifluatex}
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\ifxetexorluatex
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\newfontfamily{\githubfont}{Octicons}
\newfontfamily{\linkedinfont}{Myriad Pro}
\else
\newcommand\githubfont{}
\newcommand\linkedinfont{}
\fi
\usepackage{microtype}
\newcommand\octocat{{\githubfont\char"F20A}}
\newcommand\linkedin{%
\scalebox{0.7}{%
\begin{tikzpicture}[baseline]%
\node[fill=color2,rounded corners=2pt,anchor=base] {%
\linkedinfont\bfseries\upshape\color{white}{in}%
};%
\end{tikzpicture}}}
% personal data
\firstname{Rapha\"el}
\familyname{Pinson}
%\address{Chemin du Jura 3}{1041~Poliez-le-Grand}{Switzerland}
%\mobile{+41 78 402 84 33}
\phone{+41 78 402 84 33}
%\fax{fax (optional)} % optional, remove the line if not wanted
\email{[email protected]}
%\homepage{www.raphink.info}
%\extrainfo{\octocat~\url{http://github.com/raphink}}
\photo[64pt]{identity}
\AtBeginDocument{\renewcommand{\labelitemi}{-- }}
\usepackage[firstyear=1999,lastyear=2024,marksyr]{moderntimeline}
%\tlmaxdates{1999}{2012}
\tlwidth{0.8ex}
% Proper alignment
\usepackage[originalcommands]{ragged2e}
\renewcommand*{\cvcomputer}[4]{%
\cvdoubleitem{#1}{\small\raggedright#2}{#3}{\small\raggedright#4}}
% Not all fonts have an sl shape
\renewcommand*{\cventry}[6]{%
\cvline{#1}{%
{\bfseries#2}%
\ifx#3\else{, {\itshape#3}}\fi%
\ifx#4\else{, #4}\fi%
\ifx#5\else{, #5}\fi%
.%
\ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
}}%
% Refine quote
\newcommand*{\myquote}[2]{%
\quote{\itshape #1 \\ \scshape \footnotesize #2}}
% Hobbies
\newcommand*{\cvhobby}[2]{\cvline{#1}{\small #2}}
% Developer/Contributor footnotes
\usepackage[bottom,norule,symbol*]{footmisc}
\newcommand*{\devnotes}[2]{%
\vfill
\footnotetext[1]{#1}
\footnotetext[2]{#2}
}
\newcommand*{\developer}{\footnotemark[1]}
\newcommand*{\contributor}{\footnotemark[2]}