bywyd/bywyd.sty

65 lines
1.7 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}
\ProcessOptions
\ifoption@fr
% Langue
\RequirePackage[french]{babel}
\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
2023-12-11 16:54:36 +01:00
\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}
% 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},
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}
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
\color{black}
\g@addto@macro\cv@skillsTable{\tb\ #1 & \tb\ #2}
\cv@firstskillfalse
\else
\color{black}
\g@addto@macro\cv@skillsTable{\\[\cvSkillSep]\tb\ #1 & \tb\ #2}
\fi
}
\makeatother