summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe ROGER <darwiin@users.noreply.github.com>2019-09-10 09:23:05 +1100
committerGitHub <noreply@github.com>2019-09-10 09:23:05 +1100
commitc2014aa91ec2915d1beb52d5f09720e6b078a7b5 (patch)
tree7990704629b2d1b7035cda607707b96629389c7a
parent1a2b75c5a506ab7d227654269c9cce9399183e22 (diff)
parent442bca4efda3ecafd7f5f2f1e1e780cb1ce48f7e (diff)
downloadcv-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-xREADME.md9
-rwxr-xr-xexample/cv.tex2
-rwxr-xr-xyaac-another-awesome-cv.cls13
3 files changed, 21 insertions, 3 deletions
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/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}{%