[Tex/LaTex] Elsarticle frontmatter corresponding author

elsarticlefront-mattertitles

I believe I have followed the template exactly but as this following MWE shows I am getting an asterisk on both authors and not just the corresponding author. Do I have something in the wrong order somewhere?

\documentclass[preprint,12pt]{elsarticle}

\begin{document}

\begin{frontmatter}

\title{Title}

\author{Author One\corref{cor1}\fnref{fn1}}
\ead{email@uni.edu}
\cortext[cor1]{Corresponding author}
\fntext[fn1]{Student}

\author{Author Two\fnref{fn2}}
\ead{email2@uni.edu}
\fntext[fn2]{Lecturer}

\address{Address Here}

\begin{abstract}
Abstract abstract abstract
\end{abstract}

\end{frontmatter}

\section{Section1}
Start typing...

\end{document}

Thanks

Best Answer

It is a bug in the 2009 version, which is the one in the 2012 TeXlive. When no address label is specified the correspondng \@author command forgets to reset the \@corref variable. You can fix this by adding in such a reset as follows:

Sample output

\documentclass[preprint,12pt]{elsarticle}

\makeatletter
\def\@author#1{\g@addto@macro\elsauthors{\normalsize%
    \def\baselinestretch{1}%
    \upshape\authorsep#1\unskip\textsuperscript{%
      \ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi
      \ifx\@corref\@empty\else\unskip\sep\@corref\let\sep=,\fi
      }%
    \def\authorsep{\unskip,\space}%
    \global\let\@fnmark\@empty
    \global\let\@corref\@empty  %% Added
    \global\let\sep\@empty}%
    \@eadauthor={#1}
}
\makeatother

\begin{document}

\begin{frontmatter}

\title{Title}

\author{Author One\corref{cor1}\fnref{fn1}}
\ead{email@uni.edu}
\cortext[cor1]{Corresponding author}
\fntext[fn1]{Student}


\author{Author Two\fnref{fn2}}
\ead{email2@uni.edu}
\fntext[fn2]{Lecturer}

\address{Address Here}

\begin{abstract}
Abstract abstract abstract
\end{abstract}

\end{frontmatter}

\section{Section1}
Start typing...

\end{document}