Ora

How do you add ORCID link in LaTeX?

Published in LaTeX ORCID Linking 5 mins read

To add an ORCID link in LaTeX, the most straightforward and recommended method is to use the dedicated orcidlink package. This package simplifies the process by providing a command that automatically inserts a hyperlinked ORCID logo next to your name or wherever you need it.


How to Add an ORCID Link in LaTeX

Adding your ORCID to your LaTeX document ensures proper attribution and discoverability of your research. There are primarily two methods to achieve this: using the orcidlink package for an integrated logo, or manually creating a hyperlink.

1. Using the orcidlink Package (Recommended for Logo)

The orcidlink package is specifically designed for easily inserting a hyperlinked ORCID logo. This is particularly common in author lists of academic papers.

Steps:

  1. Include the package: In your LaTeX document's preamble (before \begin{document}), add the following line:

    \usepackage{orcidlink}
  2. Insert the ORCID: Use the \orcidlink command where you want the logo to appear. Replace 0000-0000-0000-0000 with your actual 16-digit ORCID.

    • Example in an author list:

      \author{Jane Doe\orcidlink{0000-0001-2345-6789}}
      % Or, for better spacing with some document classes:
      % \author{Jane Doe\\,\orcidlink{0000-0001-2345-6789}}

      The \, (thin space) after the author's name and before \orcidlink can help with spacing, especially in document classes like revtex.

    • Full Example:

      \documentclass{article}
      \usepackage{orcidlink}
      \usepackage[hidelinks]{hyperref} % Optional: For cleaner links without boxes
      
      \title{My Research Paper}
      \author{John Smith\orcidlink{0000-0001-2345-6789} \and Alice Wonderland\orcidlink{0000-0002-3456-7890}}
      \date{September 2, 2023}
      
      \begin{document}
      
      \maketitle
      
      \section{Introduction}
      This is a sample document demonstrating how to add ORCID links.
      
      \end{document}

      When compiled with pdflatex, this will produce a hyperlinked ORCID logo next to each author's name.

Key Features:

  • Automatically fetches and displays the official ORCID logo.
  • The logo is hyperlinked directly to your ORCID profile (https://orcid.org/your-orcid-id).
  • Requires only your 16-digit ORCID, not the full URL.
  • Relies on the hyperref package for creating the actual link, though you don't need to load hyperref explicitly if orcidlink is the only package that uses it.

2. Manual Hyperlink with hyperref Package

If you prefer to link text or a custom image to your ORCID, or if you need to add it in a context where the orcidlink package might not be suitable (e.g., in a custom CV template), you can use the hyperref package.

Steps:

  1. Include the hyperref package: Add this to your preamble:

    \usepackage{hyperref}
    % Optional: customize link appearance
    \hypersetup{
        colorlinks=true,
        linkcolor=blue,
        filecolor=magenta,
        urlcolor=cyan,
    }
    • hidelinks option can be used (e.g., \usepackage[hidelinks]{hyperref}) to remove the colored boxes around hyperlinks, making them visually cleaner.
  2. Create the hyperlink: Use the \href command from hyperref.

    • \href{URL}{Text or content to be linked}

    • Linking text:

      My ORCID: \href{https://orcid.org/0000-0001-2345-6789}{orcid.org/0000-0001-2345-6789}

      or even simpler:

      My ORCID: \href{https://orcid.org/0000-0001-2345-6789}{0000-0001-2345-6789}
    • Linking a custom image (e.g., a downloaded ORCID logo):
      First, ensure you have the graphicx package included: \usepackage{graphicx}.
      Place your ORCID logo image (e.g., orcid_icon.png) in the same directory as your .tex file or in a specified graphics path.

      For more information, visit my ORCID profile: \href{https://orcid.org/0000-0001-2345-6789}{\includegraphics[height=1em]{orcid_icon.png}}

When to use this method:

  • When you need more control over the appearance of the link (e.g., specific text, custom image size).
  • In sections like a personal website link in a CV, or a contact information section.

Important Considerations for All Methods

  • Compiler: Ensure you compile your LaTeX document with pdflatex or lualatex to generate a PDF with clickable hyperlinks. latex (DVI output) will not produce active links.
  • Your ORCID: Always double-check that you are using your correct 16-digit ORCID. You can obtain or verify your ORCID at ORCID's official website.
  • Placement: The most common place for an ORCID link is in the author information section of a scientific paper or article. It can also be included in a curriculum vitae (CV), personal website links, or contact details.

Summary of ORCID Link Methods

Here's a quick reference for integrating your ORCID into LaTeX:

Feature orcidlink Package hyperref Package (Manual)
Purpose Inserts hyperlinked ORCID logo Creates general hyperlinks (text/image)
Requires \usepackage{orcidlink} \usepackage{hyperref}
Command \orcidlink{0000-0000-0000-0000} \href{URL}{Text/Content}
Input Your 16-digit ORCID ID only Full ORCID URL and custom text/image
Output Hyperlinked ORCID logo Hyperlinked text or custom image
Common Use Author lists in academic papers CVs, custom text links, other documents
Ease of Use Very high, automated Moderate, requires more manual setup

By following these instructions, you can effectively add your ORCID link to your LaTeX documents, enhancing the visibility and impact of your scholarly work.