bywyd/bywyd.sty

88 lines
2.3 KiB
Text
Raw Normal View History

2023-12-11 15:35:41 +01:00
\NeedsTeXFormat{LaTeX2e}
2023-12-11 16:37:08 +01:00
\ProvidesPackage{bywyd}[2023/11/12 LimeCV template]
\newif\ifoption@fr
\DeclareOption{fr}{\option@frtrue}
\newif\ifoption@blue
\DeclareOption{blue}{\option@bluetrue}
2024-10-09 18:47:20 +02:00
\pgfkeys{/@cv/names/motivation = Motivation}
2023-12-11 16:37:08 +01:00
\ProcessOptions
\ifoption@fr
2024-10-09 16:43:58 +02:00
% Langue
\RequirePackage[french]{babel}
\RequirePackage{csquotes}
\MakeOuterQuote{"}
\AtBeginDocument{
\cvSetLanguage{french}
\pgfkeys{/@cv/names/education = Formations}
\pgfkeys{/@cv/names/experience = Expériences professionnelles}
}
2023-12-11 16:37:08 +01:00
\fi
\ifoption@blue
2024-10-09 16:43:58 +02:00
% Thème bleue
\definecolor{cvGreenLight}{HTML}{99ecff} % Barre
\definecolor{cvGreen}{HTML}{75b0d8} % Couleur accent
\definecolor{cvAccent}{HTML}{3a3e66} % Texte barre
2023-12-11 16:37:08 +01:00
\fi
\RequirePackage[margin=\cvMargin,top=0pt,bottom=0pt]{geometry}
2024-06-05 20:54:24 +02:00
\RequirePackage[nopatch=footnote]{microtype} % Font
2024-05-03 01:13:44 +02:00
2023-12-11 16:37:08 +01:00
% Données
\newcommand{\cvAuthorName}[2]{\gdef\@authorfname{#1}\gdef\@authorlname{#2}}
\newcommand{\cvDocumentTitle}[1]{\gdef\@documenttitle{#1}}
\newcommand{\cvFirstname}{\@authorfname}
\newcommand{\cvLastname}{\textsc{\selectfont \@authorlname}}
\newcommand{\cvTitle}{\@documenttitle}
% Métadonnées
\AtBeginDocument{
2023-12-13 16:08:12 +01:00
\hypersetup{
pdfauthor={\@authorfname\ \@authorlname},
2024-10-09 16:43:58 +02:00
pdftitle={\@authorfname\ \@authorlname\ - \@documenttitle},
2023-12-13 16:08:12 +01:00
pdfsubject={curriculum vit\ae\ de \@authorfname\ \@authorlname},
pdfkeywords={\@authorfname\ \@authorlname, curriculum vit\ae},
pdfcreator={LaTeX with limecv class and bywyd template},
% Cache les liens
2024-10-09 16:43:58 +02:00
hidelinks
}
2023-12-11 16:37:08 +01:00
}
% Alias
\newcommand{\tb}{\textbullet}
% Pas de notes pour les compétences
\makeatletter
\NewDocumentCommand{\cvSkillTwoNR}{mm}{
\ifcv@firstskill
2024-10-09 16:43:58 +02:00
\color{black}
\g@addto@macro\cv@skillsTable{\tb\ #1 & \tb\ #2}
\cv@firstskillfalse
2023-12-11 16:37:08 +01:00
\else
2024-10-09 16:43:58 +02:00
\color{black}
\g@addto@macro\cv@skillsTable{\\[\cvSkillSep]\tb\ #1 & \tb\ #2}
2023-12-11 16:37:08 +01:00
\fi
}
2024-10-09 18:47:20 +02:00
\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} };
}
2023-12-11 16:37:08 +01:00
\makeatother
2023-12-13 16:08:16 +01:00
2023-12-13 16:12:12 +01:00
% Souligne mieux les mots
2023-12-13 16:08:16 +01:00
\newcommand{\ul}[1]{\underline{\smash{#1}}}