Add motivation env

This commit is contained in:
Mylloon 2024-10-09 18:47:20 +02:00
parent 00fb037971
commit fb62bc4266
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -7,6 +7,8 @@
\newif\ifoption@blue \newif\ifoption@blue
\DeclareOption{blue}{\option@bluetrue} \DeclareOption{blue}{\option@bluetrue}
\pgfkeys{/@cv/names/motivation = Motivation}
\ProcessOptions \ProcessOptions
\ifoption@fr \ifoption@fr
% Langue % Langue
@ -66,6 +68,19 @@
\g@addto@macro\cv@skillsTable{\\[\cvSkillSep]\tb\ #1 & \tb\ #2} \g@addto@macro\cv@skillsTable{\\[\cvSkillSep]\tb\ #1 & \tb\ #2}
\fi \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 \makeatother
% Souligne mieux les mots % Souligne mieux les mots