summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe ROGER <darwiin@users.noreply.github.com>2020-03-24 18:16:41 +1100
committerChristophe ROGER <darwiin@users.noreply.github.com>2020-03-24 18:16:41 +1100
commit4ed80cb8222c1566167ef321a3bb0ae8c838f245 (patch)
treea9c196c3a5f0d34c8eb2f1ae8a6c8f553d2be35a
parentb05d8a965311c344acfbc1fa394de283578359f5 (diff)
downloadcv-4ed80cb8222c1566167ef321a3bb0ae8c838f245.tar.gz
cv-4ed80cb8222c1566167ef321a3bb0ae8c838f245.tar.bz2
cv-4ed80cb8222c1566167ef321a3bb0ae8c838f245.tar.xz
cv-4ed80cb8222c1566167ef321a3bb0ae8c838f245.zip
v2.2.1 - Fix for previous evolution that add a way to change left column
-rwxr-xr-xexample/cv.tex7
-rwxr-xr-xyaac-another-awesome-cv.cls18
2 files changed, 19 insertions, 6 deletions
diff --git a/example/cv.tex b/example/cv.tex
index ef6dfb0..6b567d1 100755
--- a/example/cv.tex
+++ b/example/cv.tex
@@ -24,7 +24,9 @@
}
% Uncomment the following line and use a value from 1.5cm to 2.5cm
-% \setleftcolumnlength{2.5cm}
+%\setleftcolumnlength{2.5cm}
+
+
\begin{document}
@@ -35,6 +37,9 @@
{\textsc{Christophe Roger - CV}}
{\thepage}
+\showthe\leftcolumnlength
+\showthe\rightcolumnlength
+
\input{section_headline_archi}
\input{section_competences} % Section compétence
\input{section_experience_short} % Section expérience
diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls
index 266c458..a711e4d 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.2.0 'YAAC: Another Awesome CV' Class]
+\ProvidesClass{yaac-another-awesome-cv}[2020/03/24 v2.2.1 'YAAC: Another Awesome CV' Class]
\def\@@ptsize{10pt}
@@ -170,15 +170,23 @@
}
%New length definition
-\newlength{\rightcolumnlength}
-\setlength{\rightcolumnlength}{15.3cm minus 1cm}
+\newlength{\fulllength}
+\setlength{\fulllength}{17.8cm}
\newlength{\leftcolumnlength}
\setlength{\leftcolumnlength}{2.5cm}
+\newlength{\rightcolumnlength}
+%\setlength{\rightcolumnlength}{15.3cm minus 1cm}
+%\setlength{\rightcolumnlength}{\dimexpr(\fulllength-\leftcolumnlength)\relax}
+\setlength{\rightcolumnlength}{\dimexpr(\fulllength-\leftcolumnlength)\relax}
+
% Override default left column length of (2.5cm)
% Usage: \setleftcolumnlength{<length>}
-\newcommand{\setleftcolumnlength}[1]{\setlength{\leftcolumnlength}{#1}}
+\newcommand{\setleftcolumnlength}[1]{
+ \setlength{\leftcolumnlength}{#1}
+ \setlength{\rightcolumnlength}{\dimexpr(\fulllength-\leftcolumnlength)\relax}
+}
% Font Awesome icons aliases
\newcommand{\mailSymbol}{\faAt}
@@ -451,7 +459,7 @@
\newcommand\consultantexperience[9]{
\textbf{#1} & \textbf{#2, \textsc{#3}, #4} \\*
\textbf{#5} & \emph{#6} pour \textsc{#7} \\*
- & \begin{minipage}[t]{\rightcolumnlength}
+ & \begin{minipage}[t]{\rightcolumnlength}
#8
\end{minipage} \\*
& \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} \\