diff --git a/bywyd.sty b/bywyd.sty index acb9b2b..ded4bf5 100644 --- a/bywyd.sty +++ b/bywyd.sty @@ -7,6 +7,8 @@ \newif\ifoption@blue \DeclareOption{blue}{\option@bluetrue} +\pgfkeys{/@cv/names/motivation = Motivation} + \ProcessOptions \ifoption@fr % Langue @@ -66,6 +68,19 @@ \g@addto@macro\cv@skillsTable{\\[\cvSkillSep]\tb\ #1 & \tb\ #2} \fi } + +\NewDocumentCommand{\cv@motivText}{}{} +\NewDocumentCommand{\cvMotivationText}{m}{ + \RenewDocumentCommand{\cv@motivText}{}{#1} +} +\NewDocumentEnvironment{cvMotivation}{}{ + \cv@Title{\pgfkeysvalueof{/@cv/names/motivation}}{\faBolt} + \RenewDocumentCommand{\cv@motivText}{}{} +}{ + \node[below=\cvSectionSep of cv@title \the\value{cv@titlePrev}.south west, + anchor=north west] (skills) + { \parbox{\cvMainWidth}{\cv@motivText} }; +} \makeatother % Souligne mieux les mots