From 0a565e6ef4dfd09a07e1342bb712dd284dac7882 Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Sat, 5 Sep 2015 07:26:56 +1100 Subject: Added FontAwesome icons to section title Added macro to handle section title Move some config elements to ResumeMacros.sty --- ResumeMacros.sty | 31 ++++++++++++++++++++++++++- competences.tex | 3 +-- cv.tex | 52 ++++++++++++--------------------------------- experience_compact.tex | 2 +- langues.tex | 2 +- scolarite.tex | 2 +- section_references_demo.tex | 3 +-- 7 files changed, 49 insertions(+), 46 deletions(-) diff --git a/ResumeMacros.sty b/ResumeMacros.sty index 968c7ed..153ba19 100755 --- a/ResumeMacros.sty +++ b/ResumeMacros.sty @@ -2,10 +2,39 @@ \RequirePackage{fontawesome} +%Config +%Setup hyperref package, and colours for links +\RequirePackage{hyperref} +\definecolor{linkcolour}{rgb}{0,0.2,0.6} +\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour} + +%FONTS +\defaultfontfeatures{Mapping=tex-text} +\setmainfont[BoldFont = Helvetica Neue, ItalicFont=Helvetica Neue Thin Italic ,SmallCapsFont = Helvetica Neue Light]{Helvetica Neue Thin} + +%CV Sections +\titleformat{\section}{\Large\raggedright}{}{0em}{}[\titlerule] +\titlespacing{\section}{0pt}{2pt}{2pt} + +%New length definition +\newlength{\datebox} +\settowidth{\datebox}{Décembre 2009} + +% Macros \newcommand{\el}{\quad - \enspace} \newcommand\user[2]{\color{Blue}{\LARGE #1 #2}\color{Black}} \newcommand\linkedin[2]{\faLinkedin \quad \href{#1}{#2}} \newcommand\address[1]{\faHome \quad #1} \newcommand\infos[1]{\faInfo \quad #1} \newcommand\smartphone[1]{\faMobilePhone \quad #1} -\newcommand\email[2]{\faEnvelope \quad \href{mailto:#1}{#2}} \ No newline at end of file +\newcommand\email[2]{\faEnvelope \quad \href{mailto:#1}{#2}} + +\newcommand\resumetitle[1]{ + \par{ + \bigskip\center{\Large #1}\par + } + \bigskip +} +%Resume part title definition +\newcommand\sectiontitle[2]{\section{\texorpdfstring{\color{Blue}#2\enspace #1}{#1}}} + diff --git a/competences.tex b/competences.tex index be3370e..d5cb1c1 100755 --- a/competences.tex +++ b/competences.tex @@ -1,8 +1,7 @@ %Section compétences -\section{\texorpdfstring{\color{Blue}Compétences}{Compétences}} +\sectiontitle{Compétences}{\faTasks} \renewcommand{\arraystretch}{1.1} - \begin{tabular}{>{\small}r>{\small}p{13cm}} \textsc{Langages de programmation:} & Java (\textbf{JEE}, \textbf{JSE}, JME, Java Card Platform), Microsoft .Net (\textbf{C\#},asp.net)\\ \textsc{Programmation web:} & ZK, JSP, JSF, JBoss RichFaces, Javascript, jQuery, AngularJS, Bootstrap, LESS, CSS\\ diff --git a/cv.tex b/cv.tex index 825f880..b672af4 100755 --- a/cv.tex +++ b/cv.tex @@ -7,40 +7,20 @@ \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{marvosym} -\usepackage{fontspec} %for loading fonts -\usepackage{xunicode,xltxtra,url,parskip} %other packages for formatting +\usepackage{fontspec} % for loading fonts +\usepackage{xunicode,xltxtra,url,parskip} % other packages for formatting %\RequirePackage{color,graphicx} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{fullpage} -\usepackage{longtable} %for Grades -\usepackage{titlesec} %custom \section +\usepackage{longtable} % for Grades +\usepackage{titlesec} % custom \section \usepackage[margin=1.5cm]{geometry} -%Setup hyperref package, and colours for links -\usepackage{hyperref} -\definecolor{linkcolour}{rgb}{0,0.2,0.6} -\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour} - % Include custom package \usepackage{ResumeMacros} \usepackage{DemoMode} -%FONTS -\defaultfontfeatures{Mapping=tex-text} -%\setmainfont[SmallCapsFont = Fontin Sans Small Caps]{Fontin Sans Regular} -\setmainfont[BoldFont = Helvetica Neue, ItalicFont=Helvetica Neue Thin Italic ,SmallCapsFont = Helvetica Neue Light]{Helvetica Neue Thin} - -%CV Sections inspired by: -\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] -\titlespacing{\section}{0pt}{2pt}{2pt} -%Tweak a bit the top margin -%\addtolength{\voffset}{-1.3cm} - - -\newlength{\datebox} -\settowidth{\datebox}{Décembre 2009} - %Italian hyphenation for the word: ''corporations'' \hyphenation{im-pre-se} @@ -58,26 +38,22 @@ %--------------------BEGIN DOCUMENT---------------------- \begin{document} -\pagestyle{empty} % non-numbered pages -\font\fb=''[cmr10]'' % for use with \LaTeX command -\demotrue % Set Demo mode to true +\demotrue % Set Demo mode to true +\pagestyle{empty} % non-numbered pages +\font\fb=''[cmr10]'' % for use with \LaTeX command -\conditionalinput{section_perso_demo}{section_perso} % Personal data section -%--------------------TITLE------------- -\par{ - \bigskip\center{\Large Architecte logiciel | Développeur/Concepteur JEE}\par - } -\bigskip +\conditionalinput{section_perso_demo}{section_perso} % Personal data section +\resumetitle{Architecte logiciel | Développeur/Concepteur JEE} %--------------------SECTIONS----------------------------------- \input{headline} -\input{competences} % Section compétence -\input{experience_compact} % Section expérience -\input{langues} % Section langues -\input{scolarite} -%\input{interets} +\input{competences} % Section compétence +\input{experience_compact} % Section expérience +\input{langues} % Section langues +\input{scolarite} % Section scholarité +%\input{interets} % Section intérêts \conditionalinput{section_references_demo}{references} % Section références \end{document} \ No newline at end of file diff --git a/experience_compact.tex b/experience_compact.tex index 24f3ab2..bbf33b1 100755 --- a/experience_compact.tex +++ b/experience_compact.tex @@ -1,5 +1,5 @@ %Section: Work Experience at the top -\section{\texorpdfstring{\color{Blue}Expérience Professionelle}{Expérience Professionelle}} +\sectiontitle{Expérience Professionelle}{\faBriefcase} %\renewcommand{\labelitemi}{$\bullet$} \begin{longtable}{R{2.5cm}|p{14.8cm}} \emph{Aujourd'hui} & \textsc{Architecte logiciel | Développeur/Concepteur Senior JEE, CAFAT, Nouvelle-Calédonie} \\ diff --git a/langues.tex b/langues.tex index 21ab852..e44d26c 100755 --- a/langues.tex +++ b/langues.tex @@ -1,5 +1,5 @@ %Section: Languages -\section{\texorpdfstring{\color{Blue}Langues}{Langues}} +\sectiontitle{Langues}{\faLanguage} \begin{tabular}{>{\small}r>{\small}l} \parbox{\datebox}{\raggedleft\textsc{Français:}}&Langue maternelle\\ \textsc{Anglais:}&Maîtrise de l'anglais technique\\ diff --git a/scolarite.tex b/scolarite.tex index 61c90b2..0f8bab3 100755 --- a/scolarite.tex +++ b/scolarite.tex @@ -1,5 +1,5 @@ %Section: Scholarships and additional info -\section{\texorpdfstring{\color{Blue}Formation}{Formation}} +\sectiontitle{Formation}{\faMortarBoard} \begin{tabular}{>{\small}r>{\small}p{14cm}} \parbox{\datebox}{\raggedleft 2007} & Master STIC Professionel filière MBDS de l'Université de Nice Sophia Antipolis (Master Informatique spécialité Multimédia, Base de Données et diff --git a/section_references_demo.tex b/section_references_demo.tex index 9dcf392..de517a9 100755 --- a/section_references_demo.tex +++ b/section_references_demo.tex @@ -1,6 +1,5 @@ %Section: Références -\section{\texorpdfstring{\color{Blue}Références}{Références}} - +\sectiontitle{Références}{\faGroup} \begin{tabular}{>{\small}r >{\small}p{8cm} >{\small}r >{\small}l} \multicolumn{2}{l}{\textsc{First Reference}, \emph{Dummy Position}, DummyCompany} & \multicolumn{2}{l}{\textsc{Second Reference}, \emph{Fake Position}, Fake Corp } \\ \quad \faMobilePhone & +33 0 00 00 00 00 & \quad \faMobilePhone & +33 0 00 00 00 04\\ -- cgit v1.2.3