How to add one or multiple authors and affiliations in LaTeX?
In LaTeX, to create a title on top of the page you have to use the \maketitle
command. This command can print a title based on the following declarations:
\author
\date
\title
\thanks
By using these options you can set a custom title for your document. In this tutorial, I will show you how to use the \author
command to add one or multiple authors and affiliations to your LaTeX document.
How to add author and affiliation in LaTeX
To add author and affiliation in the title, you have to write like this \author{Author Name \\ affiliation}
in the preamble of your document. Take a look.
\documentclass{article} \title{It's a Title} \author{Parvez Akhtar Pasha\\ CodeSpeedy} \begin{document} \maketitle \end{document}
Output:
You can also customize the date. Read this: Set or remove date in LaTeX when using \maketitle
Add multiple authors and affiliations in LaTeX
In this case, you have to separate every author with the \and
command. like this.
\author{Author one \\ affiliation
\and Author two \\ affiliation
\and Author three \\ affiliation}
Take a look.
\documentclass{article} \title{It's a title} \author{Author One\\ Institution \and Author Two\\ Institution \and Author Three\\ Institution} \begin{document} \maketitle \end{document}
Output:
Also, you can use the authblk
package to add multiple authors and affiliations. This package provides \author[<Num>]{<author name>}
and \affil[<Num>]{<affiliation>}
command to add multiple authors and affiliations with numbering. Take a look.
\documentclass{article} \usepackage{authblk} \title{It's a title} \author[1]{Author Name} \author[2]{Author Name} \author[3]{Author Name} \affil[1]{Institution} \affil[2]{Institution} \affil[3]{Institution} \begin{document} \maketitle \end{document}
Output:
Same affiliation for multiple authors
To get the same affiliation for multiple authors in LaTeX, you use the \author{}
command like this.
\author{Author One \quad Author Two \quad Author Three\\ Institution}
\documentclass{article} \title{It's a title} \author{Author One \quad Author Two \quad Author Three\\ Institution} \date{} \begin{document} \maketitle \end{document}
Output:
Leave a Reply