mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Implement detokenize in links to fix use of underscores and other characters in social links; change icon package in classic style to same as casual since so many were missing (#24)
This commit is contained in:
parent
23177fcf19
commit
8d55276704
3 changed files with 7 additions and 7 deletions
|
|
@ -517,14 +517,14 @@
|
|||
\newcommand*{\link}[2][]{%
|
||||
\ifthenelse{\equal{#1}{}}%
|
||||
{\href{#2}{#2}}%
|
||||
{\href{#2}{#1}}}
|
||||
{\href{#2}{\detokenize{#1}}}}
|
||||
|
||||
% makes a http hyperlink
|
||||
% usage: \httplink[optional text]{link}
|
||||
\newcommand*{\httplink}[2][]{%
|
||||
\ifthenelse{\equal{#1}{}}%
|
||||
{\href{http://#2}{#2}}%
|
||||
{\href{http://#2}{#1}}}
|
||||
{\href{http://#2}{\detokenize{#1}}}}
|
||||
|
||||
|
||||
% makes an https hyperlink
|
||||
|
|
@ -532,15 +532,15 @@
|
|||
\newcommand*{\httpslink}[2][]{%
|
||||
\ifthenelse{\equal{#1}{}}%
|
||||
{\href{https://#2}{#2}}%
|
||||
{\href{https://#2}{#1}}}
|
||||
{\href{https://#2}{\detokenize{#1}}}}
|
||||
|
||||
% makes an email hyperlink
|
||||
% usage: \emaillink[optional text]{link}
|
||||
\newcommand*{\emaillink}[2][]{%
|
||||
\ifthenelse{\equal{#1}{}}%
|
||||
{\href{mailto:#2}{#2}}%
|
||||
{\href{mailto:#2}{#1}}}
|
||||
|
||||
{\href{mailto:#2}{\detokenize{#1}}}}
|
||||
% makes a tel hyperlink
|
||||
% usage: \tellink[optional text]{link}
|
||||
\newcommand*{\tellink}[2][]{%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue