bywyd/bywyd.sty

75 lines
1.9 KiB
TeX

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bywyd}[2023/11/12 LimeCV template]
\newif\ifoption@fr
\DeclareOption{fr}{\option@frtrue}
\newif\ifoption@blue
\DeclareOption{blue}{\option@bluetrue}
\ProcessOptions
\ifoption@fr
% Langue
\RequirePackage[french]{babel}
\RequirePackage{csquotes}
\MakeOuterQuote{"}
\AtBeginDocument{
\cvSetLanguage{french}
\pgfkeys{/@cv/names/education = Formations}
\pgfkeys{/@cv/names/experience = Expériences professionnelles}
}
\fi
\ifoption@blue
% Thème bleue
\definecolor{cvGreenLight}{HTML}{99ecff} % Barre
\definecolor{cvGreen}{HTML}{75b0d8} % Couleur accent
\definecolor{cvAccent}{HTML}{3a3e66} % Texte barre
\fi
\RequirePackage[margin=\cvMargin,top=0pt,bottom=0pt]{geometry}
\RequirePackage[nopatch=footnote]{microtype} % Font
% 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{
\hypersetup{
pdfauthor={\@authorfname\ \@authorlname},
pdftitle={\@authorfname\ \@authorlname\ - \@documenttitle},
pdfsubject={curriculum vit\ae\ de \@authorfname\ \@authorlname},
pdfkeywords={\@authorfname\ \@authorlname, curriculum vit\ae},
pdfcreator={LaTeX with limecv class and bywyd template},
% Cache les liens
hidelinks
}
}
% Alias
\newcommand{\tb}{\textbullet}
% Pas de notes pour les compétences
\makeatletter
\NewDocumentCommand{\cvSkillTwoNRS}{mmm}{
\ifcv@firstskill
\color{black}
\g@addto@macro\cv@skillsTable{\tb\ #2 & \tb\ #3}
\cv@firstskillfalse
\else
\color{black}
\g@addto@macro\cv@skillsTable{\\[#1]\tb\ #2 & \tb\ #3}
\fi
}
\NewDocumentCommand{\cvSkillTwoNR}{mm}{
\cvSkillTwoNRS{\cvSkillSep}{#1}{#2}
}
\makeatother
% Souligne mieux les mots
\newcommand{\ul}[1]{\underline{\smash{#1}}}