Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-orcidlink.sty

raw
1 %%
2 %% This is file `lwarp-orcidlink.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `orcidlink')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \RequirePackage{lwarp-scalerel}
19
20 \LWR@ProvidesPackagePass{orcidlink}[2024/06/26]
21 \xpretocmd{\orcidlogo}
22 {\begin{lateximage}[orcidlogo]}
23 {}
24 {\LWR@patcherror{orcidlink}{orcidlogo pre}}
25
26 \xapptocmd{\orcidlogo}
27 {\end{lateximage}}
28 {}
29 {\LWR@patcherror{orcidlink}{orcidlogo post}}
30
31 \VerifyCommand[lwarp][orcidlink]{\orcidlinkX}
32 {3CDD2DC196F113AE4758968E937D7D08}
33
34 \renewrobustcmd{\orcidlinkX}[3]{%
35 \href%
36 {https://orcid.org/#2}%
37 {%
38 \ifstrempty{#1}{}{#1\,}%
39 \begin{lateximage}*[orcid #2]?%
40 \orcidlogo%
41 \end{lateximage}% lwarp
42 \ifstrempty{#3}{}{\,#3}%
43 }%
44 }
45
46 \begin{warpMathJax}
47 \CustomizeMathJax{\newcommand{\orcidlink}[1]{}}
48 \end{warpMathJax}
49
50 \endinput
51 %%
52 %% End of file `lwarp-orcidlink.sty'.