From a6859fb06cdf8b9eb48cb924ac735159f4eb871b Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 17 Feb 2024 18:08:49 +0100 Subject: [PATCH] enhance external links in classic theme --- rendercv/themes/classic/Preamble.j2.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rendercv/themes/classic/Preamble.j2.tex b/rendercv/themes/classic/Preamble.j2.tex index e55ae57..57e1004 100644 --- a/rendercv/themes/classic/Preamble.j2.tex +++ b/rendercv/themes/classic/Preamble.j2.tex @@ -28,6 +28,7 @@ \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages \usepackage[default, type1]{sourcesanspro} % for using source sans pro font +\usepackage{ifthen} % Some settings: \pagestyle{empty} % no header or footer @@ -116,7 +117,7 @@ % save the original href command in a new command: \let\hrefWithoutArrow\href % new command for external links: -\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{#2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}}} +\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{}{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}} \let\originalTabularx\tabularx \let\originalEndTabularx\endtabularx