| 1 |
# orcidlink-LaTeX-command |
| 2 |
LaTeX style file to add a macro for inserting a linked ORCiD logo |
| 3 |
|
| 4 |
This LaTeX style file defines `\orcidlink` and a few related macros. |
| 5 |
The code is from [this TeX.SE |
| 6 |
answer](https://tex.stackexchange.com/a/445583/34063). I wrapped it |
| 7 |
into a style file and improved the fragility of the command a bit. |
| 8 |
Later (at the suggestion of Hugo Heagren) we added the `\orcidlogo` |
| 9 |
command, and commands for the three recommended formats: full, |
| 10 |
compact, and inline, with commands `\orcidlinkf`, `\orcidlinkc`, and |
| 11 |
`\orcidlinki`. |
| 12 |
|
| 13 |
Installation |
| 14 |
------------ |
| 15 |
|
| 16 |
If `orcidlink` is already provided in your TeX distribution, skip this |
| 17 |
section. You should be able to install `orcidlink` [from the CTAN](https://www.ctan.org/pkg/orcidlink) via |
| 18 |
your distribution's utility (e.g. the TeX Live Utility). |
| 19 |
Alternatively, you can get the package from the [source repository on |
| 20 |
GitHub](https://github.com/duetosymmetry/orcidlink-LaTeX-command). If |
| 21 |
you do not want to do a "full" installation, just copy |
| 22 |
[orcidlink.sty](orcidlink.sty) into the same directory as your LaTeX |
| 23 |
source. |
| 24 |
|
| 25 |
Usage |
| 26 |
----- |
| 27 |
|
| 28 |
In your preamble, add: |
| 29 |
```latex |
| 30 |
\usepackage{orcidlink} |
| 31 |
``` |
| 32 |
When you want to insert the hyperlinked ORCiD logo, use `\orcidlink{0000-0000-0000-0000}`, replacing the digits with your ORCiD (just the digits, not your whole URL). This is most common in the author list. For example, in a revtex article, you would write e.g. |
| 33 |
```latex |
| 34 |
\author{Emmy Noether\,\orcidlink{0000-0000-0000-0000}} |
| 35 |
... |
| 36 |
``` |
| 37 |
This will appear as a clickable hyperlink, and will look like this: |
| 38 |
 |
| 39 |
|
| 40 |
If you simply want the ORCiD logo without a hyperlink anywhere, use |
| 41 |
`\orcidlogo`. |
| 42 |
|
| 43 |
ORCiD’s [guidelines](https://info.orcid.org/brand-guidelines/) |
| 44 |
recommend three formats: full, compact, and inline. The three formats |
| 45 |
are available, through `\orcidlinkf{orcid}`, `\orcidlinkc{orcid}`, and |
| 46 |
`\orcidlinki{Name}{orcid}`. |
| 47 |
|
| 48 |
Dependancies and Compatibility |
| 49 |
------------------------------ |
| 50 |
|
| 51 |
This package relies on the following packages: |
| 52 |
- [etoolbox](https://ctan.org/pkg/etoolbox) (depending on hyperref>=2023-04-20 |
| 53 |
already relies on etoolbox) |
| 54 |
- [hyperref](https://www.ctan.org/pkg/hyperref) |
| 55 |
- [tikz](https://www.ctan.org/pkg/pgf) |
| 56 |
|
| 57 |
All of these packages are included in the popular [TeX Live](https://www.tug.org/texlive/) distribution, so most users should not have to install anything new. |
| 58 |
|
| 59 |
If you want to pass options to either of these packages, load them |
| 60 |
before you load `orcidlink`. Similarly, if you want to specify options |
| 61 |
to e.g. `xcolor`, load `xcolor` before loading `tikz` or `orcidlink`. |
| 62 |
|
| 63 |
Credits |
| 64 |
------- |
| 65 |
|
| 66 |
The original TikZ icon code was created by user [Milo on |
| 67 |
TeX.SE](https://tex.stackexchange.com/users/128068/milo). |
| 68 |
This package was created and is maintained by [Leo |
| 69 |
C. Stein](http://duetosymmetry.com/), (c) 2019-2026. |
| 70 |
This material is subject to the [LaTeX Project Public License |
| 71 |
1.3c](https://www.ctan.org/license/lppl1.3). |