# [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}}
\cortext[cor1]{Corresponding author}
\fntext[fn1]{Student}

\author{Author Two\fnref{fn2}}
\fntext[fn2]{Lecturer}

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

\end{frontmatter}

\section{Section1}
Start typing...

\end{document}


Thanks

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:

\documentclass[preprint,12pt]{elsarticle}

\makeatletter
\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\sep\@empty}%
}
\makeatother

\begin{document}

\begin{frontmatter}

\title{Title}

\author{Author One\corref{cor1}\fnref{fn1}}
\cortext[cor1]{Corresponding author}
\fntext[fn1]{Student}

\author{Author Two\fnref{fn2}}
\fntext[fn2]{Lecturer}