From 54dbbd28b2b52015afc3e7ac8fbc9b4764818c49 Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Wed, 21 Sep 2016 23:25:17 +1100 Subject: Style Renaming README updating --- source-awesome-cv.cls | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100755 source-awesome-cv.cls (limited to 'source-awesome-cv.cls') diff --git a/source-awesome-cv.cls b/source-awesome-cv.cls new file mode 100755 index 0000000..6f22817 --- /dev/null +++ b/source-awesome-cv.cls @@ -0,0 +1,210 @@ +\ProvidesClass{source-awesome-cv}[2016/09/20 v1.2 Source Awesome CV Class] + +\LoadClass[11pt,a4paper]{article} + +\newcommand{\setColors}[3] { + \newcommand{\accentColor}{\color{#1}} + \newcommand{\linkColor}{\color{#1}} + \newcommand{\symbolcolor}{\textcolor{#1}} +} + +\setColors{Blue}{Blue}{Blue} + +\DeclareOption{green}{ + \renewcommand{\accentColor}{\color{PineGreen}} + \renewcommand{\linkColor}{\color{PineGreen}} + \renewcommand{\symbolcolor}{\textcolor{PineGreen}} +} +\DeclareOption{red}{ + \renewcommand{\accentColor}{\color{Red}} + \renewcommand{\linkColor}{\color{Red}} + \renewcommand{\symbolcolor}{\textcolor{Red}} +} +\DeclareOption{myBlue}{ + \renewcommand{\accentColor}{\color{myBlue}} + \renewcommand{\linkColor}{\color{myBlue}} + \renewcommand{\symbolcolor}{\textcolor{myBlue}} +} +\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} + +\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} +%\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} + +%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{}{