diff --git a/tests/reference_files/John_Doe_CV_test.tex b/tests/reference_files/John_Doe_CV_test.tex new file mode 100644 index 0000000..df84dab --- /dev/null +++ b/tests/reference_files/John_Doe_CV_test.tex @@ -0,0 +1,356 @@ + +\documentclass[10pt, a4paper]{article} + +% Packages: +\usepackage[ + ignoreheadfoot, % set margins without considering header and footer + top=1.35 cm, % seperation between body and page edge from the top + bottom=1.35 cm, % seperation between body and page edge from the bottom + left=1.35 cm, % seperation between body and page edge from the left + right=1.35 cm, % seperation between body and page edge from the right + % showframe % for debugging + ]{geometry} % for adjusting page geometry +\usepackage{fontspec} % for loading fonts +\usepackage[explicit]{titlesec} % for customizing section titles +\usepackage{tabularx} % for making tables with fixed width columns +\usepackage{array} % tabularx requires this +\usepackage[dvipsnames]{xcolor} % for coloring text +\definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color +\usepackage{enumitem} % for customizing lists +\usepackage{fontawesome5} % for using icons +\usepackage[ + pdftitle={John Doe's CV}, + pdfauthor={John Doe}, + colorlinks=true, + urlcolor=primaryColor +]{hyperref} % for links, metadata and bookmarks +\usepackage[pscoord]{eso-pic} % for floating text on the page +\usepackage{calc} % for calculating lengths + +% Some settings: +\pagestyle{empty} % no header or footer +\setcounter{secnumdepth}{0} % no section numbering +\setlength{\parindent}{0pt} % no indentation +\setlength{\topskip}{0pt} % no top skip +\pagenumbering{gobble} % no page numbering + + +\setmainfont{EBGaramond}[ + Path= fonts/, + Extension = .ttf, + UprightFont = *-Regular, + ItalicFont = *-Italic, + BoldFont = *-Bold, + BoldItalicFont = *-BoldItalic +] + +\titleformat{\section}{ + % make the font size of the section title large and color it with the primary color + \Large\color{primaryColor} + }{ + }{ + }{ + % print bold title, give 0.15 cm space and draw a line of 0.8 pt thickness + % from the end of the title to the end of the body + \textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]\hspace{-0.1cm} + }[] % section title formatting + +\titlespacing{\section}{ + % left space: + 0pt + }{ + % top space: + 0.13 cm + }{ + % bottom space: + 0.13 cm + } % section title spacing + +\newcolumntype{L}[1]{ + >{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1} +} % left-aligned fixed width column type +\newcolumntype{R}[1]{ + >{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1} +} % right-aligned fixed width column type +\newcolumntype{K}[1]{ + >{\let\newline\\\arraybackslash\hspace{0pt}}X +} % left-aligned (but justified) flexible width column type +\setlength\tabcolsep{-1.5pt} % no space between columns + +\newenvironment{highlights}{ + \begin{itemize}[ + topsep=0pt, + parsep=0.07 cm, + partopsep=0pt, + itemsep=0pt, + after=\vspace*{-1\baselineskip}, + leftmargin=0.6 cm + 3pt + ] + }{ + \end{itemize} + } % new environment for highlights + +\newenvironment{header}{ + \setlength{\topsep}{0pt}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5} + }{ + \par\kern\topsep + } % new environment for the header + +\newcommand{\placelastupdatedtext}{% \placetextbox{}{}{} + \AddToShipoutPictureFG*{% Add to current page foreground + \put( + \LenToUnit{\paperwidth-1.35 cm-0.2 cm+0.05cm}, + \LenToUnit{\paperheight-0.675 cm} + ){\vtop{{\null}\makebox[0pt][c]{ + \small\color{gray}\emph{Last updated on REPLACETHISWITHTODAY}\hspace{\widthof{Last updated on REPLACETHISWITHTODAY}} + }}}% + }% +}% + +% save the original href command in a new command: +\let\hrefWithoutArrow\href + % new command for external links: +\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{#2\, \raisebox{.1ex}{\footnotesize \faExternalLink*}}} + +\begin{document} + \placelastupdatedtext + + \begin{header} + \Huge + \textbf{John Doe} + + \normalsize + \mbox{{\small\faMapMarker*}\hspace{0.13cm}Geneva, Switzerland} + \hspace{0.5cm} + \mbox{\hrefWithoutArrow{tel:+905413769286}{{\footnotesize\faPhone*}\hspace{0.13cm}+90 541 376 92 86}} + \hspace{0.5cm} + \mbox{\hrefWithoutArrow{mailto:john@doe.com}{{\small\faEnvelope[regular]}\hspace{0.13cm}john@doe.com}} + \hspace{0.5cm} + \mbox{\hrefWithoutArrow{https://example.com/}{{\small\faLink}\hspace{0.13cm}example.com}} + \hspace{0.5cm} + \mbox{\hrefWithoutArrow{https://www.linkedin.com/in/dummy}{{\small\faLinkedinIn}\hspace{0.13cm}dummy}} + \hspace{0.5cm} + \mbox{\hrefWithoutArrow{https://www.github.com/sinaatalay}{{\small\faGithub}\hspace{0.13cm}sinaatalay}} + \end{header} + + + \centering + \section{Education} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{L{0.85cm} K{0.2 cm} R{3.6 cm}} + \textbf{BS} + & + \textbf{Bogazici University}, Mechanical Engineering + \vspace*{0.12 cm} + \begin{highlights} + \item GPA: 3.80/4.00 (\href{https://example.com/}{Transcript}) + \item Test 1 + \item Test 2 + \end{highlights} + & + Istanbul, Turkey \newline + Sept. 1980 to Jan. 1985 + \end{tabularx} + + \vspace*{0.12 cm} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{L{0.85cm} K{0.2 cm} R{3.6 cm}} + \textbf{} + & + \textbf{The University of Texas at Austin}, Mechanical Engineering, Student Exchange Program + \vspace*{0.12 cm} + & + Austin, TX, USA \newline + Aug. 2021 to Jan. 2022 + \end{tabularx} + + + + \section{Work Experience} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Company 1}, Position 1 + \vspace*{0.12 cm} + \begin{highlights} + \item Test 1 + \item Test 2 + \item Test 3 + \end{highlights} + & + Geneva, Switzerland \newline + Feb. 2023 to present + \end{tabularx} + + \vspace*{0.12 cm} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Company 2}, Position 2 + \vspace*{0.12 cm} + \begin{highlights} + \item Test 1 + \item Test 2 + \item Test 3 + \end{highlights} + & + Geneva, Switzerland \newline + Feb. 1986 to Feb. 2023 + \end{tabularx} + + + + \section{Academic Projects} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Academic Project 1}, \href{https://example.com/}{view on my website} + \vspace*{0.12 cm} + \begin{highlights} + \item Test 1 + \item Test 2 + \end{highlights} + & + Istanbul, Turkey \newline + Spring 2022 + \end{tabularx} + + \vspace*{0.12 cm} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm}} + \textbf{Academic Project 2}, \href{https://example.com/}{view on my website} + \vspace*{0.12 cm} + \begin{highlights} + \item Test 1 + \item Test 2 + \end{highlights} + \end{tabularx} + + \vspace*{0.12 cm} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Academic Project 3}, \href{https://example.com/}{view on my website} + \vspace*{0.12 cm} + \begin{highlights} + \item Test 1 + \item Test 2 + \end{highlights} + & + Istanbul, Turkey \newline + Feb. 2022 to May 2022 + \end{tabularx} + + + + \section{Certificates} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm}} + \textbf{Certificate 1} + \vspace*{0.12 cm} + \end{tabularx} + + + + \section{Personal Projects} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm}} + \textbf{Personal Project 1} + \vspace*{0.12 cm} + \end{tabularx} + + + + \section{Skills} + + \begingroup\raggedright + \leftskip=0.2 cm + \advance\csname @rightskip\endcsname 0.2 cm + \advance\rightskip 0.2 cm + + \textbf{Programming:} C++, C, Python, JavaScript, MATLAB, Lua, LaTeX + + \par\endgroup + + \vspace*{0.12 cm} + + \begingroup\raggedright + \leftskip=0.2 cm + \advance\csname @rightskip\endcsname 0.2 cm + \advance\rightskip 0.2 cm + + \textbf{CAE:} GMSH, GetDP, CalculiX + + \par\endgroup + + + + \section{Test Scores} + + \begingroup\raggedright + \leftskip=0.2 cm + \advance\csname @rightskip\endcsname 0.2 cm + \advance\rightskip 0.2 cm + + \textbf{TOEFL:} 120/120 + + \par\endgroup + + \vspace*{0.12 cm} + + \begingroup\raggedright + \leftskip=0.2 cm + \advance\csname @rightskip\endcsname 0.2 cm + \advance\rightskip 0.2 cm + + \textbf{IELTS:} 9.0/9.0 (\href{https://example.com/}{Score Report}) + + \par\endgroup + + + + \section{Extracurricular Activities} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Test Company 1}, Test Position 1 + \vspace*{0.12 cm} + \begin{highlights} + \item Lead and train members for intercollegiate alpine ski races in Turkey and organize skiing events. + \end{highlights} + & + \end{tabularx} + + \vspace*{0.12 cm} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Test Company 1}, Test Position 1 + \vspace*{0.12 cm} + \begin{highlights} + \item Test 1 + \item Test 2 + \item Test 3 + \end{highlights} + & + Izmir, Turkey \newline + Summer 2019 and 2020 + \end{tabularx} + + + + \section{Publications} + + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm} R{3.6 cm}} + \textbf{Phononic band gaps induced by inertial amplification in periodic media} + + \vspace{0.06 cm} + + C. Yilmaz, G. M. Hulbert, N. Kikuchi + + \vspace{0.06 cm} + + DOI: \href{https://doi.org/10.1103/PhysRevB.76.054309}{10.1103/PhysRevB.76.054309} + & + Aug. 2007 + + \end{tabularx} + + + + +\end{document} \ No newline at end of file