From 023e0ba0b3fe5e1065a5022340b7ed04f3de8063 Mon Sep 17 00:00:00 2001 From: Christophe ROGER Date: Tue, 10 Sep 2019 08:52:42 +1100 Subject: v2.1.0 [EVO] Add a compact option to reduce spaces in experience section --- yaac-another-awesome-cv.cls | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls index e002a33..e2ab894 100755 --- a/yaac-another-awesome-cv.cls +++ b/yaac-another-awesome-cv.cls @@ -17,7 +17,7 @@ % % This work consists of the files awesome-source-cv.cls -\ProvidesClass{yaac-another-awesome-cv}[2019/06/18 v2.0.0 'YAAC: Another Awesome CV' Class] +\ProvidesClass{yaac-another-awesome-cv}[2019/09/10 v2.1.0 'YAAC: Another Awesome CV' Class] \def\@@ptsize{10pt} @@ -30,6 +30,7 @@ \LoadClass[a4paper,\@@ptsize]{article} \newif\if@showLinks \@showLinksfalse +\newif\if@isCompact \@isCompactfalse \DeclareOption{green}{ \def\@green{green} @@ -59,6 +60,7 @@ } \DeclareOption{showLinks}{ \@showLinkstrue} +\DeclareOption{compact}{ \@isCompacttrue} \ProcessOptions @@ -451,7 +453,13 @@ & \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} \\ } -\newcommand\emptySeparator{\multicolumn{2}{c}{}\\} +\if@isCompact + \newcommand\emptySeparator{\multicolumn{2}{c}{}\\[-0.6em]} +\else + \newcommand\emptySeparator{\multicolumn{2}{c}{}\\} +\fi + + % Define the 'projects' environment \newenvironment{projects}{% -- cgit v1.2.3 From 6aab0e0b3a8f15aa9b05e60506e468cfd378bd76 Mon Sep 17 00:00:00 2001 From: Christophe ROGER Date: Tue, 10 Sep 2019 09:08:39 +1100 Subject: [EVO] Add documentation according to new 'compact' document class option --- README.md | 9 +++++++++ yaac-another-awesome-cv.cls | 1 + 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 797c982..e15e044 100755 --- a/README.md +++ b/README.md @@ -38,6 +38,11 @@ More informations about the original Alessandro Plasmati template can be found h ### Use the **YAAC: Another Awesome CV** options When declaring the `\documentclass` you can use option(s) to customize your CV rendering. +1. **localFont** to use the fonts included in the _fonts_ folder +2. **alternative** to use the _alternative header_ layout +3. **10pt** or **11pt** or **12pt** to change the font size +4. **compact** to reduce vertical space between you experience entries + ```latex % Used with no option, the template will use the 'traditional' @@ -57,6 +62,10 @@ When declaring the `\documentclass` you can use option(s) to customize your CV r % Based on the article document class, size options are 10pt, 11pt and 12pt \documentclass[localFont,alternative,10pt]{yaac-another-awesome-cv} +% Used with 'compact' option the template will use the compact experience layout +% Feel free to use this option with the others that are available +\documentclass[compact]{yaac-another-awesome-cv} + ``` ### Construct the header diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls index e2ab894..1ad960f 100755 --- a/yaac-another-awesome-cv.cls +++ b/yaac-another-awesome-cv.cls @@ -453,6 +453,7 @@ & \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} \\ } +% Define the empty separator macro with different spacing according to document class option 'compact' \if@isCompact \newcommand\emptySeparator{\multicolumn{2}{c}{}\\[-0.6em]} \else -- cgit v1.2.3 From 442bca4efda3ecafd7f5f2f1e1e780cb1ce48f7e Mon Sep 17 00:00:00 2001 From: Christophe ROGER Date: Tue, 10 Sep 2019 09:12:36 +1100 Subject: [EVO] Use compact option in example template --- example/cv.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/cv.tex b/example/cv.tex index 3b67a54..27d5b39 100755 --- a/example/cv.tex +++ b/example/cv.tex @@ -10,7 +10,7 @@ % Template license: % CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/) -\documentclass[localFont,alternative,10pt]{yaac-another-awesome-cv} +\documentclass[localFont,alternative,10pt,compact]{yaac-another-awesome-cv} \name{Christophe}{Roger} \tagline{Architecte Logiciel | Développeur/Concepteur Senior Java/JEE} \photo{2.5cm}{darwiin} -- cgit v1.2.3