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:
Mark E Fuller 2021-01-03 17:30:51 +01:00 committed by GitHub
commit 8d55276704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -9,7 +9,7 @@
when used with bibentry, through the output is actually correct. Amongst other, when used with bibentry, through the output is actually correct. Amongst other,
this causes compilation by LyX to stop. this causes compilation by LyX to stop.
- The space after a cventry gets eaten up when the last argument contains a nested - The space after a cventry gets eaten up when the last argument contains a nested
itemize environment. An ugly hack and uncomplete solution was implemented by itemize environment. An ugly hack and incomplete solution was implemented by
including a \strut in every item label, but this doesn't solve the problem for including a \strut in every item label, but this doesn't solve the problem for
multi-line items. Ideally, the strut should end the item, but there seem to be multi-line items. Ideally, the strut should end the item, but there seems to be
no way to do this. no way to do this.

View file

@ -517,14 +517,14 @@
\newcommand*{\link}[2][]{% \newcommand*{\link}[2][]{%
\ifthenelse{\equal{#1}{}}% \ifthenelse{\equal{#1}{}}%
{\href{#2}{#2}}% {\href{#2}{#2}}%
{\href{#2}{#1}}} {\href{#2}{\detokenize{#1}}}}
% makes a http hyperlink % makes a http hyperlink
% usage: \httplink[optional text]{link} % usage: \httplink[optional text]{link}
\newcommand*{\httplink}[2][]{% \newcommand*{\httplink}[2][]{%
\ifthenelse{\equal{#1}{}}% \ifthenelse{\equal{#1}{}}%
{\href{http://#2}{#2}}% {\href{http://#2}{#2}}%
{\href{http://#2}{#1}}} {\href{http://#2}{\detokenize{#1}}}}
% makes an https hyperlink % makes an https hyperlink
@ -532,15 +532,15 @@
\newcommand*{\httpslink}[2][]{% \newcommand*{\httpslink}[2][]{%
\ifthenelse{\equal{#1}{}}% \ifthenelse{\equal{#1}{}}%
{\href{https://#2}{#2}}% {\href{https://#2}{#2}}%
{\href{https://#2}{#1}}} {\href{https://#2}{\detokenize{#1}}}}
% makes an email hyperlink % makes an email hyperlink
% usage: \emaillink[optional text]{link} % usage: \emaillink[optional text]{link}
\newcommand*{\emaillink}[2][]{% \newcommand*{\emaillink}[2][]{%
\ifthenelse{\equal{#1}{}}% \ifthenelse{\equal{#1}{}}%
{\href{mailto:#2}{#2}}% {\href{mailto:#2}{#2}}%
{\href{mailto:#2}{#1}}}
{\href{mailto:#2}{\detokenize{#1}}}}
% makes a tel hyperlink % makes a tel hyperlink
% usage: \tellink[optional text]{link} % usage: \tellink[optional text]{link}
\newcommand*{\tellink}[2][]{% \newcommand*{\tellink}[2][]{%

View file

@ -36,7 +36,7 @@
%\fi %\fi
% symbols % symbols
\moderncvicons{marvosym} \moderncvicons{awesome}
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------