From 9cfe6ed159562ea2de04d449d8c296c836217308 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 15 Feb 2024 19:30:38 +0100 Subject: [PATCH] enhance classic theme --- rendercv/themes/classic/Header.j2.tex | 12 ++++++------ rendercv/themes/classic/Preamble.j2.tex | 3 +++ rendercv/themes/classic/__init__.py | 7 +++++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/rendercv/themes/classic/Header.j2.tex b/rendercv/themes/classic/Header.j2.tex index 0a00a27..e973eb9 100644 --- a/rendercv/themes/classic/Header.j2.tex +++ b/rendercv/themes/classic/Header.j2.tex @@ -16,19 +16,19 @@ \normalsize ((* if cv.phone *)) \mbox{\hrefWithoutArrow{<>}{{\footnotesize\faPhone*}\hspace{0.13cm}<>}} - \hspace{0.5cm} + \hspace{<>} ((* endif *)) ((* if cv.email *)) \mbox{\hrefWithoutArrow{mailto:<>}{{\small\faEnvelope[regular]}\hspace{0.13cm}<>}} - \hspace{0.5cm} + \hspace{<>} ((* endif *)) ((* if cv.location *)) \mbox{{\small\faMapMarker*}\hspace{0.13cm}<>} - \hspace{0.5cm} + \hspace{<>} ((* endif *)) ((* if cv.website *)) \mbox{\hrefWithoutArrow{<>}{{\small\faLink}\hspace{0.13cm}<>}} - \hspace{0.5cm} + \hspace{<>} ((* endif *)) ((* set icon_dictionary = { @@ -41,8 +41,8 @@ ((* if cv.social_networks *)) ((* for network in cv.social_networks *)) ((* if network.network in icon_dictionary *)) - \mbox{\hrefWithoutArrow{network.url}{{\small<>}\hspace{0.13cm}<>}} - \hspace{0.5cm} + \mbox{\hrefWithoutArrow{<>}{{\small<>}\hspace{0.13cm}<>}} + \hspace{<>} ((* endif *)) ((* endfor *)) ((* endif *)) diff --git a/rendercv/themes/classic/Preamble.j2.tex b/rendercv/themes/classic/Preamble.j2.tex index cf95599..140327a 100644 --- a/rendercv/themes/classic/Preamble.j2.tex +++ b/rendercv/themes/classic/Preamble.j2.tex @@ -122,3 +122,6 @@ \let\originalEndTabularx\endtabularx \renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup} + +% Ensure that generate pdf is machine readable/ATS parsable +\pdfgentounicode=1 \ No newline at end of file diff --git a/rendercv/themes/classic/__init__.py b/rendercv/themes/classic/__init__.py index e881fcb..9e51f75 100644 --- a/rendercv/themes/classic/__init__.py +++ b/rendercv/themes/classic/__init__.py @@ -166,6 +166,13 @@ class ClassicThemeOptions(pydantic.BaseModel): title="Date and Location Column Width", description="The width of the date and location column.", ) + space_between_connection_objects: LaTeXDimension = pydantic.Field( + default="0.5 cm", + title="Space Between Connection Objects", + description=( + "The space between the connection objects (like phone, email, and website)." + ), + ) text_alignment: Literal["left-aligned", "justified"] = pydantic.Field( default="left-aligned", title="Text Alignment",