diff options
author | Christophe ROGER <darwiin@users.noreply.github.com> | 2019-09-10 09:23:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 09:23:05 +1100 |
commit | c2014aa91ec2915d1beb52d5f09720e6b078a7b5 (patch) | |
tree | 7990704629b2d1b7035cda607707b96629389c7a | |
parent | 1a2b75c5a506ab7d227654269c9cce9399183e22 (diff) | |
parent | 442bca4efda3ecafd7f5f2f1e1e780cb1ce48f7e (diff) | |
download | cv-c2014aa91ec2915d1beb52d5f09720e6b078a7b5.tar.gz cv-c2014aa91ec2915d1beb52d5f09720e6b078a7b5.tar.bz2 cv-c2014aa91ec2915d1beb52d5f09720e6b078a7b5.tar.xz cv-c2014aa91ec2915d1beb52d5f09720e6b078a7b5.zip |
Merge pull request #43 from darwiin/evo-reducing-entries-spaces
Reduce vertical spacing in the experience section
Fixes #40
-rwxr-xr-x | README.md | 9 | ||||
-rwxr-xr-x | example/cv.tex | 2 | ||||
-rwxr-xr-x | yaac-another-awesome-cv.cls | 13 |
3 files changed, 21 insertions, 3 deletions
@@ -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/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}
diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls index e002a33..1ad960f 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,14 @@ & \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} \\ } -\newcommand\emptySeparator{\multicolumn{2}{c}{}\\} +% Define the empty separator macro with different spacing according to document class option 'compact' +\if@isCompact + \newcommand\emptySeparator{\multicolumn{2}{c}{}\\[-0.6em]} +\else + \newcommand\emptySeparator{\multicolumn{2}{c}{}\\} +\fi + + % Define the 'projects' environment \newenvironment{projects}{% |