enhance external links in classic theme

This commit is contained in:
Sina Atalay 2024-02-17 18:08:49 +01:00
parent 8a1ec8b3bd
commit a6859fb06c
1 changed files with 2 additions and 1 deletions

View File

@ -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