From 49a2dc3e641767a9a7538782a50f6093ed082edc Mon Sep 17 00:00:00 2001 From: Sina Atalay <79940989+sinaatalay@users.noreply.github.com> Date: Mon, 8 Apr 2024 19:27:28 +0000 Subject: [PATCH] engineeringresumes: remove icons from the header --- .../themes/engineeringresumes/Header.j2.tex | 50 ++++++------------- .../themes/engineeringresumes/Preamble.j2.tex | 12 ++++- .../PublicationEntry.j2.tex | 31 ++++++------ 3 files changed, 42 insertions(+), 51 deletions(-) diff --git a/rendercv/themes/engineeringresumes/Header.j2.tex b/rendercv/themes/engineeringresumes/Header.j2.tex index ab50529..b17b0f3 100644 --- a/rendercv/themes/engineeringresumes/Header.j2.tex +++ b/rendercv/themes/engineeringresumes/Header.j2.tex @@ -1,48 +1,28 @@ +\makeatletter +\newcommand{\test}{% + \@ifnextchar\par{A}{B}% +} +\makeatother + ((* if design.show_last_updated_date *)) \placelastupdatedtext ((* endif *)) ((* if cv.name is not none *)) \begin{header} - \fontsize{<>}{<>} - \textbf{<>} + \fontsize{<>}{<>}\selectfont <> \vspace{<>} \normalsize -((* if cv.phone *)) - \mbox{\href{<>}{\color{black}{\footnotesize\faPhone*}\hspace*{0.13cm}<>}} - \hspace*{<>} -((* endif *)) -((* if cv.email *)) - \mbox{\href{mailto:<>}{\color{black}{\small\faEnvelope[regular]}\hspace*{0.13cm}<>}} - \hspace*{<>} -((* endif *)) -((* if cv.location *)) - \mbox{\color{black}{\small\faMapMarker*}\hspace*{0.13cm}<>} - \hspace*{<>} -((* endif *)) -((* if cv.website *)) - \mbox{\href{<>}{\color{black}{\small\faLink}\hspace*{0.13cm}<>}} - \hspace*{<>} -((* endif *)) -((* - set icon_dictionary = { - "LinkedIn": "\\faLinkedinIn", - "GitHub": "\\faGithub", - "Instagram": "\\faInstagram", - "Mastodon": "\\faMastodon", - "Orcid": "\\faOrcid", - } -*)) -((* if cv.social_networks *)) - ((* for network in cv.social_networks *)) - ((* if network.network in icon_dictionary *)) - \mbox{\href{<>}{\color{black}{\small<>}\hspace*{0.13cm}<>}} - \hspace*{<>} - ((* endif *)) + ((* for connection in cv.connections *)) + \mbox{\href{<>}{<>}} + \hspace*{<>} + ((* if not loop.last *)) + $|$ + ((* endif *)) + \hspace*{<>} ((* endfor *)) -((* endif *)) \end{header} -\vspace{<>} +\vspace{<> - <>} ((* endif *)) \ No newline at end of file diff --git a/rendercv/themes/engineeringresumes/Preamble.j2.tex b/rendercv/themes/engineeringresumes/Preamble.j2.tex index c5447b5..ba21151 100644 --- a/rendercv/themes/engineeringresumes/Preamble.j2.tex +++ b/rendercv/themes/engineeringresumes/Preamble.j2.tex @@ -41,6 +41,13 @@ \fi % Some settings: +((* if design.text_alignment == "justified-with-no-hyphenation" *)) +\usepackage[none]{hyphenat} +\sloppy +((* elif design.text_alignment == "left-aligned" *)) +\raggedright +((* endif *)) + \pagestyle{empty} % no header or footer \setcounter{secnumdepth}{0} % no section numbering \setlength{\parindent}{0pt} % no indentation @@ -132,13 +139,16 @@ \par\kern\topsep } % new environment for the header +((* set last_updated_date_style_placeholders = { + "TODAY": today, +} *)) \newcommand{\placelastupdatedtext}{% \placetextbox{}{}{} \AddToShipoutPictureFG*{% Add to current page foreground \put( \LenToUnit{\paperwidth-<>-<>+0.05cm}, \LenToUnit{\paperheight-<>} ){\vtop{{\null}\makebox[0pt][c]{ - \small\color{gray}\textit{Last updated in <>}\hspace{\widthof{Last updated in <>}} + \small\color{gray}\textit{<>}\hspace{\widthof{<>}} }}}% }% }% diff --git a/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex b/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex index ff87f59..e0f16c8 100644 --- a/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex +++ b/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex @@ -3,22 +3,23 @@ ((* endif *)) \begin{onecolentry} - \textbf{<>} \hfill <> + \begin{minipage}{\linewidth} + \textbf{<>} \hfill <> - \vspace{<>} + \vspace{<>} - <> - ((* if entry.doi or entry.journal *)) - \vspace{<>} - - ((* endif *)) - ((* if entry.doi -*)) - \href{<>}{<>} - ((*- endif -*)) - ((*- if entry.doi and entry.journal *)) (((* endif -*)) - ((*- if entry.journal -*)) - <> - ((*- endif -*)) - ((*- if entry.doi and entry.journal *)))((* endif -*)) + <> + ((* if entry.doi or entry.journal *)) + \vspace{<>} + ((* endif *)) + ((* if entry.doi -*)) + \href{<>}{<>} + ((*- endif -*)) + ((*- if entry.doi and entry.journal *)) (((* endif -*)) + ((*- if entry.journal -*)) + <> + ((*- endif -*)) + ((*- if entry.doi and entry.journal *)))((* endif -*)) + \end{minipage} \end{onecolentry}