I want to include a link to my publication, using biblatex in a CV. But instead of the whole url, I just want a symbol which can be clicked.
My MWE is as follows:
\documentclass[11pt,a4paper]{moderncv}
% moderncv themes
\moderncvtheme[blue]{classic}
% character encoding
\usepackage[utf8]{inputenc}
\usepackage{bbding}
% personal data
\firstname{John}
\familyname{Doe}
\title{}
\address{somewhere}
\email{some.thing@gmail.com}
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % hyperlinks setup
\AfterPreamble{\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}}
\usepackage{filecontents}
\begin{filecontents}{pubs.bib}
@article{cazier_whole-genome_2014,
title = {My publication},
volume = {5},
url = {http://Somewebsite.html}, journal = {Nature},
author = {Doe, John. and Smith, John},
month = apr,
year = {2014},
}
\end{filecontents}
\AfterPreamble{
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
}
\usepackage[backend=biber, doi=false, isbn=false, style=nature, maxbibnames=20, defernumbers=true]{biblatex}
\addbibresource{pubs.bib}
\begin{document}
\maketitle
\nocite{*}
\printbibliography[title={Publications}, type=article, resetnumbers=true]
\end{document}
What I have tried:
\AfterPreamble{
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\let\orighref\href
\renewcommand{\href}[2]{\orighref{#1}{\ArrowBoldUpRight}} %I found this code on tex.SE
}
What I get:
As you can see, I get the little arrow replacing the email link. Whereas I want the url in the bibliography replaced with the arrow, without affecting the email link.