Created
July 29, 2021 12:17
-
-
Save barryirwin/6418dce585f775e46afe3739ae892801 to your computer and use it in GitHub Desktop.
Restyling of \href in LateX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% requires fontawesome package for icon | |
%save old command | |
\let\orighref\href | |
%redefine the command without circular references | |
\renewcommand{\href}[2]{\orighref{#1}{{\small\faLink{}} #2}} | |
% generate a clickabel link with a link icon next to it. | |
\href{https://google.com}{moo} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment