LLEENE-Latex-Templates/leene-resume.cls
2024-11-03 17:26:21 +01:00

170 lines
6.8 KiB
TeX

% Personalised Deedy-Resume from Debarghya Das
% github.com/deedy/Deedy-Resume licensed under the Apache License 2.0
% Last edited by: Lieuwe B. Leene 2017 August
% Modified by Lieuwe Leene, June 2019
\ProvidesClass{leene-resume}
\NeedsTeXFormat{LaTeX2e}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass{article}
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
%\pagenumbering{gobble} % Do not show page numbers
\RequirePackage[absolute]{textpos} % Required for positioning the Last Updated text at the top right of the page
\RequirePackage[UKenglish]{isodate} % Prints the Last Updated date in UK English format
\RequirePackage{enumitem}
\setlist[itemize]{leftmargin=*}
\RequirePackage{titlesec} % Required for customizing section/subsection/etc titles
\titlespacing{\section}{0pt}{0pt}{0pt} % Removes the spacing around the main section titles
\titlespacing{\subsection}{0pt}{0pt}{0pt} % Removes the spacing around the subsections
\newcommand{\sectionspace}{\vspace{12pt}} % Defines a command to add a set amount of space after sections and subsections
\newcommand{\subsectionspace}{\vspace{6pt}}
\RequirePackage{fontspec} % Required for specifying custom fonts in XeLaTeX
\newcommand{\fontsizeheadline}{\fontsize{40pt}{36pt}}
\newcommand{\fontsizeheading}{\fontsize{16pt}{24pt}}
\newcommand{\fontsizesection}{\fontsize{12pt}{12pt}}
\providecommand{\fontscale}{1} % load default if not set
\setmainfont
[Path = ../Latex/Fonts/IBM-Plex-Sans/,
Scale=\fontscale,
UprightFont = *-Regular,
ItalicFont = *-Italic,
BoldFont = *-Bold,
BoldItalicFont = *-BoldItalic,
FontFace = {t}{n}{*-Thin},
FontFace = {t}{it}{*-ThinItalic},
FontFace = {l}{n}{*-Light},
FontFace = {l}{it}{*-LightItalic},
FontFace = {sb}{n}{*-SemiBold},
FontFace = {sb}{it}{*-SemiBoldItalic},
FontFace = {m}{n}{*-Medium},
FontFace = {m}{it}{*-MediumItalic},
FontFace = {b}{n}{*-Bold},
FontFace = {b}{it}{*-BoldItalic},
Ligatures=TeX]
{IBMPlexSans}
\renewcommand{\baselinestretch}{\fontscale}
%----------------------------------------------------------------------------------------
% LAST UPDATED COMMAND
%----------------------------------------------------------------------------------------
\setlength{\TPHorizModule}{0.01\paperwidth} % Sets the units for the horizontal position used in the \begin{textblock} argument
\setlength{\TPVertModule}{0.01\paperwidth} % Sets the units for the vertical position used in the \begin{textblock} argument
\newcommand{\lastupdated}{ % Create a new command for printing the Last Updated text
\begin{textblock}{23}(70,11.5) % The position of the Last Updated text on the page
\flushleft{
\color{date}\fontseries{l}\selectfont \small \selectfont % Text styling of the text
Last Updated on \today } % Last Updated text
\end{textblock}}
%----------------------------------------------------------------------------------------
% MAIN HEADING COMMAND
%----------------------------------------------------------------------------------------
\newcommand{\makefrontcard}[1]{ % Defines the command for the main heading
\setlength{\unitlength}{12mm}
\flushleft
\begin{picture}(1,1)
\put(0,0.2){\includegraphics[height=10mm]{#1}}
\end{picture}
\vfill
\textbf{{\Large \FirstName\:~\LastName} \hspace{2mm}\ {\small \Certification}}\\
\JobTitle\\
\vspace{2mm}
\small
{\fontseries{t}\selectfont \Group} \\
{\fontseries{t}\selectfont \Address} \\
\vspace{2mm}
{\fontseries{l}\selectfont \includegraphics[height=2mm]{Style/linkedin.pdf}%
\,\LinkedIn} \\
{\fontseries{l}\selectfont \includegraphics[height=2mm]{Style/phone.pdf}%
\,\Telephone \hspace{2cm}\includegraphics[height=2mm]{Style/envelope.pdf}\,\Email } \\
{\fontseries{l}\selectfont \Website }
}
\newcommand{\makebackcard}[1]{ % paperwidth=85mm,paperheight=55mm
\begin{figure}
\centering
\setlength{\fboxrule}{0pt}
\includegraphics[width=60mm]{#1}
\end{figure}
}
\newcommand{\namesection}{ % Defines the command for the main heading
\flushleft{ % Center the name
\fontsizeheadline
{\fontseries{t}\selectfont \Salutation~\FirstName~} % First name font
{\fontseries{m}\selectfont \LastName} % Last name font
\vspace{0.45cm}} \\[5pt] % Whitespace between the name and contact information
\begin{textblock}{23}(70,4)
\vline
\flushleft{\color{headings}%
{\fontseries{l}\selectfont Address:} \Address \\
{\fontseries{l}\selectfont Mobile:} \Telephone \\
{\fontseries{l}\selectfont Email:} \Email \\ }
\end{textblock}
\noindent\makebox[\linewidth]{\color{headings}\rule{\paperwidth}{0.4pt}} % Horizontal rule
\par
}
%----------------------------------------------------------------------------------------
% FOOT NOTE COMMAND
%----------------------------------------------------------------------------------------
\ifx\noheader\undefined
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\lfoot{\Salutation~\FirstName~\LastName --- \mainsubject}
\rfoot{\hfill Page: \thepage{} | \pageref*{LastPage}}
\fancyheadoffset[loh,reh]{20mm}
\else
\pagestyle{empty}
\cfoot{}
\fi
\newcommand{\tailsection}{}
%----------------------------------------------------------------------------------------
% SECTION TITLE STYLING AND SPACING
%----------------------------------------------------------------------------------------
\titleformat{\section}{ % Customize the large section titles
\color{headings}\scshape \fontseries{l} \fontsizeheading \selectfont \raggedright\uppercase}{}{0em}{}
\titleformat{\subsection}{ % Customize the subsections and places worked/studied titles
\color{subheadings} \fontsizesection \bfseries}{}{0em}{}
%----------------------------------------------------------------------------------------
% SECTION TITLE STYLING AND SPACING
%----------------------------------------------------------------------------------------
\newenvironment{tightitemize} % Defines the tightitemize environment which modifies the itemize environment to be more compact
{\vspace{-\topsep} \begin{itemize} \itemsep4pt \parskip1pt \parsep1pt}
{\end{itemize} \vspace{-\topsep}}
%----------------------------------------------------------------------------------------
% COLORS
%----------------------------------------------------------------------------------------
\RequirePackage{xcolor} % Required for custom colors
%\definecolor{primary}{HTML}{2b2b2b} % The primary document color for content text
\definecolor{primary}{HTML}{131313} % The primary document color for content text
%\definecolor{headings}{HTML}{6A6A6A} % The color of the large sections
\definecolor{headings}{HTML}{3b3b3b} % The color of the large sections
%\definecolor{subheadings}{HTML}{333333} % The color of subsections and places worked/studied
\definecolor{subheadings}{HTML}{232323} % The color of subsections and places worked/studied
%\definecolor{date}{HTML}{666666} % The color used for the Last Updated text at the top right
\definecolor{date}{HTML}{3b3b3b} % The color used for the Last Updated text at the top right