diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/orcidlink/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf | bin | 136645 -> 135025 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/orcidlink/preview.png | bin | 0 -> 27457 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx | 40 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty | 21 |
5 files changed, 35 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/latex/orcidlink/README.md b/Master/texmf-dist/doc/latex/orcidlink/README.md index a5523276a7a..79e1e82c3d9 100644 --- a/Master/texmf-dist/doc/latex/orcidlink/README.md +++ b/Master/texmf-dist/doc/latex/orcidlink/README.md @@ -7,7 +7,7 @@ Installation ------------ 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 diff --git a/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf b/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf Binary files differindex 63cfe12b7e8..160e90aead6 100644 --- a/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf +++ b/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf diff --git a/Master/texmf-dist/doc/latex/orcidlink/preview.png b/Master/texmf-dist/doc/latex/orcidlink/preview.png Binary files differnew file mode 100644 index 00000000000..cbe1add8883 --- /dev/null +++ b/Master/texmf-dist/doc/latex/orcidlink/preview.png diff --git a/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx b/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx index 2d6a65fbd8b..016d225d0c4 100644 --- a/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx +++ b/Master/texmf-dist/source/latex/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} diff --git a/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty b/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty index 71d5f2aa57c..20f8c86b1d2 100644 --- a/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty +++ b/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty @@ -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] -\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] +\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={ @@ -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'. |