Adding authors, affiliations and ORCID iDs in LaTeX
Help centre › LaTeX › Document layout · Packages: authblk, orcidlink
In the article class, load \usepackage{authblk} and write \author[1,2]{Jane Doe} with \affil[1]{University …} so affiliations are numbered once and shared. Add an ORCID iD link with \usepackage{orcidlink} and \orcidlink{0000-0002-1825-0097} after the name. Journal classes have their own author macros, which replace authblk.
A complete example
A whole document: paste it into an empty project and compile it.
\documentclass{article}
\usepackage{authblk}
\usepackage{orcidlink}
\title{Measuring Things Carefully}
\author[1,2]{Jane Doe\,\orcidlink{0000-0002-1825-0097}\thanks{Corresponding author: [email protected]}}
\author[2]{Paul Brown}
\affil[1]{Department of Physics, Example University, Boston, USA}
\affil[2]{Institute for Measurement, Example City, USA}
\date{}
\begin{document}
\maketitle
\section{Introduction}
Text.
\end{document}Without a package
The standard classes put one block per author, separated by \and, with the affiliation on the lines below the name and notes in \thanks. This repeats a shared affiliation under each author.
\documentclass{article}
\title{Measuring Things Carefully}
\author{Jane Doe\thanks{[email protected]}\\ Example University
\and Paul Brown\\ Institute for Measurement}
\date{}
\begin{document}
\maketitle
\end{document}authblk options
\author[1,2]{Name}and\affil[1]{…}: numbered affiliations, each written once.\affil[ ]{…}or\affil*: an affiliation line without a mark.\renewcommand\Affilfont{\small\itshape}and\renewcommand\Authfont{…}: the fonts.\renewcommand\Authands{ and }: the word before the last author.- Package option
blocks: each author with their affiliation beneath, side by side.
ORCID iDs
\orcidlink{iD} prints the green iD logo linked to https://orcid.org/ followed by the iD. Write it after the author's name; it loads hyperref if it is not loaded already. To print the iD itself, add it as text in \thanks or a footnote: ORCID: \href{https://orcid.org/0000-0002-1825-0097}{0000-0002-1825-0097}.
Journal classes
In a journal class, use its own commands: they place names, affiliations and corresponding-author notes as the journal prints them, and authblk would undo that. The fragment below is elsarticle's; it goes inside frontmatter.
\begin{frontmatter}
\title{Measuring Things Carefully}
\author[inst1]{Jane Doe\corref{cor1}}
\ead{[email protected]}
\cortext[cor1]{Corresponding author}
\author[inst1,inst2]{Paul Brown}
\affiliation[inst1]{organization={Example University},
city={Boston}, country={USA}}
\affiliation[inst2]{organization={Institute for Measurement},
city={Example City}, country={USA}}
\end{frontmatter}Common mistakes
- Loading authblk in a journal class that defines its own
\authorand affiliation commands breaks the title block or gives errors. - With authblk, the numbers in
\author[…]must match the\affil[…]marks exactly; a missing affiliation leaves a dangling superscript. \thanksnotes cannot contain a paragraph break.- An ORCID iD has four groups of four characters, the last of which may be X; copy it from the author's ORCID record.
In journal templates
- elsarticle:
\author[label]{Name}with\affiliation[label]{organization={…}, city={…}, country={…}}(older versions use\address[label]{…}),\corref/\cortextfor the corresponding author and\ead{…}for the email. - IEEEtran: in journal mode, names in
\author{…}with\IEEEmembership{…}and affiliations in\thanks{…}; in conference mode,\IEEEauthorblockN{Name}and\IEEEauthorblockA{affiliation}. - revtex: each
\author{Name}is followed by its\affiliation{…}; authors sharing an affiliation are grouped under it, and\email{…}adds the email. - acmart:
\author{Name},\orcid{0000-…}and\affiliation{\institution{…} \city{…} \country{…}}, with\email{…};\orcidlinks the author's name to their ORCID record.
Errors you may meet
- Undefined control sequence.LaTeX met a command it does not know: usually a typo, or a command whose package is not loaded. The log's l. line ends with the culprit.
- LaTeX Error: Option clash for package <name>A package is loaded twice with different options, often because the class or another package loaded it first. Load it once, with all options.
In Manulyx
Insert → Title and authors writes the title block for you.
Write in Manulyx for free · Journal templates
Related
- Adding appendices in LaTeXStart appendices with \appendix so sections become A, B, C, or use the appendix package for "Appendix A" headings and contents entries.
The examples on this page were compiled with pdfLaTeX to check that they work as shown. LaTeX quick reference · LaTeX errors explained