From 8c93f24f4291e497a5b8f7091f228f80850a3f87 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 15 Apr 2024 18:05:31 +0300 Subject: [PATCH] classic: implement `disable_external_link_icons` option --- rendercv/themes/classic/Preamble.j2.tex | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/rendercv/themes/classic/Preamble.j2.tex b/rendercv/themes/classic/Preamble.j2.tex index 00dda0b..fbfe906 100644 --- a/rendercv/themes/classic/Preamble.j2.tex +++ b/rendercv/themes/classic/Preamble.j2.tex @@ -28,12 +28,14 @@ \usepackage{calc} % for calculating lengths \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages -\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font \usepackage{changepage} % for one column entries (adjustwidth environment) \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[default, type1]{sourcesanspro} % for using source sans 3 font + % Ensure that generate pdf is machine readable/ATS parsable: \ifpdf \input{glyphtounicode} @@ -95,6 +97,7 @@ <> } % section title spacing +% \renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$} % custom bullet points \newenvironment{highlights}{ \begin{itemize}[ topsep=<>, @@ -132,7 +135,7 @@ \newenvironment{threecolentry}[3][]{ \onecolentry \def\thirdColumn{#3} - \setcolumnwidth{1cm, \fill, <>} + \setcolumnwidth{<>, \fill, <>} \begin{paracol}{3} \raggedright #2 \switchcolumn }{ @@ -163,5 +166,8 @@ % 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 + +% 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