%-----------------------------------------------------------------------------------------------------------------------------------------------%
% The MIT License (MIT)
%
% Copyright (c) 2023
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
% THE SOFTWARE.
%
%
%-----------------------------------------------------------------------------------------------------------------------------------------------%
%============================================================================%
%
% DOCUMENT DEFINITION
%
%============================================================================%
%we use article class because we want to fully customize the page and don't use a cv template
\documentclass[10pt]{article}
\renewcommand{\section}[1]{} % I dont want sections
\renewcommand{\subsection}[1]{} % I dont want subsections
\section{Preamble}
\subsection{packages}
\usepackage{eurosym} % for \euro
\usepackage{fancyhdr} % nom sur le dessus
\usepackage{lastpage} % numéro de page à la fin (référence)
%----------------------------------------------------------------------------------------
% ENCODING
%----------------------------------------------------------------------------------------
% we use utf8 since we want to build from any machine
\usepackage[utf8]{inputenc}
%----------------------------------------------------------------------------------------
% LOGIC
%----------------------------------------------------------------------------------------
% provides \isempty test
\usepackage{xstring, xifthen}
%----------------------------------------------------------------------------------------
% FONT BASICS
%----------------------------------------------------------------------------------------
% some tex-live fonts - choose your own
%\usepackage[defaultsans]{droidsans}
%\usepackage[default]{comfortaa}
%\usepackage{cmbright}
%\usepackage[default]{raleway}
%\usepackage{fetamont}
\usepackage[default]{gillius}
%\usepackage[light,math]{iwona}
%\usepackage[thin]{roboto}
% set font default
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
% more font size definitions
\usepackage{moresize}
%----------------------------------------------------------------------------------------
% FONT AWESOME ICONS
%----------------------------------------------------------------------------------------
% include the fontawesome icon set
\usepackage{fontawesome5}
% use to vertically center content
% credits to: http://tex.stackexchange.com/questions/7219/how-to-vertically-center-two-images-next-to-each-other
\newcommand{\vcenteredinclude}[1]{\begingroup
\setbox0=\hbox{\includegraphics{#1}}%
\parbox{\wd0}{\box0}\endgroup}
% use to vertically center content
% credits to: http://tex.stackexchange.com/questions/7219/how-to-vertically-center-two-images-next-to-each-other
\newcommand*{\vcenteredhbox}[1]{\begingroup
\setbox0=\hbox{#1}\parbox{\wd0}{\box0}\endgroup}
% icon shortcut
\newcommand{\icon}[3] {
\makebox(#2, #2){\textcolor{maincol}{\faIcon{#1}}}
}
% icon with text shortcut
\newcommand{\icontext}[4]{
\vcenteredhbox{\icon{#1}{#2}{#3}} \hspace{2pt} \parbox{0.9\mpwidth}{\textcolor{#4}{#3}}
}
% icon with website url
\newcommand{\iconhref}[5]{
\vcenteredhbox{\icon{#1}{#2}{#5}} \hspace{2pt} \href{#4}{\textcolor{#5}{#3}}
}
% icon with email link
\newcommand{\iconemail}[5]{
\vcenteredhbox{\icon{#1}{#2}{#5}} \hspace{2pt} \href{mailto:#4}{\textcolor{#5}{#3}}
}
%----------------------------------------------------------------------------------------
% PAGE LAYOUT DEFINITIONS
%----------------------------------------------------------------------------------------
\subsection{page layout}
% page outer frames (debug-only)
% \usepackage{showframe}
% we use paracol to display breakable two columns
\usepackage{paracol}
% define page styles using geometry
\usepackage[a4paper]{geometry}
% remove all possible margins
%\geometry{top=1cm, bottom=1cm, left=1cm, right=1cm}
% remove all possible margins
\geometry{top=1cm, bottom=1.50cm, left=1cm, right=1cm, footskip=1cm}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
% space between header and content
% \setlength{\headheight}{0pt}
% indentation is zero
\setlength{\parindent}{0mm}
%----------------------------------------------------------------------------------------
% TABLE /ARRAY DEFINITIONS
%----------------------------------------------------------------------------------------
% extended aligning of tabular cells
\usepackage{array}
% custom column right-align with fixed width
% use like p{size} but via x{size}
\newcolumntype{x}[1]{%
>{\raggedleft\hspace{0pt}}p{#1}}%
%----------------------------------------------------------------------------------------
% GRAPHICS DEFINITIONS
%----------------------------------------------------------------------------------------
%for header image
\usepackage{graphicx}
% use this for floating figures
% \usepackage{wrapfig}
% \usepackage{float}
% \floatstyle{boxed}
% \restylefloat{figure}
%for drawing graphics
\usepackage{tikz}
\usetikzlibrary{shapes, backgrounds,mindmap, trees}
%----------------------------------------------------------------------------------------
% Color DEFINITIONS
%----------------------------------------------------------------------------------------
\usepackage{transparent}
\usepackage{color}
\usepackage{xhfill} % for the line
% primary color
\definecolor{maincol}{RGB}{227,5, 19}
% dark color
\definecolor{darkcol}{RGB}{ 70, 70, 70 }
% light color
\definecolor{lightcol}{RGB}{220,220,220}
% Package for links, must be the last package used
\usepackage[hidelinks]{hyperref}
% returns minipage width minus two times \fboxsep
% to keep padding included in width calculations
% can also be used for other boxes / environments
\newcommand{\mpwidth}{\linewidth-\fboxsep-\fboxsep}
%============================================================================%
%
% CV COMMANDS
%
%============================================================================%
%----------------------------------------------------------------------------------------
% CV LIST
%----------------------------------------------------------------------------------------
% renders a standard latex list but abstracts away the environment definition (begin/end)
\newcommand{\cvlist}[1] {
\begin{itemize}{#1}\end{itemize}
}
%----------------------------------------------------------------------------------------
% CV TEXT
%----------------------------------------------------------------------------------------
\subsection{CV text}
% base class to wrap any text based stuff here. Renders like a paragraph.
% Allows complex commands to be passed, too.
% param 1: *any
\newcommand{\cvtext}[1] {
\begin{tabular*}{1\mpwidth}{p{0.98\mpwidth}}
\parbox{1\mpwidth}{#1}
\end{tabular*}
}
%----------------------------------------------------------------------------------------
% CV SECTION
%----------------------------------------------------------------------------------------
\subsection{CV section}
% Renders a a CV section headline with a nice underline in main color.
% param 1: section title
\newcommand{\cvsection}[1] {
\vspace{14pt}
\cvtext{
\textbf{\LARGE{\textcolor{darkcol}{\uppercase{#1}}}}\\[-4pt]
\textcolor{maincol}{ \rule{0.15\textwidth}{2pt}} \\
}
% \xrfill[0ex]{2pt}[lightcol] %to add at 250
}
%----------------------------------------------------------------------------------------
% META SKILL
%----------------------------------------------------------------------------------------
\subsection{CV skill}
% Renders a progress-bar to indicate a certain skill in percent.
% param 1: name of the skill / tech / etc.
% param 2: level (for example in years)
% param 3: percent, values range from 0 to 1
\newcommand{\cvskill}[3] {
\begin{tabular*}{1\mpwidth}{p{0.53\mpwidth} r}
\textcolor{black}{\textbf{#1}} & \textcolor{maincol}{#2}\\
\end{tabular*}%
\hspace{4pt}
\begin{tikzpicture}[scale=1,rounded corners=2pt,very thin]
\fill [lightcol] (0,0) rectangle (1\mpwidth, 0.15);
\fill [maincol] (0,0) rectangle (#3\mpwidth, 0.15);
\end{tikzpicture}%
}
%----------------------------------------------------------------------------------------
% CV EVENT
%----------------------------------------------------------------------------------------
\subsection{CV event}
% Renders a table and a paragraph (cvtext) wrapped in a parbox (to ensure minimum content
% is glued together when a pagebreak appears).
% Additional Information can be passed in text or list form (or other environments).
% the work you did
% param 1: time-frame i.e. Sep 14 - Jan 15 etc.
% param 2: event name (job position etc.)
% param 3: Customer, Employer, Industry
% param 4: Short description
% param 5: work done (optional)
% param 6: technologies include (optional)
% param 7: achievements (optional)
\newcommand{\cvevent}[7] {
% we wrap this part in a parbox, so title and description are not separated on a pagebreak
% if you need more control on page breaks, remove the parbox
\parbox{\mpwidth}{
\begin{tabular*}{1\mpwidth}{p{0.78\mpwidth} r}
\textcolor{black}{\textbf{#2}} \xrfill[.5ex]{2pt}[lightcol] & \colorbox{maincol}{\makebox[0.20\mpwidth]{\textcolor{white}{#1}}} \\
\textcolor{maincol}{\textbf{#3}} & \\
\end{tabular*}\\[5pt]
\ifthenelse{\isempty{#4}}{}{
\cvtext{#4}\\
}
}
\ifthenelse{\isempty{#5}}{}{
\vspace{9pt}
\cvtext{#5}
}
\ifthenelse{\isempty{#6}}{}{
\vspace{9pt}
\cvtext{\textbf{Technologies include:}}\\
\cvtext{#6}
}
\ifthenelse{\isempty{#7}}{}{
\vspace{9pt}
\cvtext{\textbf{Achievements include:}}\\
\cvtext{#7}
}
\vspace{10pt}
}
%----------------------------------------------------------------------------------------
% CV META EVENT
%----------------------------------------------------------------------------------------
\subsection{CV metaevent}
% Renders a CV event on the sidebar
% param 1: title
% param 2: subtitle (optional)
% param 3: customer, employer, etc,. (optional)
% param 4: info text (optional)
\newcommand{\cvmetaevent}[4] {
\textcolor{maincol} {\cvtext{\textbf{\begin{flushleft}#1\end{flushleft}}}}
\ifthenelse{\isempty{#2}}{}{
\textcolor{darkcol} {\cvtext{\textbf{#2}} }
}
\ifthenelse{\isempty{#3}}{}{
\cvtext{{ \textcolor{darkcol} {#3} }}\\
}
\cvtext{#4}\\[14pt]
}
%---------------------------------------------------------------------------------------
% QR CODE
%----------------------------------------------------------------------------------------
\subsection{Code QR}
% Renders a qrcode image (centered, relative to the parentwidth)
% param 1: percent width, from 0 to 1
\newcommand{\cvqrcode}[1] {
\begin{center}
\includegraphics[width={#1}\mpwidth]{qrcode.jpg}
\end{center}
}
\section{To do}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% TODO %%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%============================================================================%
%
%
%
% DOCUMENT CONTENT
%
%
%
%============================================================================%
\begin{document}
\section{Document}
\subsection{Settings}
%%% Footer
\pagestyle{fancy}
\fancyfoot[L]{\small \textcolor{black!20!lightcol}{Compilation : \today}}
\fancyfoot[C]{\small \textcolor{black!20!lightcol}{\thepage \hspace{1pt} of \pageref{LastPage}}}
\columnratio{0.33, 0.33, 0.33} %0.31
\setlength{\columnsep}{2.2em}
\setlength{\columnseprule}{4pt}
\colseprulecolor{lightcol}
%---------------------------------------------------------------------------------------
% TITLE HEADER
%----------------------------------------------------------------------------------------
\section{Header}
% \begin {center}
\fcolorbox{white}{lightcol!50}{\begin{minipage}[c][3cm][c]{1\mpwidth}
\begin {center}
\HUGE{ \textbf{ \textcolor{darkcol}{ \uppercase{ MY NAME } } } } \\[-24pt]
\textcolor{darkcol}{ \rule{0.1\textwidth}{1.25pt} } \\[4pt]
\large{ \textcolor{darkcol} {Curriculum vitae} }
\end {center}
\end{minipage}} \\[14pt]
% \end {center}
\vspace{12pt}
\section{columns}
\begin{paracol}{3}
\begin{column}
\subsection{Contact information}
\cvsection{Contact \\[2pt] information}
\icontext{map-marker-alt}{12}{Ville, Province, Pays}{black}\\[6pt]
\icontext{phone-alt}{12}{(123)~ 456-7890}{black}\\[6pt]
\iconemail{envelope}{12}{email@email.email}{email@email.email}{black}\\[6pt]
\iconhref{linkedin}{12}{text to show}{thelink}{black}\\[6pt]
\end{column}
\begin{column}
%---------------------------------------------------------------------------------------
% META SKILLS
%----------------------------------------------------------------------------------------
%\cvqrcode{0.5}
\subsection{Skills}
\cvsection{Skills}
\cvskill{Deserving a job} {5 years + } {1} \\[-2pt]
\cvskill{Joking} {4 years +} {0.1} \\[-2pt]
\cvskill{Cooking} {} {0.4} \\[-2pt]
\end{column}
\begin{column}
\subsection{Languages}
\cvsection{Languages}
\cvskill{French} {Mother tongue} {1} \\[-2pt]
\cvskill{English} {Advanced} {0.9} \\[-2pt]
\end{column}
\end{paracol}
\vspace{14pt}
\section{Education}
\cvsection{Education}
\cvevent
{1997 - Expected 2025}
{Master's degree in everything and nothing : 5.50/4.33)}
{University XXX }
{My thesis is about something}{}{}{}
%---------------------------------------------------------------------------------------
% Examens Professionnels
%----------------------------------------------------------------------------------------
\section{Professionnal exams}
\cvsection{Professional Exams}
\cvevent
{2002}
{Probability exam}
{An actuarial organisation}
{}{}{}{}
%---------------------------------------------------------------------------------------
% WORK EXPERIENCE
%----------------------------------------------------------------------------------------
\section{Work experiences}
\cvsection{WORK EXPERIENCEs}
\cvevent
{2000 - present}
{Job 1}
{My employer}
{My job was to ... }{}{}{}
%---------------------------------------------------------------------------------------
% Accomplishment
%----------------------------------------------------------------------------------------
\section{Scholarships and Awards}
\cvsection{Scholarships and Awards}
\cvevent
{2022}
{Best breakdancer}
{My niece's birthday}
{I won this award because of my tremendous dancing skills. Everybody at the party disagreed with this award but I still think that I deserved it more than the little kevin.}{}{}{}
%---------------------------------------------------------------------------------------
% COMMUNICATION
%----------------------------------------------------------------------------------------
\section{Communications}
\cvsection{Communications}
\cvevent
{1990}
{Communication 1}
{1st grade class}
{I was invited by my teacher. It was a great summer. }{}{}{}
\end{document}