Add clickable email for authors in LaTeX
In this tutorial, you will learn how to add clickable email for one or multiple authors in a LaTeX document.
To add email for an author you can do like this.
\author{Author Name \\ Email id}
To add the clickable email you can use the hyperref
package and \href{}
command like this.
\author{Author Name \\ \href{mailto:author@xyz.com}{author@xyz.com}}
You can use the [hidelinks]
option with the hyperref
package to remove the border around the link.
\documentclass{article} \usepackage[hidelinks]{hyperref} \title{This is a title} \author{Author1 \\ Email: \href{mailto:author1@xyz.com}{author1@xyz.com} \and Author2 \\ Email: \href{mailto:author2@xyz.com}{author2@xyz.com} } \begin{document} \maketitle \end{document}
Output:
Use \thanks command to add email
You can also use the \thanks{<email>}
command inside the \author
command to get the Email ID at the bottom of the title page.
\author{Author NameĀ \thanks{\href{mailto:author@xyz.com}{author@xyz.com}}}
\documentclass{article} \usepackage[hidelinks]{hyperref} \title{This is a title} \author{Author1 \thanks{\href{mailto:author1@xyz.com}{author1@xyz.com}} \and Author2 \thanks{\href{mailto:author2@xyz.com}{author2@xyz.com}} } \begin{document} \maketitle \end{document}
Output:
Leave a Reply