summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-11-21 21:44:46 +0000
committerKarl Berry <karl@freefriends.org>2020-11-21 21:44:46 +0000
commiteb1a6fc7a1b751c8311403b76cbe4a8222687146 (patch)
tree0112ed76f6c33789a2269f729bd5657b1336146a /Master/texmf-dist/tex
parente69cf6223177464846d0da92465be590f10f6d80 (diff)
orcidlink (21nov20)
git-svn-id: svn://tug.org/texlive/trunk@56976 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty21
1 files changed, 12 insertions, 9 deletions
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'.