engineeringresumes: implement `disable_external_link_icons` option

This commit is contained in:
Sina Atalay 2024-04-15 18:05:49 +03:00
parent 8c93f24f42
commit 70e1721cd5
1 changed files with 10 additions and 5 deletions

View File

@ -32,6 +32,8 @@
\usepackage{paracol} % for two and three column entries \usepackage{paracol} % for two and three column entries
\usepackage{ifthen} % for conditional statements \usepackage{ifthen} % for conditional statements
\usepackage{needspace} % for avoiding page brake right after the section title \usepackage{needspace} % for avoiding page brake right after the section title
% Theme specific:
\usepackage{charter} % for using charter font \usepackage{charter} % for using charter font
% Ensure that generate pdf is machine readable/ATS parsable: % Ensure that generate pdf is machine readable/ATS parsable:
@ -84,7 +86,7 @@
<<design.margins.section_title.bottom>> <<design.margins.section_title.bottom>>
} % section title spacing } % section title spacing
\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$} \renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$} % custom bullet points
\newenvironment{highlights}{ \newenvironment{highlights}{
\begin{itemize}[ \begin{itemize}[
topsep=<<design.margins.highlights_area.top>>, topsep=<<design.margins.highlights_area.top>>,
@ -151,7 +153,10 @@
}% }%
}% }%
% % save the original href command in a new command: % save the original href command in a new command:
% \let\hrefWithoutArrow\href \let\hrefWithoutArrow\href
% % new command for external links:
% \renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}} % 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 *))