-
Notifications
You must be signed in to change notification settings - Fork 0
/
GuillaumeSeren.sty
126 lines (101 loc) · 3.28 KB
/
GuillaumeSeren.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
\ProvidesPackage{GuillaumeSeren}
\RequirePackage{metalogo}
% moderncv themes
% optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
\moderncvtheme[orange]{classic}
% character encoding
\usepackage[utf8]{inputenc}
\linespread{0.9}
\setlength{\hintscolumnwidth}{3cm}
\hyphenpenalty=10000
\renewcommand{\labelitemi}{-- }
% 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}
\else
\newcommand\githubfont{}
\newcommand\linkedinfont{}
\fi
\usepackage{microtype}
% https://github.com/jnsebgosselin/Curriculum-Vitae/blob/master/friggos-cv.cls
\newfontfamily{\FA}[Path = fonts/]{fontawesome-webfont}
\def\github{\color{gray}{\FA\symbol{"F092}}}
\def\linkedin{\color{gray}{\FA\symbol{"F08C}}}
\def\facebook{\color{gray}{\FA\symbol{"F082}}}
\def\phoneb{\color{gray}{\FA\symbol{"F098}}}
\def\home{\color{gray}{\FA\symbol{"F015}}}
\def\mail{\color{gray}{\FA\symbol{"F0E0}}}
\def\globe{\color{gray}{\FA\symbol{"F0AC}}}
\def\circleFull{\small\color{gray}{\FA\symbol{"F111}}\hspace{0.15cm}}
\def\circleEmpty{\small\color{gray}{\FA\symbol{"F10C}}\hspace{0.15cm}}
\AtBeginDocument{\renewcommand{\labelitemi}{-- }}
\usepackage[firstyear=2002,lastyear=2024]{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
}}%
% makes a https hyperlink
% usage: \httpslink[optional text]{link}
\newcommand*{\httpslink}[2][]{% <=======================================
\ifthenelse{\equal{#1}{}}%
{\href{https://#2}{#2}}%
{\href{https://#2}{#1}}}
% 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]}
% loading / skill progress
% https://tex.stackexchange.com/questions/238898/in-line-graphics-in-text-to-represent-a-loading-bar-for-language-skills-in-a-cv
% \usepackage{tikz}
% \definecolor{frontColor}{rgb}{0.22,0.45,0.70}% light blue
% \definecolor{backColor}{RGB}{200,200,200}% grey
% \newcommand{\grade}[1]{%
% \begin{tikzpicture}
% \clip (1em-.4em,-.35em) rectangle (5em +.5em ,1em);
% \foreach \x in {1,2,...,5}{
% \path[{fill=backColor}] (\x em,0) circle (.35em);
% }
% \begin{scope}
% \clip (1em-.4em,-.35em) rectangle (#1em +.5em ,1em);
% \foreach \x in {1,2,...,5}{
% \path[{fill=frontColor}] (\x em,0) circle (.35em);
% }
% \end{scope}
%
% \end{tikzpicture}%
% }