[Tex/LaTex] Remove abstract from elsevier class

abstracttemplates

I am using the elsevier class to prepare a document.
I would like to remove the abstract environment but I can not find the way to do that. I commented out \begin{abstract} .... \end{abstract} but I still get the two horizontal lines
which enclose the abstract.

Best Answer

As of Feb. 2015, I found that the answer from egreg did not remove the \hrules. There is an additional macro, \pprintMaketitle in which I had to comment out the same lines of code to remove the horizontal rules around the abstract that are present even if no abstract is present.

\documentclass{elsarticle}

\makeatletter
  \long\def\pprintMaketitle{\clearpage
  \iflongmktitle\if@twocolumn\let\columnwidth=\textwidth\fi\fi
  \resetTitleCounters
  \def\baselinestretch{1}%
  \printFirstPageNotes
  \begin{center}%
 \thispagestyle{pprintTitle}%
   \def\baselinestretch{1}%
    \Large\@title\par\vskip18pt
    \normalsize\elsauthors\par\vskip10pt
    \footnotesize\itshape\elsaddress\par\vskip36pt
    % \hrule\vskip12pt
    % \ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi
    % \ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi
    % \hrule\vskip12pt
    \end{center}%
  \gdef\thefootnote{\arabic{footnote}}%
  }
\makeatother

\begin{document}

\begin{frontmatter}
\title{Title}
\author{Author A. Author\corref{cor1}}
\cortext[cor1]{Corresponding Author}
\ead{author@example.com}
\address{Department of Studies, Anywhere U}
\end{frontmatter}

This is the body text.

\end{document}

enter image description here

Related Question