From 0c591c3d69f1e61c262bfeb0605059ab52366a4e Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 17 Nov 2023 22:41:15 +0100 Subject: [PATCH] improve the classic theme --- rendercv/templates/classic/classic.tex.j2 | 4 ++-- rendercv/templates/classic/components/entry.tex.j2 | 6 +++--- rendercv/templates/classic/components/highlights.tex.j2 | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/rendercv/templates/classic/classic.tex.j2 b/rendercv/templates/classic/classic.tex.j2 index 33485ee..0e4d25d 100644 --- a/rendercv/templates/classic/classic.tex.j2 +++ b/rendercv/templates/classic/classic.tex.j2 @@ -42,7 +42,7 @@ \makeatletter \let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle \patchcmd{\ps@customFooterStyle}{\thepage}{ - \color{gray}\textit{<> | Page \thepage{} of \pageref*{LastPage}} + \color{gray}\textit{\small <> | Page \thepage{} of \pageref*{LastPage}} }{}{} % replace number by desired string \makeatother \pagestyle{customFooterStyle} @@ -122,7 +122,7 @@ % 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*}}} +\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{#2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}} \begin{document} ((* if theme_options.show_last_updated_date *)) diff --git a/rendercv/templates/classic/components/entry.tex.j2 b/rendercv/templates/classic/components/entry.tex.j2 index d4d0d0d..defea7d 100644 --- a/rendercv/templates/classic/components/entry.tex.j2 +++ b/rendercv/templates/classic/components/entry.tex.j2 @@ -80,13 +80,13 @@ \begin{tabularx}{\textwidth-<>-0.13cm}{K{<>} R{<>}} \textbf{<>} - \vspace{<<theme_options.margins.entry_area.vertical_between|divide_length_by(2)>>} + \vspace{<<theme_options.margins.highlights_area.vertical_between_bullet_points>>} <<authors|abbreviate_names|join(", ")|make_it_bold(cv.name|abbreviate_name)|make_it_italic(cv.name|abbreviate_name)>> - \vspace{<<theme_options.margins.entry_area.vertical_between|divide_length_by(2)>>} + \vspace{<<theme_options.margins.highlights_area.vertical_between_bullet_points>>} - DOI: \href{<<doi_url>>}{<<doi>>} + \href{<<doi_url>>}{<<doi>>} (<<journal>>) & <<date>> diff --git a/rendercv/templates/classic/components/highlights.tex.j2 b/rendercv/templates/classic/components/highlights.tex.j2 index 11e1756..56fb1c6 100644 --- a/rendercv/templates/classic/components/highlights.tex.j2 +++ b/rendercv/templates/classic/components/highlights.tex.j2 @@ -4,7 +4,8 @@ ((* if loop.first *)) \begin{highlights} ((* endif *)) - \item <<item|markdown_to_latex>> + \item <<item|markdown_to_latex>> ((* if loop.last *))\hspace*{-0.2cm}((* endif *)) + ((* if loop.last *)) \end{highlights} ((* endif *))