finish the left side of the header

This commit is contained in:
Sameer Rahmani 2022-03-27 13:36:18 +01:00
parent ff61dccf3c
commit 0364c90a3e
2 changed files with 67 additions and 37 deletions

8
cv.tex
View File

@ -1,7 +1,7 @@
\documentclass{lxsameer_cv}
\usepackage{xcolor}
\setname{Sameer}{Rahmani}
\setjobtitle{Senior Software Engineer}
\setaddress{Dublin, Ireland}
\setmobile{+353 85 8559285}
\setmail{lxsameer@lxsameer.com}
@ -9,15 +9,17 @@
%you can play with color of the template (red is also nice..)
\setlinkedinaccount{https://www.linkedin.com/in/lxsameer/}
\setgithubaccount{https://devheroes.codes/lxsameer}
\definecolor{AlmostBlack}{rgb}{0.15,0.15,0.15}
\setthemecolor{red}
\definecolor{AlmostBlack}{HTML}{3f3f3f}
\AtBeginDocument{\globalcolor{AlmostBlack}}
\begin{document}
%Set variables
%You can add sections, texts, explanations just by copying the style below.
%Create header
\headerview{}
\vspace{1ex}
%Sections

View File

@ -59,14 +59,39 @@
\parskip=0.15cm
\changefontsizes{11pt}
\newcommand*{\setname}[2]{\def\@firstname{#1}\def\@lastname{#2}}
\newcommand*{\setjobtitle}[1]{\def\@jobtitle{#1}}
\newcommand*{\setaddress}[1]{\def\@address{#1}}
\newcommand*{\setmobile}[1]{\def\@mobile{#1}}
\newcommand*{\setposition}[1]{\def\@position{#1}}
\newcommand*{\setmail}[1]{\def\@mail{#1}}
\newcommand*{\setthemecolor}[1]{\def\@themecolor{#1}}
\newcommand*{\setfirstcolor}[1]{\def\@firstcolor{#1}}
\newcommand*{\setsecondcolor}[1]{\def\secondcolor{#1}}
\newcommand*{\setthirdcolor}[1]{\def\@thirdcolor{#1}}
\newcommand*{\setfourthcolor}[1]{\def\@fourthcolor{#1}}
\newcommand*{\setlinkedinaccount}[1]{\def\@linkedinaccount{#1}}
\newcommand*{\setgithubaccount}[1]{\def\@githubaccount{#1}}
% Color pallet
\definecolor{firstcolor}{rgb}{0.94,0.28,0.33}
\definecolor{color1}{HTML}{6d597a}
\definecolor{color2}{HTML}{355070}
\definecolor{color3}{HTML}{e56b6f}
\definecolor{color4}{HTML}{eaac8b}
\definecolor{color5}{HTML}{eeeeec}
\definecolor{color5}{HTML}{aaaaa5}
% Color aliases
\colorlet{headercolor}{color2}
\colorlet{linkcolor}{color1}
\colorlet{highlightcolor}{color3}
\colorlet{highlightcolor}{color3}
\colorlet{pbemptycolor}{color5} % progress bar empty part
\colorlet{pbfullcolor}{color3} % progress bar full part
\colorlet{xpheadercolor}{color2}
\colorlet{awardcolor}{color4}
\colorlet{bulletcolor}{color1}
\colorlet{jobtitlecolor}{color5}
%Setup for coverletter
\newcommand*{\setcompanyname}[1]{\def\@companyname{#1}}
@ -76,22 +101,24 @@
\hypersetup{
colorlinks=true,
urlcolor=cyan,
urlcolor=linkcolor,
}
% View commands
% Header
% can makebox also be used?
\newcommand\headerview{
\begin{minipage}{0.25\linewidth}
\profpic{0.4}{images/avatar}
\end{minipage}%
\hfill
\begin{minipage}{0.45\linewidth}
\center \name \\[0.05cm]
\contact % address \ mobile \\ mail
\end{minipage}
\hspace{-2.2em}
\begin{minipage}{0.18\linewidth}
\profpic{0.4}{images/avatar}
\end{minipage}%
\name{}
\hfill
\mbox{
\begin{minipage}{0.2\linewidth}
\contact
\end{minipage}
}
}
%profilpicture
@ -110,7 +137,10 @@
%contactsubviews
\newcommand{\name}{%
{\large \@firstname \ \textsc{\@lastname}}
\begin{minipage}{0.4\linewidth}
{\huge \@firstname{} \@lastname{}} \\[0cm]
{\small \color{jobtitlecolor} \@jobtitle}
\end{minipage}
}
\newcommand{\contact}{%
@ -130,35 +160,33 @@
}
\newcommand\coverlettersubview{
\begin{tabular}{>{\scshape \bfseries \color{\@themecolor}}l >{\small }l}
\begin{tabular}{>{\scshape \bfseries \color{firstcolor}}l >{\small }l}
Company: & \@companyname \\
Position: & \@claimedposition \\
\end{tabular}
}
% Helper commands
\newcommand\ruleafter[1]{#1~{\color{black!60!\@themecolor}\hrulefill}} % a trick to put the line with <before> parameter in \titleformat
\newcommand\ruleafter[1]{#1~{\color{headercolor}\hrulefill}} % a trick to put the line with <before> parameter in \titleformat
\newcommand{\hl}[1]{%
{\color{\@themecolor} #1}
{\color{highlightcolor} #1}
}
%colorfulpipeseperator
\newcommand{\cps}{{\color{\@themecolor} \quad\textbar\quad}}
\newcommand{\cpshalf}{{\color{\@themecolor} \hspace{0.2em}\textbar\hspace{0.2em}}}
\newcommand{\cps}{{\color{firstcolor} \quad\textbar\quad}}
\newcommand{\cpshalf}{{\color{firstcolor} \hspace{0.2em}\textbar\hspace{0.2em}}}
\newcommand{\coloredbullet}{{\color{\@themecolor} \textbullet}}
\newcommand{\coloredbullet}{{\color{bulletcolor} \textbullet}}
% Edit section styles
\titleformat{\section} % Customise the \section command
{\large\bfseries\scshape\raggedright\color{\@themecolor}} % Make the \section headers large (\Large),
% Customise the \section command
\titleformat{\section}
{\large\bfseries\raggedright\color{headercolor}} % Make the \section headers large (\Large),
% small capitals (\scshape) and left aligned (\raggedright)
{}{0em} % Can be used to give a prefix to all sections, like 'Section ...'
{\ruleafter} % Can be used to insert code before the heading
{\color{headercolor}}{0em} % Can be used to give a prefix to all sections, like 'Section ...'
{\color{headercolor} \ruleafter} % Can be used to insert code before the heading
\titlespacing*{\section}{-1pt}{0pt}{0pt}
@ -174,13 +202,13 @@ Position: & \@claimedposition \\
%% }
\newcommand{\datetext}[1]{%
{\textit{\tiny \mdseries \color{gray} #1 }}
{\textit{\scriptsize \mdseries \color{gray} #1 }}
}
\newcommand{\award}[2]{%
\hspace{0.2cm}
\begin{small}
{\large{\color{black!10!\@themecolor} \faIcon{medal}}}
{\large{\color{awardcolor} \faIcon{medal}}}
#1
\end{small}
\hfill
@ -197,7 +225,7 @@ Position: & \@claimedposition \\
\newcommand{\experience}[2]{%
\begin{small}
{\hspace{1em} \textbf{\scshape \color{black!10!\@themecolor} #1}}
{\hspace{1em} \textbf{\scshape \color{color1} #1}}
\end{small}
\hfill
\datetext{#2}\\[0cm]
@ -206,7 +234,7 @@ Position: & \@claimedposition \\
\newcommand{\role}[4]{%
\vbox{
\begin{small}
{\noindent \hspace{1em} \textbf{\color{black!10!\@themecolor} #1} \jobtitle{#2}}
{\noindent \hspace{1em} \textbf{\color{xpheadercolor} #1} \jobtitle{#2}}
\end{small}
\hfill
\datetext{#3}\\[0.2cm]
@ -217,14 +245,14 @@ Position: & \@claimedposition \\
}
\newcommand{\jobtitle}[1]{%
{\tiny \color{black!20!gray} #1}
{\tiny \color{jobtitlecolor} #1}
}
\newcommand{\desc}[1]{%
\begin{minipage}{0.96\linewidth} \scriptsize #1 \end{minipage} \\[0.1cm]
}
\definecolor{verylightgray}{gray}{0.9}
% returns minipage width minus two times \fboxsep
% to keep padding included in width calculations
% can also be used for other boxes / environments
@ -233,8 +261,8 @@ Position: & \@claimedposition \\
\newcommand{\skill}[2] {
\mbox{#1} \\
\begin{tikzpicture}[scale=1]
\fill [verylightgray] (0,0) rectangle (1\mpwidth, 0.15);
\fill [\@themecolor] (0,0) rectangle (#2\mpwidth, 0.15);
\fill [pbemptycolor] (0,0) rectangle (1\mpwidth, 0.15);
\fill [pbfullcolor] (0,0) rectangle (#2\mpwidth, 0.15);
\end{tikzpicture} \\[0.1cm]
}
@ -294,7 +322,7 @@ Position: & \@claimedposition \\
}
\newcommand\createbullets[1]{%
\renewcommand{\labelitemi}{\coloredbullet}
\renewcommand{\labelitemi}{\coloredbullet}
\begin{itemize}
\makeatletter
\@for\thisitem:=#1\do{\itemwithtext{\thisitem}}