From ec6efcf92736d28dfb1a531010a957b10062deb0 Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Thu, 29 Sep 2016 18:25:51 +1100 Subject: Style renaming source-awesome-cv.cls -> awesome-source-cv.cls Local font used --- README.md | 9 +- awesome-source-cv.cls | 218 +++++++++++++++++++++++++++++++++++ cv.tex | 14 +-- fonts/SourceSansPro-Black.otf | Bin 0 -> 234176 bytes fonts/SourceSansPro-BlackIt.otf | Bin 0 -> 81120 bytes fonts/SourceSansPro-Bold.otf | Bin 0 -> 235128 bytes fonts/SourceSansPro-BoldIt.otf | Bin 0 -> 80392 bytes fonts/SourceSansPro-ExtraLight.otf | Bin 0 -> 221580 bytes fonts/SourceSansPro-ExtraLightIt.otf | Bin 0 -> 76400 bytes fonts/SourceSansPro-It.otf | Bin 0 -> 79724 bytes fonts/SourceSansPro-Light.otf | Bin 0 -> 226032 bytes fonts/SourceSansPro-LightIt.otf | Bin 0 -> 77816 bytes fonts/SourceSansPro-Regular.otf | Bin 0 -> 229588 bytes fonts/SourceSansPro-Semibold.otf | Bin 0 -> 232680 bytes fonts/SourceSansPro-SemiboldIt.otf | Bin 0 -> 80316 bytes source-awesome-cv.cls | 210 --------------------------------- 16 files changed, 229 insertions(+), 222 deletions(-) create mode 100755 awesome-source-cv.cls create mode 100755 fonts/SourceSansPro-Black.otf create mode 100755 fonts/SourceSansPro-BlackIt.otf create mode 100755 fonts/SourceSansPro-Bold.otf create mode 100755 fonts/SourceSansPro-BoldIt.otf create mode 100755 fonts/SourceSansPro-ExtraLight.otf create mode 100755 fonts/SourceSansPro-ExtraLightIt.otf create mode 100755 fonts/SourceSansPro-It.otf create mode 100755 fonts/SourceSansPro-Light.otf create mode 100755 fonts/SourceSansPro-LightIt.otf create mode 100755 fonts/SourceSansPro-Regular.otf create mode 100755 fonts/SourceSansPro-Semibold.otf create mode 100755 fonts/SourceSansPro-SemiboldIt.otf delete mode 100755 source-awesome-cv.cls diff --git a/README.md b/README.md index b95b3c0..4a6bb74 100755 --- a/README.md +++ b/README.md @@ -1,17 +1,16 @@ -Source Awesome CV [![Example](https://img.shields.io/badge/Exemple-pdf-blue.svg)](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/resume.pdf) +Awesome Source CV [![Example](https://img.shields.io/badge/Exemple-pdf-blue.svg)](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/resume.pdf) ================= -Latex CV based on CV template created by Alessandro Plasmati. The original templates utilizes _XeLaTeX_ engine and _Fontin_ font. +Latex CV based on CV template created by Alessandro Plasmati. The original templates use _XeLaTeX_ engine and _Fontin_ font. More informations can be found here : - [ Scribd ](http://fr.scribd.com/doc/16335667/Writing-your-Professional-CV-with-LaTeX) - [ LaTeX Templates ](http://www.latextemplates.com/template/plasmati-graduate-cv) - [ ShareLatex ](https://www.sharelatex.com/templates/cv-or-resume/professional-cv) -I choose to move _Personal data_ on top of the page just before the professional title. I've also replaced default font by _[Source Sans Pro Font](https://github.com/adobe-fonts/source-sans-pro)_ -and included _Font Awesome_ items. +I choose to move _Personal data_ on top of the page just before the professional title. I've also replaced default font by _[Source Sans Pro Font](https://github.com/adobe-fonts/source-sans-pro)_ and included _[Font Awesome](http://fontawesome.io/)_ icons. -I've chosen to cut my resume in a couple of smaller files and to add some macro to make the main latex source code more readable. +I've chosen to cut my resume in a couple of smaller files and to create a class file to make the main latex source code more readable. ```latex % Define author's name diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls new file mode 100755 index 0000000..b0f12cc --- /dev/null +++ b/awesome-source-cv.cls @@ -0,0 +1,218 @@ +\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}} +} +\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{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{}{