curriculum-vitae/Assets/template.tex

358 lines
9.4 KiB
TeX
Raw Normal View History

2019-07-01 19:40:34 +02:00
% !TEX encoding = UTF-8 Unicode
2020-05-24 04:35:06 +02:00
\documentclass[letterpaper,11pt]{article}
2019-07-01 19:40:34 +02:00
%A Few Useful Packages
%\usepackage{marvosym}
\usepackage{fontspec} %for loading fonts
\usepackage{xunicode,xltxtra,url,parskip} %other packages for formatting
2019-06-27 20:14:41 +02:00
\usepackage{graphicx}
2019-07-01 19:40:34 +02:00
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[left=1.3cm,
2020-05-21 02:48:18 +02:00
top=0.9cm,
2019-07-01 19:40:34 +02:00
right=1.3cm,
bottom=1.2cm,
nohead,
nofoot
]{geometry}
\usepackage{tabularx}
\usepackage{titlesec}
%\usepackage{tabto} % tab spacing
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
\usepackage{setspace} % line spacing
\usepackage{booktabs,colortbl} % thicker rules between table cells
\usepackage{bibentry} % bibliography
2019-07-01 19:40:34 +02:00
% SORTED LISTS
\usepackage{paralist}
\usepackage{datatool}% http://ctan.org/pkg/datatool
\newcommand{\sortitem}[1]{%
\DTLnewrow{list}% Create a new entry
\DTLnewdbentry{list}{description}{#1}% Add entry as description
}
\newenvironment{sortedlist}{%
\DTLifdbexists{list}{\DTLcleardb{list}}{\DTLnewdb{list}}% Create new/discard old list
}{%
\DTLsort{description}{list}% Sort list
\begin{inparaitem}[]%
\DTLforeach*{list}{\theDesc=description}{%
\item \theDesc, }% Print each item
\end{inparaitem}%
}
2019-07-01 19:40:34 +02:00
%Setup hyperref package, and colours for links
\usepackage[colorlinks,
breaklinks,
pagebackref=false,
debug=true,
xetex,
bookmarks=false,
pdfpagelabels=false,
hyperfootnotes=false,
hyperindex=false,
pageanchor=false]{hyperref}
\definecolor{linkcolor}{gray}{0.2}
\hypersetup{
2019-06-27 20:14:41 +02:00
pdfauthor={$name$},
2019-07-01 19:40:34 +02:00
pdfsubject={$name$ - Resume},
pdftitle={$name$ - Resume},
urlcolor=linkcolor,
linkcolor=linkcolor
2019-06-27 20:14:41 +02:00
}
2019-07-01 19:40:34 +02:00
% colors
\definecolor{dark-gray}{gray}{0.15}
\definecolor{light-gray}{gray}{0.55}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
%FONTS
2019-07-01 21:16:38 +02:00
\setmainfont{Cormorant Garamond}
\newfontfamily{\hlight}[UprightFont={* Light}]{Cormorant Garamond}
2019-07-01 19:40:34 +02:00
%\defaultfontfeatures{Mapping=tex-text} % converts LaTeX specials (``quotes'' --- dashes etc.) to unicode
\defaultfontfeatures{
2020-05-21 02:48:18 +02:00
Path = /nix/store/nl6mv0aymmla9c57bdpxg4yzf888qjlj-emacs-all-the-icons-fonts-3.2.0/share/fonts/all-the-icons/fontawesome.ttf }
2019-08-24 01:13:02 +02:00
\usepackage{fontawesome5} % glyphs for contact info
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
% CUSTOM COMMANDS
\newcommand{\titlerulethick}{{%
2020-05-21 02:48:18 +02:00
{\color{dark-gray} \titlerule[0.5mm] }%
2019-07-01 19:40:34 +02:00
}}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
% old section title format
2020-05-21 02:48:18 +02:00
\titleformat{\section}{\fontsize{28pt}{38pt}\color{dark-gray}\normalfont}{}{0mm}{}[\titlerulethick]
2019-07-01 19:40:34 +02:00
%\titlespacing{\section}{0pt}{3pt}{3pt}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
\newcommand{\namefont}[1]{{%
\fontsize{42pt}{50pt}\normalfont\textbf{#1}%
}}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
\newcommand{\spacerule}{
\addlinespace[0.5em]
\midrule[0.5mm]
\addlinespace[0.5em]
}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
\newcommand{\bigfont}[1]{{%
\fontsize{32pt}{38pt}\normalfont{#1} %
}}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
\newcommand{\lightfont}[1]{{%
{\hlight\color{light-gray}#1}
}}
2019-06-27 20:14:41 +02:00
2019-07-01 19:40:34 +02:00
\newcommand{\contactinfo}{%
{\hlight\color{dark-gray}}
}
\newcommand{\lightsmall}[1]{{%
{\fontsize{11pt}{14pt}\hlight\color{light-gray}#1}
}}
\newcommand{\pubstyle}[1]{{%
{\fontsize{10pt}{13pt}\hlight\color{light-gray}#1}
}}
2019-06-27 21:29:38 +02:00
2019-07-01 19:40:34 +02:00
\newcommand{\lightbf}[1]{{%
\textbf{\lightfont{#1}}
}}
\newcommand{\emphasized}[1]{{%
2020-05-21 02:48:18 +02:00
{\fontsize{12pt}{14pt}\textbf{#1}}
2019-07-01 19:40:34 +02:00
}}
\newcommand{\position}[1]{{%
2020-05-21 02:48:18 +02:00
{\fontsize{12pt}{14pt} \hlight{#1}}
2019-07-01 19:40:34 +02:00
}}
\newcommand{\company}[1]{{%
2020-05-21 02:48:18 +02:00
{\fontsize{12pt}{14pt} \textbf{#1}}
2019-07-01 19:40:34 +02:00
}}
\newcommand{\headline}{
{\fontsize{14pt}{17pt}\bfseries\color{dark-gray}$headline$}
}
\newcommand{\name}{
2020-05-21 02:48:18 +02:00
\raggedright\fontsize{38pt}{38pt}\bfseries\flushleft\color{dark-gray}{$name$}
2019-07-01 19:40:34 +02:00
}
\newcommand{\lighthrule}{
2020-05-21 02:48:18 +02:00
{\color{light-gray}\par\rule[0mm]{\hsize}{0.5mm}\par\vspace{0.0em}}
2019-07-01 19:40:34 +02:00
}
% hack to remove bibliography numbering
\makeatletter
\renewcommand\@biblabel[1]{}
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\list{}%
{\leftmargin0pt
\@openbib@code
\usecounter{enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
%
%-------------------- BEGIN DOCUMENT ----------------------
\begin{document}
%\nocite{$publications$}
2019-07-01 19:40:34 +02:00
\pagestyle{empty} % non-numbered pages
\font\fb=''[cmr10]'' %for use with \LaTeX command
%---------- SPECIFY LENGTHS ----------
\newlength{\leftwide}
\setlength{\leftwide}{0.34\textwidth}
%
\newlength{\centerwide}
\setlength{\centerwide}{0.33\textwidth}
%
\newlength{\rightwide}
\setlength{\rightwide}{0.28\textwidth}
%---------- TOP SECTION ----------
\begin{tabular}[b]{@{}p{\leftwide}@{}p{\centerwide}@{}p{\rightwide}@{}}
% NAME (left)
\noindent
\begin{minipage}[b]{\leftwide}
\name
\end{minipage} & %
2019-07-08 16:06:06 +02:00
% CONTACT INFO (middle)
2019-07-08 15:24:08 +02:00
\begin{minipage}[b]{\centerwide}
2019-07-01 19:40:34 +02:00
\renewcommand\arraystretch{1.25}
\contactinfo
\begin{tabular}[b]{@{}cl@{}}
2019-07-01 21:16:38 +02:00
\faEnvelope & \href{mailto:$email$}{$email$}\\ %{}
2019-07-01 19:40:34 +02:00
\faPhone & $phone$\\
2019-12-06 19:43:04 +01:00
\faGitlab & \href{https://gitlab.com/akasroua}{gitlab.com/$gitlab$}\\
2019-07-01 19:40:34 +02:00
\end{tabular}
2019-07-08 16:06:06 +02:00
\end{minipage} & %
% PHOTO (right)
\begin{minipage}[b]{\rightwide}
2019-12-05 20:38:45 +01:00
\includegraphics[width=7em]{Assets/photo.png}
2019-07-08 16:06:06 +02:00
\end{minipage}
2019-07-01 19:40:34 +02:00
\end{tabular}
\lighthrule
%---------- MAIN BODY ----------
% ABOUT
2020-05-21 02:48:18 +02:00
\vspace{-1.6em}
\ifthenelse{\equal{$lang$}{en}}
{\section{about}}
{\section{extracto}}%
\parbox[t][][t]{\textwidth}{
$about$
}
2019-07-01 19:40:34 +02:00
%---------- LEFT SIDE ----------
2020-05-24 04:35:06 +02:00
\newlength{\hwide}
2019-07-01 19:40:34 +02:00
\begin{minipage}[t]{0.31\textwidth}
\raggedright
% PROGRAMMING
\ifthenelse{\equal{$lang$}{en}}
{\section{programming}}
{\section{programación}}%
2020-05-24 04:35:06 +02:00
\setlength{\parskip}{1mm}
\setlength{\hwide}{\dimexpr.5\hsize-3\tabcolsep}
%
\hlight
2020-05-24 04:35:06 +02:00
\begin{tabular}{@{}p{\hwide}p{\centerwide}}
$for(programming)$
2020-05-24 04:35:06 +02:00
\parbox[t][][t]{\hwide}{%
\emphasized{$programming.language$}
\medskip
} & %
\parbox[t][][t]{\centerwide}{%
\lightbf{$programming.proficiency$}
\medskip
} \\ %
$endfor$
2020-05-24 04:35:06 +02:00
\end{tabular}
% TECHNOLOGIES
%
\ifthenelse{\equal{$lang$}{en}}
2020-05-21 02:48:18 +02:00
{\section{technical skills}}
{\section{tecnologías}}%
\hlight
2020-05-21 02:48:18 +02:00
\begin{itemize}[]
$for(technologies)$
2020-05-21 02:48:18 +02:00
\item{$technologies$}
$endfor$
2020-05-21 02:48:18 +02:00
\end{itemize}
% COURSES
%
\ifthenelse{\equal{$lang$}{en}}
{\section{courses}}
{\section{cursos}}%
\hlight
$for(courses)$
\emphasized{$courses.name$} \\
\lightfont{\textbf{$courses.institution$}} \\
$endfor$
2019-07-01 19:40:34 +02:00
\end{minipage}%
%
%---------- RIGHT SIDE ----------
\newlength{\hwideright}
\newlength{\buffer}
\setlength{\buffer}{4pt plus 1pt minus 1pt}
%
\begin{minipage}[t]{0.64\textwidth}
2020-05-21 02:48:18 +02:00
% EXPERIENCE
\ifthenelse{\equal{$lang$}{en}}
{\section{experience}}
{\section{experiencia laboral}}%
\setlength{\hwide}{\dimexpr.5\hsize-4\tabcolsep}
\setlength{\hwideright}{\dimexpr\hwide+5\tabcolsep}
%
\begin{tabular}{@{}p{\hwide}p{\hwideright}}
\arrayrulecolor{light-gray}
$for(experience)$
\parbox[t][][t]{\hwide}{%
\raggedright
\company{$experience.company$}\\
\vspace{\buffer}
\lightfont{%
$experience.years.start$ \textendash{} $experience.years.end$\\
$if(experience.location)$
$experience.location$\\
$endif$
\vspace{\buffer}}
$if(experience.group)$
\lightsmall{\emph{$experience.group$}}%
$endif$
} & %
\parbox[t][][t]{\hwideright}{%
\raggedright
\position{$experience.position$}\\
\vspace{\buffer}
\lightsmall{$experience.description$}
}\\
\spacerule
$endfor$
\end{tabular}
% EDUCATION
\ifthenelse{\equal{$lang$}{en}}
{\section{education}}
{\section{formación académica}}%
\setlength{\hwide}{\dimexpr.5\hsize-4\tabcolsep}
\setlength{\hwideright}{\dimexpr\hwide+5\tabcolsep}
%
\setlength{\parskip}{1mm}
2020-05-21 02:48:18 +02:00
\vspace{-0.5em}
2019-07-08 16:35:32 +02:00
\begin{tabular}{@{}p{\hwide}p{\rightwide}}
$for(education)$
\parbox[t][][t]{\hwide}{%
\lightfont{$education.years.start$ \textendash{} $education.years.end$} \\
\smallskip
\emphasized{$education.degree$} \\
\smallskip
\emphasized{$education.focus$} \\
} & %
\parbox[t][][t]{\rightwide}{%
\lightfont{\textbf{$education.institution$} \\
\emph{$education.campus$}} \\ %
2020-05-21 02:48:18 +02:00
\medskip %
2019-07-08 16:35:32 +02:00
} \\
$endfor$
\end{tabular}
2020-05-21 02:48:18 +02:00
\vspace{-0.8em}
%
2019-07-01 21:16:38 +02:00
% LANGUAGES
\ifthenelse{\equal{$lang$}{en}}
{\section{languages}}
{\section{idiomas}}%
%
\setlength{\parskip}{1mm}
\setlength{\hwide}{\dimexpr.5\hsize-4\tabcolsep}
\setlength{\hwideright}{\dimexpr\hwide+5\tabcolsep}
2019-07-08 17:52:13 +02:00
\begin{tabular}{@{}p{\hwide}p{\rightwide}}
$for(languages)$
\parbox[t][][t]{\hwide}{%
\emphasized{$languages.language$}
\medskip
} & %
\parbox[t][][t]{\rightwide}{%
\lightbf{$languages.proficiency$}
\medskip
} \\ %
$endfor$
\end{tabular}
2019-07-01 19:40:34 +02:00
%
2019-07-01 20:24:08 +02:00
%\section{publications}
%\vspace{-0.5em}
%\begingroup
%\renewcommand{\section}[2]{}%
%\pubstyle{
% \bibliography{pubs}
% \bibliographystyle{cvbib}
%}
%\endgroup
2019-07-01 19:40:34 +02:00
\end{minipage}
% ==========================================================
%-------------------- END OF DOCUMENT ----------------------
2019-06-27 20:14:41 +02:00
\end{document}