From 77b930de8c27e0e88d6861bf623015271146a1d5 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 22 Nov 2020 03:01:07 +0000
Subject: CTAN sync 202011220301

---
 macros/latex/contrib/orcidlink/orcidlink.dtx | 40 +++++++++++++++-------------
 1 file changed, 22 insertions(+), 18 deletions(-)

(limited to 'macros/latex/contrib/orcidlink/orcidlink.dtx')

diff --git a/macros/latex/contrib/orcidlink/orcidlink.dtx b/macros/latex/contrib/orcidlink/orcidlink.dtx
index 2d6a65fbd8..016d225d0c 100644
--- a/macros/latex/contrib/orcidlink/orcidlink.dtx
+++ b/macros/latex/contrib/orcidlink/orcidlink.dtx
@@ -23,16 +23,11 @@
 %<*driver>
 \ProvidesFile{orcidlink.dtx}
 %</driver>
-%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<package>\ProvidesPackage{orcidlink}
-%<*package>
-    [2020/11/19 v1.0.0 Linked ORCiD logo macro package]
-%</package>
 %
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage[dvipsnames]{xcolor}
-\usepackage{orcidlink}[2020/11/19]
+\usepackage{orcidlink}[2020/11/21]
 \hypersetup{colorlinks,urlcolor=NavyBlue,citecolor=NavyBlue,linkcolor=NavyBlue,pdfusetitle}
 \usepackage{graphicx}
 \EnableCrossrefs
@@ -45,7 +40,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{21}
+% \CheckSum{22}
 %
 % \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,10 +60,13 @@
 %
 %
 % \changes{v1.0.0}{2020/11/19}{Converted to DTX file}
+% \changes{v1.0.1}{2020/11/21}{Bugfix due to misunderstanding of docstrip}
+% \changes{v1.0.2}{2020/11/21}{Fix fragility of command when inside of
+% author, and combined with hyperref's option pdfusetitle}
 %
 % \DoNotIndex{\newcommand,\newenvironment}
 %
-% \GetFileInfo{orcidlink.dtx}
+% \GetFileInfo{orcidlink.sty}
 % \title{The \textsf{orcidlink} package}
 % \author{Leo C.\ Stein\,\orcidlink{0000-0001-7559-9597} \\ \href{mailto:leo.stein@gmail.com}{leo.stein@gmail.com}}
 % \date{\fileversion~from \filedate}
@@ -87,13 +85,14 @@
 %
 % To use this package, in the preamble include
 %    \begin{macrocode}
-\usepackage{orcidlink}
+%    \usepackage{orcidlink}
 %    \end{macrocode}
+%
 % \DescribeMacro{\orcidlink}
 % Insert the ORCiD logo (\orcidlink{}), which is hyperlinked to the URL
 % of the researcher whose iD was specified.  Usage: 
 %
-|\orcidlink| \marg{orcid}\newline
+% |\orcidlink| \marg{orcid}\newline
 % Replace the mandatory argument \meta{orcid} with your
 % ORCiD --- just the digits, not your whole URL.
 % For example, the command
@@ -103,7 +102,7 @@
 % the author list.  For example, in the preamble of a RevTeX article,
 % if you write
 %    \begin{macrocode}
-\author{Emmy Noether\,\orcidlink{0000-0000-0000-0000}}
+%    \author{Emmy Noether\,\orcidlink{0000-0000-0000-0000}}
 %    \end{macrocode}
 % then the article byline will look something like this:
 %
@@ -120,16 +119,19 @@
 %
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesPackage{orcidlink}[2019/12/12 Linked ORCiD logo macro package]
-%    \end{macrocode}
-% All I did was package up Milo's code on TeX.SE,
-% see https://tex.stackexchange.com/a/445583/34063
-%    \begin{macrocode}
+\ProvidesPackage{orcidlink}
+    [2020/11/21 v1.0.2 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
 \RequirePackage{hyperref}
 \RequirePackage{scalerel}
 \RequirePackage{tikz}
+
 \ProcessOptions\relax
+
 \usetikzlibrary{svg.path}
+
 \definecolor{orcidlogocol}{HTML}{A6CE39}
 \tikzset{
   orcidlogo/.pic={
@@ -143,11 +145,13 @@
 %
 % \begin{macro}{\orcidlink}
 %    \begin{macrocode}
-\newcommand\orcidlink[1]{\href{https://orcid.org/#1}{\mbox{\scalerel*{
+
+\newcommand\orcidlink[1]{\texorpdfstring{\href{https://orcid.org/#1}{\mbox{\scalerel*{
 \begin{tikzpicture}[yscale=-1,transform shape]
 \pic{orcidlogo};
 \end{tikzpicture}
-}{|}}}}
+}{|}}}}{}}
+
 \endinput
 %    \end{macrocode}
 % \end{macro}
-- 
cgit v1.2.3

