[Tex/LaTex] APS formt – how to include email id of all authors

author

How to include email id of all Authors but the first Author is the primary contact. Both the Authors belong to the same department and same university. Also, I want ot know for another paper, how to make the second Author as the primary contact. So, the primary contact appears as *.
With the following code, I am not getting the email id. What is the correct format? Thank you

  \documentclass[aps,prl,reprint]{revtex4-1}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{bm}        % for math
\usepackage{verbatim}   % for math
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{amssymb}
\usepackage{adjustbox}
\newcommand{\revtex}{REV\TeX\ }
\newcommand{\classoption}[1]{\texttt{#1}}
\newcommand{\macro}[1]{\texttt{\textbackslash#1}}
\newcommand{\m}[1]{\macro{#1}}
\newcommand{\env}[1]{\texttt{#1}}
\setlength{\textheight}{9.5in}
\usepackage{adjustbox}
\DeclareMathOperator{\RE}{Re}
\DeclareMathOperator{\IM}{Im}
\usepackage{stfloats}
\newenvironment{psmallmatrix}
  {\left[\begin{smallmatrix}}
  {\end{smallmatrix}\right]}
\usepackage{amsmath,amscd}
\usepackage {extarrows}
\usepackage{algorithm,algpseudocode}
\begin{document}

\title{Tips for delicious cooking for graduate student life}%

\author{Stressed student 1}%,
 \author{Stressed student 1}
\email[student1@gmail.com]{student1@gmail.com}
\affiliation{Department}
\date{June xx, 2017}%
\begin{abstract}
This document shares some tips for cost effective living and budget friendly delicious healthy food.
\end{abstract}
\maketitle
%\tableofcontents
\section{I. Introduction}

\end{document}

img

Best Answer

Just place a \email after each author with the appropriate address (the same way one would handle distinct affiliations).

\documentclass[aps,prl,reprint]{revtex4-1}
\usepackage{lipsum}
\begin{document}
\title{Title}

\author{Foo}
\email{foo@baz.com}

\author{Bar}
\email{bar@baz.com}
\affiliation{Department}

\date{June 29, 2017}

\begin{abstract}
Abstract
\end{abstract}
\maketitle
\lipsum
\end{document}

enter image description here