From 8786eb5b431c9987acb820525c7e04905344aa0c Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Tue, 18 Oct 2016 07:20:08 +1100 Subject: Added macros and environnement to handle scolarship --- awesome-source-cv.cls | 13 ++++++++++++- section_scolarite.tex | 15 ++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls index 1abf5b4..b1e295f 100755 --- a/awesome-source-cv.cls +++ b/awesome-source-cv.cls @@ -227,6 +227,17 @@ % Resume part title definition \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}} +% Define the 'scolarship' environment +\newenvironment{scolarship}{% + \begin{longtable}{R{\leftcolumn}p{\rightcolumnlength}} +}{% + \end{longtable} +} + +\newcommand\scolarshipentry[2]{ + #1 & #2 \\ +} + % Define the 'skills' environment \newenvironment{skills}{% \begin{longtable}{R{\leftcolumn}p{\rightcolumnlength}} @@ -239,7 +250,7 @@ % \skill{}{} \newcommand\skill[2]{ \textsc{#1} & \foreach \x in {1,...,5}{{\color{accentcolor!80} \ifnumgreater{\x}{#2}{\faCircleO}{\faCircle}}\enspace } \\ - } +} % Define the 'experiences' environment \newenvironment{experiences}{% diff --git a/section_scolarite.tex b/section_scolarite.tex index 288ad8e..69170d0 100755 --- a/section_scolarite.tex +++ b/section_scolarite.tex @@ -11,10 +11,11 @@ %Section: Scholarships and additional info \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 - intégration de Systèmes) \\ - 2004 & BTS Informatique de Gestion option administrateurs de réseaux \\ - 2000 & Baccalauréat Scientifique option Mathématiques -\end{tabular} \ No newline at end of file + +\begin{scolarship} + \scolarshipentry{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 + intégration de Systèmes)} + \scolarshipentry{2004}{BTS Informatique de Gestion option administrateurs de réseaux} + \scolarshipentry{2000}{Baccalauréat Scientifique option Mathématiques} +\end{scolarship} \ No newline at end of file -- cgit v1.2.1 From 814751aacf40201773348f0c9980c6f5cc37f6f7 Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Tue, 18 Oct 2016 22:54:11 +1100 Subject: Improved scolarship environnment --- awesome-source-cv.cls | 6 ++++-- section_scolarite.tex | 11 ++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls index b1e295f..84dfb97 100755 --- a/awesome-source-cv.cls +++ b/awesome-source-cv.cls @@ -227,11 +227,13 @@ % Resume part title definition \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}} +\newcolumntype{D}{>{\raggedleft}p{\leftcolumn}} + % Define the 'scolarship' environment \newenvironment{scolarship}{% - \begin{longtable}{R{\leftcolumn}p{\rightcolumnlength}} + \begin{tabular}{D p{\rightcolumnlength}} }{% - \end{longtable} + \end{tabular} } \newcommand\scolarshipentry[2]{ diff --git a/section_scolarite.tex b/section_scolarite.tex index 69170d0..1d99f1b 100755 --- a/section_scolarite.tex +++ b/section_scolarite.tex @@ -13,9 +13,10 @@ \sectionTitle{Formation}{\faMortarBoard} \begin{scolarship} - \scolarshipentry{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 - intégration de Systèmes)} - \scolarshipentry{2004}{BTS Informatique de Gestion option administrateurs de réseaux} - \scolarshipentry{2000}{Baccalauréat Scientifique option Mathématiques} + \scolarshipentry{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 intégration de Systèmes)} + \scolarshipentry{2004} + {BTS Informatique de Gestion option administrateurs de réseaux} + \scolarshipentry{2000} + {Baccalauréat Scientifique option Mathématiques} \end{scolarship} \ No newline at end of file -- cgit v1.2.1