diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty index b6df9539d51..946a9235195 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty @@ -6,7 +6,7 @@ %% %% lwarp.dtx (with options: `orcidlink') %% This is a generated file. -%% Copyright 2016-2022 Brian Dunn +%% Copyright 2016-2025 Brian Dunn %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -15,29 +15,33 @@ %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. +%% \RequirePackage{lwarp-scalerel} -\LWR@ProvidesPackagePass{orcidlink}[2023/12/30] -\VerifyCommand[lwarp][orcidlink]{\orcidlink}{3158910F15AD114F9C397A208315B6D2} +\LWR@ProvidesPackagePass{orcidlink}[2024/06/26] +\xpretocmd{\orcidlogo} + {\begin{lateximage}[orcidlogo]} + {} + {\LWR@patcherror{orcidlink}{orcidlogo pre}} + +\xapptocmd{\orcidlogo} + {\end{lateximage}} + {} + {\LWR@patcherror{orcidlink}{orcidlogo post}} + +\VerifyCommand[lwarp][orcidlink]{\orcidlinkX} + {3CDD2DC196F113AE4758968E937D7D08} -\renewcommand\orcidlink[1]{% - \texorpdfstring% +\renewrobustcmd{\orcidlinkX}[3]{% + \href% + {https://orcid.org/#2}% {% - \href% - {https://orcid.org/#1}% - {% - \begin{lateximage}[orcid #1]% lwarp - \mbox{% - \scalerel*{% - \begin{tikzpicture}[yscale=-1,transform shape] - \pic{orcidlogo}; - \end{tikzpicture} - }{|}% - }% - \end{lateximage}% lwarp - }% + \ifstrempty{#1}{}{#1\,}% + \begin{lateximage}*[orcid #2]?% + \orcidlogo% + \end{lateximage}% lwarp + \ifstrempty{#3}{}{\,#3}% }% - {}% } \begin{warpMathJax} |