summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe ROGER <darwiin@users.noreply.github.com>2019-09-18 08:11:32 +1100
committerGitHub <noreply@github.com>2019-09-18 08:11:32 +1100
commita3b1fa69749a350721df02d72a65372788a254d3 (patch)
treeaa1e5713b67224042d15d7267ae2031982760261
parentc2014aa91ec2915d1beb52d5f09720e6b078a7b5 (diff)
parentb05d8a965311c344acfbc1fa394de283578359f5 (diff)
downloadcv-a3b1fa69749a350721df02d72a65372788a254d3.tar.gz
cv-a3b1fa69749a350721df02d72a65372788a254d3.tar.bz2
cv-a3b1fa69749a350721df02d72a65372788a254d3.tar.xz
cv-a3b1fa69749a350721df02d72a65372788a254d3.zip
Merge pull request #44 from darwiin/evo-left-column-width
v2.2.0 : Create a command to change the left column size
-rwxr-xr-xREADME.md12
-rwxr-xr-xexample/cv.tex3
-rwxr-xr-xyaac-another-awesome-cv.cls18
3 files changed, 26 insertions, 7 deletions
diff --git a/README.md b/README.md
index e15e044..f626154 100755
--- a/README.md
+++ b/README.md
@@ -137,6 +137,18 @@ Use the `\makecvheader`command to generate the header.
\makecvheader
```
+### Set the left column size
+
+Sections share the left column size (2.5cm by default). You can change this default size using the `\setleftcolumnlength` command.
+
+```latex
+% Override default left column length of (2.5cm) (optional)
+% Usage: \setleftcolumnlength{1.5cm} to change the left column lengtyh to 1.5cm
+% I recommend to use a size between 1.5cm to 2.5cm
+\setleftcolumnlength{1.5cm}
+``
+
+
### Construct the _comptences_ or _skills_ section
To list your awesome skills as keyword lists you first have to declare the `keywords` environment and then fill it with a list of keywordsentry
diff --git a/example/cv.tex b/example/cv.tex
index 27d5b39..ef6dfb0 100755
--- a/example/cv.tex
+++ b/example/cv.tex
@@ -23,6 +23,9 @@
\infos{Né le 23 septembre 1982 (35 ans) à Nouméa, Nouvelle-Calédonie}
}
+% Uncomment the following line and use a value from 1.5cm to 2.5cm
+% \setleftcolumnlength{2.5cm}
+
\begin{document}
\makecvheader
diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls
index 1ad960f..266c458 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/09/10 v2.1.0 'YAAC: Another Awesome CV' Class]
+\ProvidesClass{yaac-another-awesome-cv}[2019/09/10 v2.2.0 'YAAC: Another Awesome CV' Class]
\def\@@ptsize{10pt}
@@ -171,10 +171,14 @@
%New length definition
\newlength{\rightcolumnlength}
-\setlength{\rightcolumnlength}{14.8cm}
+\setlength{\rightcolumnlength}{15.3cm minus 1cm}
-\newlength{\leftcolumn}
-\setlength{\leftcolumn}{2.5cm}
+\newlength{\leftcolumnlength}
+\setlength{\leftcolumnlength}{2.5cm}
+
+% Override default left column length of (2.5cm)
+% Usage: \setleftcolumnlength{<length>}
+\newcommand{\setleftcolumnlength}[1]{\setlength{\leftcolumnlength}{#1}}
% Font Awesome icons aliases
\newcommand{\mailSymbol}{\faAt}
@@ -382,7 +386,7 @@
}
% Define a new column type for the scholarship environment
-\newcolumntype{Y}{>{\raggedleft}p{\leftcolumn}}
+\newcolumntype{Y}{>{\raggedleft}p{\leftcolumnlength}}
% Define the 'scholarship' environment
\newenvironment{scholarship}{%
@@ -399,7 +403,7 @@
% Define the 'skills' environment
\newenvironment{skills}{%
- \begin{longtable}{R{\leftcolumn}p{\rightcolumnlength}}
+ \begin{longtable}{R{\leftcolumnlength}p{\rightcolumnlength}}
}{%
\end{longtable}
}
@@ -414,7 +418,7 @@
% Define the 'experiences' environment
\newenvironment{experiences}{%
- \begin{longtable}{R{\leftcolumn}|E}
+ \begin{longtable}{R{\leftcolumnlength}|E}
}{%
\end{longtable}
}