texlive[56976] Master/texmf-dist: orcidlink (21nov20)

commits+karl at tug.org commits+karl at tug.org
Sat Nov 21 22:44:46 CET 2020


Revision: 56976
          http://tug.org/svn/texlive?view=revision&revision=56976
Author:   karl
Date:     2020-11-21 22:44:46 +0100 (Sat, 21 Nov 2020)
Log Message:
-----------
orcidlink (21nov20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/orcidlink/README.md
    trunk/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf
    trunk/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx
    trunk/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/orcidlink/preview.png

Modified: trunk/Master/texmf-dist/doc/latex/orcidlink/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/orcidlink/README.md	2020-11-21 00:53:38 UTC (rev 56975)
+++ trunk/Master/texmf-dist/doc/latex/orcidlink/README.md	2020-11-21 21:44:46 UTC (rev 56976)
@@ -7,7 +7,7 @@
 ------------
 
 If `orcidlink` is already provided in your TeX distribution, skip this
-section.  You should be able to install `orcidlink` from the CTAN via
+section.  You should be able to install `orcidlink` [from the CTAN](https://www.ctan.org/pkg/orcidlink) via
 your distribution's utility (e.g. the TeX Live Utility).
 Alternatively, you can get the package from the [source repository on
 GitHub](https://github.com/duetosymmetry/orcidlink-LaTeX-command).  If

Modified: trunk/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/orcidlink/preview.png
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/orcidlink/preview.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/orcidlink/preview.png	2020-11-21 00:53:38 UTC (rev 56975)
+++ trunk/Master/texmf-dist/doc/latex/orcidlink/preview.png	2020-11-21 21:44:46 UTC (rev 56976)

Property changes on: trunk/Master/texmf-dist/doc/latex/orcidlink/preview.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx	2020-11-21 00:53:38 UTC (rev 56975)
+++ trunk/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx	2020-11-21 21:44:46 UTC (rev 56976)
@@ -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 at gmail.com}{leo.stein at 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}

Modified: trunk/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty	2020-11-21 00:53:38 UTC (rev 56975)
+++ trunk/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty	2020-11-21 21:44:46 UTC (rev 56976)
@@ -18,19 +18,20 @@
 %% and version 1.3 or later is part of all distributions of LaTeX
 %% version 2005/12/01 or later.
 %% 
-\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
 \ProvidesPackage{orcidlink}
-    [2020/11/19 v1.0.0 Linked ORCiD logo macro package]
-\usepackage{orcidlink}
-|\orcidlink| \marg{orcid}\newline
-\author{Emmy Noether\,\orcidlink{0000-0000-0000-0000}}
-\NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesPackage{orcidlink}[2019/12/12 Linked ORCiD logo macro package]
+    [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={
@@ -40,11 +41,13 @@
                  svg{M88.7,56.8c0,5.5-4.5,10.1-10.1,10.1c-5.6,0-10.1-4.6-10.1-10.1c0-5.6,4.5-10.1,10.1-10.1C84.2,46.7,88.7,51.3,88.7,56.8z};
   }
 }
-\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 of file `orcidlink.sty'.



More information about the tex-live-commits mailing list.