From f5a98da5110c58da61887007d4476d094da03419 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 17 Nov 2023 01:06:38 +0100 Subject: [PATCH] fix the reference latex file --- tests/reference_files/John_Doe_CV_test.tex | 118 +++++++++++---------- 1 file changed, 63 insertions(+), 55 deletions(-) diff --git a/tests/reference_files/John_Doe_CV_test.tex b/tests/reference_files/John_Doe_CV_test.tex index 7c9bd91..df84dab 100644 --- a/tests/reference_files/John_Doe_CV_test.tex +++ b/tests/reference_files/John_Doe_CV_test.tex @@ -52,7 +52,7 @@ }{ % 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] + \textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]\hspace{-0.1cm} }[] % section title formatting \titlespacing{\section}{ @@ -73,8 +73,9 @@ >{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1} } % right-aligned fixed width column type \newcolumntype{K}[1]{ - >{\raggedright\let\newline\\\arraybackslash\hspace{-0.2cm}\hspace{#1}}X -} % left-aligned flexible width column type + >{\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}[ @@ -98,10 +99,10 @@ \newcommand{\placelastupdatedtext}{% \placetextbox{}{}{} \AddToShipoutPictureFG*{% Add to current page foreground \put( - \LenToUnit{\paperwidth-1.35 cm}, + \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}} + \small\color{gray}\emph{Last updated on REPLACETHISWITHTODAY}\hspace{\widthof{Last updated on REPLACETHISWITHTODAY}} }}}% }% }% @@ -133,9 +134,10 @@ \end{header} + \centering \section{Education} - \begin{tabularx}{\textwidth}{p{0.55cm} K{0.2 cm} R{3.6 cm}} + \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 @@ -146,27 +148,27 @@ \item Test 2 \end{highlights} & - Istanbul, Turkey \hspace*{-0.2cm + 0.2 cm} \newline - Sept. 1980 to Jan. 1985 \hspace*{-0.2cm + 0.2 cm} + Istanbul, Turkey \newline + Sept. 1980 to Jan. 1985 \end{tabularx} \vspace*{0.12 cm} - \begin{tabularx}{\textwidth}{p{0.55cm} K{0.2 cm} R{3.6 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 \hspace*{-0.2cm + 0.2 cm} \newline - Aug. 2021 to Jan. 2022 \hspace*{-0.2cm + 0.2 cm} + Austin, TX, USA \newline + Aug. 2021 to Jan. 2022 \end{tabularx} \section{Work Experience} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}} + \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} @@ -175,13 +177,13 @@ \item Test 3 \end{highlights} & - Geneva, Switzerland \hspace*{-0.2cm + 0.2 cm} \newline - Feb. 2023 to present \hspace*{-0.2cm + 0.2 cm} + Geneva, Switzerland \newline + Feb. 2023 to present \end{tabularx} \vspace*{0.12 cm} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 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} @@ -190,15 +192,15 @@ \item Test 3 \end{highlights} & - Geneva, Switzerland \hspace*{-0.2cm + 0.2 cm} \newline - Feb. 1986 to Feb. 2023 \hspace*{-0.2cm + 0.2 cm} + Geneva, Switzerland \newline + Feb. 1986 to Feb. 2023 \end{tabularx} \section{Academic Projects} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}} + \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} @@ -206,25 +208,24 @@ \item Test 2 \end{highlights} & - Istanbul, Turkey \hspace*{-0.2cm + 0.2 cm} \newline - Spring 2022 \hspace*{-0.2cm + 0.2 cm} + Istanbul, Turkey \newline + Spring 2022 \end{tabularx} \vspace*{0.12 cm} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 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} + \end{tabularx} \vspace*{0.12 cm} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 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} @@ -232,79 +233,81 @@ \item Test 2 \end{highlights} & - Istanbul, Turkey \hspace*{-0.2cm + 0.2 cm} \newline - Feb. 2022 to May 2022 \hspace*{-0.2cm + 0.2 cm} + Istanbul, Turkey \newline + Feb. 2022 to May 2022 \end{tabularx} \section{Certificates} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}} + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm}} \textbf{Certificate 1} \vspace*{0.12 cm} - & - \end{tabularx} + \end{tabularx} \section{Personal Projects} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}} + \begin{tabularx}{\textwidth-0.4 cm-0.13cm}{K{0.2 cm}} \textbf{Personal Project 1} \vspace*{0.12 cm} - & - \end{tabularx} + \end{tabularx} \section{Skills} - \setlength{\leftskip}{0.2 cm} - \setlength{\rightskip}{0.2 cm} + \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 - \setlength{\leftskip}{0cm} - \setlength{\rightskip}{0cm} + \par\endgroup \vspace*{0.12 cm} - \setlength{\leftskip}{0.2 cm} - \setlength{\rightskip}{0.2 cm} + \begingroup\raggedright + \leftskip=0.2 cm + \advance\csname @rightskip\endcsname 0.2 cm + \advance\rightskip 0.2 cm \textbf{CAE:} GMSH, GetDP, CalculiX - \setlength{\leftskip}{0cm} - \setlength{\rightskip}{0cm} + \par\endgroup \section{Test Scores} - \setlength{\leftskip}{0.2 cm} - \setlength{\rightskip}{0.2 cm} + \begingroup\raggedright + \leftskip=0.2 cm + \advance\csname @rightskip\endcsname 0.2 cm + \advance\rightskip 0.2 cm \textbf{TOEFL:} 120/120 - \setlength{\leftskip}{0cm} - \setlength{\rightskip}{0cm} + \par\endgroup \vspace*{0.12 cm} - \setlength{\leftskip}{0.2 cm} - \setlength{\rightskip}{0.2 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}) - \setlength{\leftskip}{0cm} - \setlength{\rightskip}{0cm} + \par\endgroup \section{Extracurricular Activities} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 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} @@ -315,7 +318,7 @@ \vspace*{0.12 cm} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 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} @@ -324,22 +327,27 @@ \item Test 3 \end{highlights} & - Izmir, Turkey \hspace*{-0.2cm + 0.2 cm} \newline - Summer 2019 and 2020 \hspace*{-0.2cm + 0.2 cm} + Izmir, Turkey \newline + Summer 2019 and 2020 \end{tabularx} \section{Publications} - \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}} + \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} - - Cetin Yilmaz, Gregory M Hulbert, Noboru Kikuchi + + \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}