From 09f90ba7f4bcfababe000c4f68d87976bf0e5000 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 11 Dec 2023 16:37:08 +0100 Subject: [PATCH] content --- bywyd.sty | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/bywyd.sty b/bywyd.sty index 44778b4..06f92a2 100644 --- a/bywyd.sty +++ b/bywyd.sty @@ -1,3 +1,71 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bywyd}[2023/11/12 LimeCV Template] +\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} + + % Language + \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} + +% 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} + +% Police +\setmainfont[Numbers={Monospaced}]{CMU Bright} + +% 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} + +% Police +\setmainfont[Numbers={Monospaced}]{CMU Bright} + +% 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