378 lines
11 KiB
TeX
378 lines
11 KiB
TeX
\ProvidesClass{yaac-another-awesome-cv}[2018/07/19 v1.9.2 'YAAC: Another Awesome CV' Class]
|
|
|
|
\LoadClass[a4paper]{article}
|
|
|
|
\newif\if@showLinks \@showLinksfalse
|
|
|
|
\DeclareOption{showLinks}{ \@showLinkstrue}
|
|
|
|
\ProcessOptions
|
|
|
|
% Dependences
|
|
%A Few Useful Packages
|
|
\RequirePackage[english,french]{babel}
|
|
\RequirePackage{url,parskip} % other packages for formatting
|
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
|
\RequirePackage{fullpage}
|
|
\RequirePackage[margin=1.5cm]{geometry}
|
|
\RequirePackage{hyperref}
|
|
\RequirePackage{titlesec}
|
|
\RequirePackage{array}
|
|
\RequirePackage{enumitem}
|
|
\RequirePackage{longtable}
|
|
\RequirePackage{etoolbox}
|
|
\RequirePackage{tikz}
|
|
\RequirePackage[skins]{tcolorbox}
|
|
\RequirePackage{fancyhdr}
|
|
|
|
|
|
% Define default accent colors
|
|
\definecolor{basecolor}{HTML}{000066} %BLUE
|
|
|
|
\ifundef{\@green} {
|
|
\ifundef{\@red} {
|
|
\ifundef{\@indigo}{
|
|
\ifundef{\@orange} {
|
|
\ifundef{\@monochrome} {}
|
|
{ \definecolor{basecolor}{HTML}{000000}}
|
|
}
|
|
{ \definecolor{basecolor}{HTML}{e68a00} }
|
|
}
|
|
{ \definecolor{basecolor}{rgb}{0.2, 0.07, 0.48} }
|
|
}
|
|
{ \definecolor{basecolor}{HTML}{b30000} } %RED
|
|
}
|
|
{ \definecolor{basecolor}{rgb}{0.0, 0.62, 0.38} }
|
|
|
|
\definecolor{darkGrey}{HTML}{989898}
|
|
|
|
\colorlet{linkcolor}{basecolor}
|
|
\colorlet{accentcolor}{linkcolor!90}
|
|
\colorlet{symbolcolor}{linkcolor!85}
|
|
|
|
% Setup hyperref package, and colours for links
|
|
%\definecolor{linkcolour}{rgb}{0,0.2,0.6}
|
|
|
|
\if@showLinks
|
|
\hypersetup{%
|
|
breaklinks
|
|
}%
|
|
\else
|
|
\hypersetup{%
|
|
pdfborder = {0 0 0},
|
|
breaklinks
|
|
}%
|
|
\fi
|
|
|
|
% Setup fancyhdr package
|
|
\fancyhf{}
|
|
\fancyhfoffset{0em}
|
|
% Remove head rule
|
|
\renewcommand{\headrulewidth}{0pt}
|
|
%\fancyfoot[C]{\thepage}
|
|
\pagestyle{fancy}
|
|
|
|
%\pagestyle{empty} % non-numbered pages
|
|
%\font\fb=''[cmr10]'' % for use with \LaTeX command
|
|
|
|
% Setup CV sections
|
|
\titleformat{\section}{\Large\raggedright}{}{0em}{}[\titlerule]
|
|
\titlespacing{\section}{0pt}{2pt}{2pt}
|
|
|
|
% Configure list
|
|
\setlist[itemize,1]{label=-, nosep, leftmargin=2em}
|
|
\setlist[itemize,2]{label=-, nosep, leftmargin=1.5em}
|
|
|
|
% Setup Array : new column type
|
|
\newcolumntype{R}[1]{>{\hfill}m{#1}}
|
|
|
|
%Italian hyphenation for the word: ''corporations''
|
|
\hyphenation{im-pre-se}
|
|
|
|
%New length definition
|
|
\newlength{\rightcolumnlength}
|
|
\setlength{\rightcolumnlength}{14.8cm}
|
|
|
|
\newlength{\leftcolumn}
|
|
\setlength{\leftcolumn}{2.5cm}
|
|
|
|
\newcommand{\cvtag}[1]{%
|
|
\tikz[baseline]\node[anchor=base,draw=darkGrey!70,rounded corners=0.5ex,inner xsep=1ex,inner ysep =0.55ex,text height=1.3ex,text depth=.25ex]{#1};
|
|
}
|
|
|
|
% % Render author's name
|
|
% % Usage: \user{<firstanme>}{<lastname>}
|
|
% \newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textsc{\textbf{#2}}}\color{Black}}
|
|
%
|
|
% % Render a text with its symbol
|
|
% % Usage; \socialtext{<icon>}{<label>}
|
|
% \newcommand{\socialtext}[2]{\mbox{\textcolor{symbolcolor}{#1}\hspace{0.5em}#2\hspace{1em}}}
|
|
%
|
|
% % Render a link with its symbol
|
|
% % Usage; \sociallink{<icon>}{<label>}
|
|
% \newcommand{\sociallink}[3]{\mbox{\textcolor{symbolcolor}{#1}\hspace{0.5em}\link{#2}{#3}\hspace{1em}}}
|
|
%
|
|
% % Define author's name
|
|
% % Usage: \name{<firstname>}{<lastname>}
|
|
% % Usage: \firstname{<firstname>}
|
|
% % Usage: \lastname{<lastname>}
|
|
% % Usage: \familyname{<familyname>}
|
|
% \newcommand*{\name}[2]{\def\@firstname{#1}\def\@lastname{#2}}
|
|
% \newcommand*{\firstname}[1]{\def\@firstname{#1}}
|
|
% \newcommand*{\lastname}[1]{\def\@lastname{#1}}
|
|
% \newcommand*{\familyname}[1]{\def\@lastname{#1}}
|
|
% \def\@familyname{\@lastname}
|
|
%
|
|
% % Define author's tagline
|
|
% % Usage: \tagline{<tag line>}
|
|
% \newcommand*{\tagline}[1]{\def\@tagline{#1}}
|
|
%
|
|
% % Define author's photo
|
|
% % Usage \photo{<diameter>}{<photo>}
|
|
% \newcommand{\photo}[2]{\def\@photo{#2}\def\@photodiameter{#1}}
|
|
%
|
|
% % Render author's address
|
|
% % Usage: \address{<address>}
|
|
% \newcommand*{\address}[1]{\socialtext{}{#1}}
|
|
%
|
|
% % Render author's infos
|
|
% % Usage: \infos{<infos>}
|
|
% \newcommand*{\infos}[1]{\socialtext{}{#1}}
|
|
%
|
|
% % Render author's linked-in (optional)
|
|
% % Usage: \linkedin{<linked-in-nick>}
|
|
% \newcommand*{\linkedin}[1]{\sociallink{}{http://www.linkedin.com/in/#1/fr}{linkedin.com/in/#1}}
|
|
%
|
|
% % Render author's viadeo(optional)
|
|
% % Usage: \viadeo{<viadeo-nick>}
|
|
% \newcommand*{\viadeo}[1]{\sociallink{}{http://www.viadeo.com/fr/profile/#1}{viadeo.com/fr/profile/#1}}
|
|
%
|
|
% % Render author's github (optional)
|
|
% % Usage: \github{<github-nick>}
|
|
% \newcommand*{\github}[1]{\sociallink{}{https://www.github.com/#1}{github.com/#1}} % Github icon + URL
|
|
%
|
|
% % Render author's email (optional)
|
|
% % Usage: \email{<email adress>}
|
|
% \newcommand*{\email}[1]{\sociallink{}{mailto:#1}{#1}}
|
|
%
|
|
% % Render a website link (optional)
|
|
% % Usage: \email{<email adress>}
|
|
% \newcommand*{\website}[2]{\sociallink{}{#1}{#2}}
|
|
%
|
|
% % Render author's mobile phone (optional)
|
|
% % Usage: \smartphone{<mobile phone number>}
|
|
% \newcommand*\smartphone[1]{\socialtext{}{#1}}
|
|
%
|
|
% % Render author's tagline
|
|
% \newcommand\resumetitle[1]{
|
|
% \ifundef{\@alternative}{
|
|
% \par{
|
|
% \bigskip\center{\Large \color{accentcolor}\textbf{#1}\color{Black}}\par
|
|
% }
|
|
% \bigskip
|
|
% }{
|
|
% \color{accentcolor}\textbf{\large{#1}}\color{black}
|
|
% }
|
|
% }
|
|
%
|
|
% \newcommand\idphoto{
|
|
% \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth];
|
|
% }
|
|
%
|
|
% % Define social entries to print in header
|
|
% \newcommand{\socialinfo}[1]{\def\@socialinfo{#1}}
|
|
%
|
|
% % Render CV header
|
|
% % Needs \@firstname, \@lastname and \@tagline to be defined
|
|
% \newcommand*{\makecvheader}{
|
|
% \ifundef{\@alternative}{
|
|
% \ifundef{\@photodiameter}{
|
|
% \begin{minipage}{\linewidth}
|
|
% }{
|
|
% \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em}
|
|
% }
|
|
% \color{accentcolor}\user{\@firstname}{\@lastname}\color{black}\\
|
|
% \small{\@socialinfo}
|
|
% \end{minipage}
|
|
% \ifdef{\@photodiameter}{
|
|
% \begin{minipage}{\@photodiameter}
|
|
% \idphoto
|
|
% \end{minipage}
|
|
% }{}
|
|
% \resumetitle{\@tagline}
|
|
% }{
|
|
% \ifundef{\@photodiameter}{
|
|
% \begin{minipage}{\linewidth}
|
|
% }{
|
|
% \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em}
|
|
% }
|
|
% \user{\@firstname}{\@lastname}\\
|
|
% \resumetitle{\@tagline}
|
|
% \smallskip\\
|
|
% \small{\@socialinfo}
|
|
% \end{minipage}
|
|
% \ifdef{\@photodiameter}{
|
|
% \begin{minipage}{\@photodiameter}
|
|
% \idphoto
|
|
% \end{minipage}
|
|
% }{}
|
|
% \bigskip
|
|
% }
|
|
% }
|
|
%
|
|
% % Define a footer for CV
|
|
% % Usage: \makecvfooter{<left>}{<center>}{<right>}
|
|
% \newcommand*{\makecvfooter}[3]{%
|
|
% \fancyfoot{}
|
|
% \fancyfoot[L]{#1}
|
|
% \fancyfoot[C]{#2}
|
|
% \fancyfoot[R]{#3}
|
|
% }
|
|
%
|
|
% % Resume part title definition
|
|
% \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace \textsc{#1}}{#1}}}
|
|
%
|
|
% % Define the 'keywords' environment
|
|
% \newenvironment{keywords}{%
|
|
% \renewcommand{\arraystretch}{1.1}
|
|
%
|
|
% \begin{tabular}{>{}r>{}p{13cm}}
|
|
% }{%
|
|
% \end{tabular}
|
|
% }
|
|
%
|
|
% % Render a scholarshipentry in the scolarship environment
|
|
% % Usage: \scholarshipentry{<date>}{<description>}
|
|
% \newcommand\keywordsentry[2]{
|
|
% \textbf{#1} & #2\\
|
|
% }
|
|
%
|
|
% % Define a new column type for the scholarship environment
|
|
% \newcolumntype{Y}{>{\raggedleft}p{\leftcolumn}}
|
|
%
|
|
% % Define the 'scholarship' environment
|
|
% \newenvironment{scholarship}{%
|
|
% \begin{tabular}{Y p{\rightcolumnlength}}
|
|
% }{%
|
|
% \end{tabular}
|
|
% }
|
|
%
|
|
% % Render a scholarshipentry in the scolarship environment
|
|
% % Usage: \scholarshipentry{<date>}{<description>}
|
|
% \newcommand\scholarshipentry[2]{
|
|
% #1 & #2 \\
|
|
% }
|
|
%
|
|
% % Define the 'skills' environment
|
|
% \newenvironment{skills}{%
|
|
% \begin{longtable}{R{\leftcolumn}p{\rightcolumnlength}}
|
|
% }{%
|
|
% \end{longtable}
|
|
% }
|
|
%
|
|
% % Render a skill in the skills environment
|
|
% % Usage: \skill{<skill>}{<level>}
|
|
% \newcommand\skill[2]{
|
|
% \textbf{#1} & \foreach \x in {1,...,5}{{\color{accentcolor!80} \ifnumgreater{\x}{#2}{}{}}\enspace } \\
|
|
% }
|
|
%
|
|
% \newcolumntype{E}{>{\raggedright\arraybackslash}p{\rightcolumnlength}}
|
|
%
|
|
% % Define the 'experiences' environment
|
|
% \newenvironment{experiences}{%
|
|
% \begin{longtable}{R{\leftcolumn}|E}
|
|
% }{%
|
|
% \end{longtable}
|
|
% }
|
|
%
|
|
% % Render an experience in the experiences environment
|
|
% % Usage:
|
|
% % \experience
|
|
% % {<End date>} {<Title>}{<Enterprise>}{<Country>}
|
|
% % {<Start date} {
|
|
% % <Experience description (Could be a list)>
|
|
% % }
|
|
% % {<Technology list>}
|
|
% \newcommand\experience[7]{
|
|
% \textbf{#1} & \textbf{#2, \textsc{#3}, #4} \\*
|
|
% \textbf{#5} & \begin{minipage}[t]{\rightcolumnlength}
|
|
% #6
|
|
% \end{minipage} \\*
|
|
% & \footnotesize{\foreach \n in {#7}{\cvtag{\n}}} \\
|
|
% }
|
|
%
|
|
% % Render a consultant experience in the experiences environment
|
|
% % Usage:
|
|
% % \consultantexperience
|
|
% % {<End date>} {<Consultant title>}{<Consulting Enterprise>}{<Country>}
|
|
% % {<Start date} {<Client title>}{<Client business unit>}
|
|
% % {
|
|
% % <Experience description (Could be a list)>
|
|
% % }
|
|
% % {<Technology list>}
|
|
% \newcommand\consultantexperience[9]{
|
|
% \textbf{#1} & \textbf{#2, \textsc{#3}, #4} \\*
|
|
% \textbf{#5} & \emph{#6} pour \textsc{#7} \\*
|
|
% & \begin{minipage}[t]{\rightcolumnlength}
|
|
% #8
|
|
% \end{minipage} \\*
|
|
% & \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} \\
|
|
% }
|
|
%
|
|
% \newcommand\emptySeparator{\multicolumn{2}{c}{}\\}
|
|
%
|
|
% % Define the 'projects' environment
|
|
% \newenvironment{projects}{%
|
|
% \begin{longtable}{l}
|
|
% }{%
|
|
% \end{longtable}
|
|
% }
|
|
%
|
|
% % Define the 'project' entry in the 'projects' environment
|
|
% % Usage:
|
|
% % \project
|
|
% % {<Project name>}{<dates>}
|
|
% % {<link1> <link2>}
|
|
% % {<Project description>}
|
|
% % {<techno1>,<techno2>}
|
|
% \newcommand\project[5]{
|
|
% \begin{minipage}[t]{\dimexpr(\linewidth) - 1.5em}
|
|
% \textbf{\textsc{#1}} \hfill \textsc{#2}\smallskip\\
|
|
% #3\\
|
|
% #4\smallskip\\
|
|
% \footnotesize{\foreach \n in {#5}{\cvtag{\n}}}\\
|
|
% \end{minipage}
|
|
% \\*
|
|
% }
|
|
%
|
|
%
|
|
% \newcommand*\twocolumnsection[2]{
|
|
% \begin{minipage}[t]{\dimexpr(\linewidth/2) - 3em}
|
|
% #1
|
|
% \end{minipage}
|
|
% \hfill
|
|
% \begin{minipage}[t]{\dimexpr(\linewidth/2) - 3em}
|
|
% #2
|
|
% \end{minipage}
|
|
% }
|
|
%
|
|
% % Define the 'referencees' environment
|
|
% \newenvironment{referees}{%
|
|
% }{%
|
|
% \hfill
|
|
% \bigskip
|
|
% }
|
|
%
|
|
% \newcommand*\referee[5]{
|
|
% \hspace{1em}
|
|
% \begin{minipage}[t]{\dimexpr(\linewidth/3) - 3em}
|
|
% \begin{tabular}{>{}l >{}l}
|
|
% \multicolumn{2}{l}{\textbf{#1}}\\
|
|
% \multicolumn{2}{l}{\emph{#2}, \textsc{#3}}\\
|
|
% \quad & \href{mailto:#4}{#4} \\
|
|
% \quad & #5 \\
|
|
% \end{tabular}
|
|
% \end{minipage}%
|
|
% }
|
|
%
|
|
|