summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/orcidlink
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-11 19:54:17 +0000
committerKarl Berry <karl@freefriends.org>2021-06-11 19:54:17 +0000
commit0990ef97af2ea14790855e21f9c26d1db44ef683 (patch)
tree6f96e47ffb79dfb81ff8f5a481961812ae0e703a /Master/texmf-dist/source/latex/orcidlink
parentb3bc3d37bd31f552e18fb0e635164e5e95441e13 (diff)
orcidlink (11jun21)
git-svn-id: svn://tug.org/texlive/trunk@59560 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/orcidlink')
-rw-r--r--Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx b/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx
index 7f34baa2fce..219fb442680 100644
--- a/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx
+++ b/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx
@@ -40,7 +40,7 @@
%</driver>
% \fi
%
-% \CheckSum{32}
+% \CheckSum{33}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -65,6 +65,8 @@
% author, and combined with hyperref's option pdfusetitle}
% \changes{v1.0.3}{2021/03/15}{Improve fragility by calculating
% scaling ourselves, and using DeclareRobustCommand}
+% \changes{v1.0.4}{2021/06/11}{Use XeTeXLinkBox to get hyperlink
+% working correctly with XeTeX. Thanks to Tim Henke for the bug report.}
%
% \DoNotIndex{\newcommand,\newenvironment}
%
@@ -120,7 +122,7 @@
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{orcidlink}
- [2021/03/15 v1.0.3 Linked ORCiD logo macro package]
+ [2021/06/11 v1.0.4 Linked ORCiD logo macro package]
%% All I did was package up Milo's code on TeX.SE,
%% see https://tex.stackexchange.com/a/445583/34063
@@ -155,12 +157,12 @@
\DeclareRobustCommand\orcidlink[1]{%
\texorpdfstring{%
\setlength{\@curXheight}{\fontcharht\font`X}%
-\href{https://orcid.org/#1}{\mbox{%
+\href{https://orcid.org/#1}{\XeTeXLinkBox{\mbox{%
\begin{tikzpicture}[yscale=-\@OrigHeightRecip*\@curXheight,
xscale=\@OrigHeightRecip*\@curXheight,transform shape]
\pic{orcidlogo};
\end{tikzpicture}%
-}}}{}}
+}}}}{}}
\endinput
% \end{macrocode}