enhance classic theme

This commit is contained in:
Sina Atalay 2024-02-15 19:30:38 +01:00
parent 945a33a176
commit 9cfe6ed159
3 changed files with 16 additions and 6 deletions

View File

@ -16,19 +16,19 @@
\normalsize \normalsize
((* if cv.phone *)) ((* if cv.phone *))
\mbox{\hrefWithoutArrow{<<cv.phone|replace("-","")>>}{{\footnotesize\faPhone*}\hspace{0.13cm}<<cv.phone|replace("tel:", "")|replace("-"," ")>>}} \mbox{\hrefWithoutArrow{<<cv.phone|replace("-","")>>}{{\footnotesize\faPhone*}\hspace{0.13cm}<<cv.phone|replace("tel:", "")|replace("-"," ")>>}}
\hspace{0.5cm} \hspace{<<design.space_between_connection_objects>>}
((* endif *)) ((* endif *))
((* if cv.email *)) ((* if cv.email *))
\mbox{\hrefWithoutArrow{mailto:<<cv.email>>}{{\small\faEnvelope[regular]}\hspace{0.13cm}<<cv.email>>}} \mbox{\hrefWithoutArrow{mailto:<<cv.email>>}{{\small\faEnvelope[regular]}\hspace{0.13cm}<<cv.email>>}}
\hspace{0.5cm} \hspace{<<design.space_between_connection_objects>>}
((* endif *)) ((* endif *))
((* if cv.location *)) ((* if cv.location *))
\mbox{{\small\faMapMarker*}\hspace{0.13cm}<<cv.location>>} \mbox{{\small\faMapMarker*}\hspace{0.13cm}<<cv.location>>}
\hspace{0.5cm} \hspace{<<design.space_between_connection_objects>>}
((* endif *)) ((* endif *))
((* if cv.website *)) ((* if cv.website *))
\mbox{\hrefWithoutArrow{<<cv.website>>}{{\small\faLink}\hspace{0.13cm}<<cv.website|replace("https://","")|reverse|replace("/", "", 1)|reverse>>}} \mbox{\hrefWithoutArrow{<<cv.website>>}{{\small\faLink}\hspace{0.13cm}<<cv.website|replace("https://","")|reverse|replace("/", "", 1)|reverse>>}}
\hspace{0.5cm} \hspace{<<design.space_between_connection_objects>>}
((* endif *)) ((* endif *))
((* ((*
set icon_dictionary = { set icon_dictionary = {
@ -41,8 +41,8 @@
((* if cv.social_networks *)) ((* if cv.social_networks *))
((* for network in cv.social_networks *)) ((* for network in cv.social_networks *))
((* if network.network in icon_dictionary *)) ((* if network.network in icon_dictionary *))
\mbox{\hrefWithoutArrow{network.url}{{\small<<icon_dictionary[network.network]>>}\hspace{0.13cm}<<network.username>>}} \mbox{\hrefWithoutArrow{<<network.url>>}{{\small<<icon_dictionary[network.network]>>}\hspace{0.13cm}<<network.username>>}}
\hspace{0.5cm} \hspace{<<design.space_between_connection_objects>>}
((* endif *)) ((* endif *))
((* endfor *)) ((* endfor *))
((* endif *)) ((* endif *))

View File

@ -122,3 +122,6 @@
\let\originalEndTabularx\endtabularx \let\originalEndTabularx\endtabularx
\renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup} \renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup}
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1

View File

@ -166,6 +166,13 @@ class ClassicThemeOptions(pydantic.BaseModel):
title="Date and Location Column Width", title="Date and Location Column Width",
description="The width of the date and location column.", 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( text_alignment: Literal["left-aligned", "justified"] = pydantic.Field(
default="left-aligned", default="left-aligned",
title="Text Alignment", title="Text Alignment",