diff options
author | Norbert Preining <norbert@preining.info> | 2020-11-22 03:01:07 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-11-22 03:01:07 +0000 |
commit | 77b930de8c27e0e88d6861bf623015271146a1d5 (patch) | |
tree | a294e3e5d3a06b31fbff8902f41c14028ad0e978 /macros/latex/contrib/orcidlink | |
parent | a66b0031e302fc53a3e94a2c80485bbbd923a299 (diff) |
CTAN sync 202011220301
Diffstat (limited to 'macros/latex/contrib/orcidlink')
-rw-r--r-- | macros/latex/contrib/orcidlink/README.md | 2 | ||||
-rw-r--r-- | macros/latex/contrib/orcidlink/orcidlink.dtx | 40 | ||||
-rw-r--r-- | macros/latex/contrib/orcidlink/orcidlink.pdf | bin | 136645 -> 135025 bytes | |||
-rw-r--r-- | macros/latex/contrib/orcidlink/preview.png | bin | 0 -> 27457 bytes |
4 files changed, 23 insertions, 19 deletions
diff --git a/macros/latex/contrib/orcidlink/README.md b/macros/latex/contrib/orcidlink/README.md index a5523276a7..79e1e82c3d 100644 --- a/macros/latex/contrib/orcidlink/README.md +++ b/macros/latex/contrib/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/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} diff --git a/macros/latex/contrib/orcidlink/orcidlink.pdf b/macros/latex/contrib/orcidlink/orcidlink.pdf Binary files differindex 63cfe12b7e..160e90aead 100644 --- a/macros/latex/contrib/orcidlink/orcidlink.pdf +++ b/macros/latex/contrib/orcidlink/orcidlink.pdf diff --git a/macros/latex/contrib/orcidlink/preview.png b/macros/latex/contrib/orcidlink/preview.png Binary files differnew file mode 100644 index 0000000000..cbe1add888 --- /dev/null +++ b/macros/latex/contrib/orcidlink/preview.png |