\ProvidesClass{awesome-source-cv}[2016/09/20 v1.2 Awesome Source CV Class] \LoadClass[11pt,a4paper]{article} \newcommand{\setColors}[3] { \newcommand{\accentColor}{\color{#1}} \newcommand{\linkColor}{\color{#1}} \newcommand{\symbolcolor}{\textcolor{#1}} } \newcommand{\resetColors}[3] { \renewcommand{\accentColor}{\color{#1}} \renewcommand{\linkColor}{\color{#1}} \renewcommand{\symbolcolor}{\textcolor{#1}} } \setColors{Blue}{Blue}{Blue} \DeclareOption{green}{ \resetColors{PineGreen}{PineGreen}{PineGreen} } \DeclareOption{red}{ \resetColors{Red}{Red}{Red} } \DeclareOption{myBlue}{ \renewcommand{\accentColor}{\color{myBlue}} \renewcommand{\linkColor}{\color{myBlue}} \renewcommand{\symbolcolor}{\textcolor{myBlue}} } \DeclareOption{localFont}{ \def\@local{local} } \ProcessOptions % Dependences %A Few Useful Packages \RequirePackage[frenchb]{babel} \RequirePackage[T1]{fontenc} \RequirePackage{fontspec} % for loading fonts \RequirePackage{xunicode,xltxtra,url,parskip} % other packages for formatting \RequirePackage[usenames,dvipsnames]{xcolor} \RequirePackage{fullpage} \RequirePackage[margin=1.5cm]{geometry} \RequirePackage{fontawesome} \RequirePackage{hyperref} \RequirePackage{titlesec} \RequirePackage{array} \RequirePackage{enumitem} \RequirePackage{longtable} \RequirePackage{xifthen} \definecolor{myBlue}{HTML}{FF9B1C} % Setup hyperref package, and colours for links \definecolor{linkcolour}{rgb}{0,0.2,0.6} \hypersetup{breaklinks} \pagestyle{empty} % non-numbered pages \font\fb=''[cmr10]'' % for use with \LaTeX command % Setup CV sections \titleformat{\section}{\Large\raggedright}{}{0em}{}[\titlerule] \titlespacing{\section}{0pt}{2pt}{2pt} % Configure list \setlist[itemize,1]{label=\faAngleRight, nosep, leftmargin=2em} % Setup Array : new column type \newcolumntype{R}[1]{>{\hfill}m{#1}} %Italian hyphenation for the word: ''corporations'' \hyphenation{im-pre-se} % Setup fonts \defaultfontfeatures{Mapping=tex-text} % \ifthenelse{\isundefined{\@local}} { %\setmainfont[BoldFont = Helvetica Neue, ItalicFont=Helvetica Neue Thin Italic ,SmallCapsFont = Helvetica Neue Light]{Helvetica Neue Thin} \setmainfont[BoldFont = Source Sans Pro Semibold, ItalicFont=Source Sans Pro Light Italic,SmallCapsFont = Source Sans Pro]{Source Sans Pro Light} } { \setmainfont{SourceSansPro-Light}[ Path = fonts/, BoldFont = SourceSansPro-Semibold, ItalicFont = SourceSansPro-LightIt, SmallCapsFont = SourceSansPro-Regular] } %New length definition \newlength{\datebox} \settowidth{\datebox}{Décembre 2009} \newlength{\rightcolumnlength} \setlength{\rightcolumnlength}{14.8cm} \newlength{\leftcolumn} \setlength{\leftcolumn}{2.5cm} % Macros \newcommand{\mailSymbol}{\faAt} \newcommand{\locationSymbol}{\faMapMarker} \newcommand{\infoSymbol}{\faInfo} \newcommand{\linkedinSymbol}{\faLinkedin} \newcommand{\viadeoSymbol}{\faViadeo} \newcommand{\mobileSymbol}{\faMobilePhone} \newcommand{\githubSymbol}{\faGithub} \newcommand\link[2]{\linkColor\href{#1}{#2}\color{Black} } \newcommand\important[1]{\textbf #1} % Render author's name % Usage: \user{}{} \newcommand\user[2]{\accentColor{\LARGE #1 \textbf{#2}}\color{Black}} % Username % Render a text with its symbol % Usage; \socialtext{}{