From 763b46b9667158510d61ee2396d26a1ba59656fb Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Wed, 21 Sep 2016 12:12:54 +1100 Subject: Renaming style --- simple-awesome-cv.cls | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100755 simple-awesome-cv.cls (limited to 'simple-awesome-cv.cls') diff --git a/simple-awesome-cv.cls b/simple-awesome-cv.cls new file mode 100755 index 0000000..0048b23 --- /dev/null +++ b/simple-awesome-cv.cls @@ -0,0 +1,210 @@ +\ProvidesClass{simple-awesome-cv}[2016/09/20 v1.2 Simple 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{Green}} + \renewcommand{\linkColor}{\color{Green}} + \renewcommand{\symbolcolor}{\textcolor{Green}} +} +\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{}{