From 70e1721cd5ae702590bd95c635f38cf3c02b31a8 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 15 Apr 2024 18:05:49 +0300 Subject: [PATCH] engineeringresumes: implement `disable_external_link_icons` option --- .../themes/engineeringresumes/Preamble.j2.tex | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rendercv/themes/engineeringresumes/Preamble.j2.tex b/rendercv/themes/engineeringresumes/Preamble.j2.tex index 897e5e4..b4ddc07 100644 --- a/rendercv/themes/engineeringresumes/Preamble.j2.tex +++ b/rendercv/themes/engineeringresumes/Preamble.j2.tex @@ -32,6 +32,8 @@ \usepackage{paracol} % for two and three column entries \usepackage{ifthen} % for conditional statements \usepackage{needspace} % for avoiding page brake right after the section title + +% Theme specific: \usepackage{charter} % for using charter font % Ensure that generate pdf is machine readable/ATS parsable: @@ -84,7 +86,7 @@ <> } % section title spacing -\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$} +\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$} % custom bullet points \newenvironment{highlights}{ \begin{itemize}[ topsep=<>, @@ -151,7 +153,10 @@ }% }% -% % save the original href command in a new command: -% \let\hrefWithoutArrow\href -% % new command for external links: -% \renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}} \ No newline at end of file +% save the original href command in a new command: +\let\hrefWithoutArrow\href + +% new command for external links: +((* if not design.disable_external_link_icons *)) +\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}} +((* endif *)) \ No newline at end of file