1

Here is what my sample code looks like --

\documentclass[review]{elsarticle}

\makeatletter
\def\ps@pprintTitle{%
    \let\@oddhead\@empty
    \let\@evenhead\@empty
    \let\@evenfoot\@empty
    \let\@oddfoot\@empty
}
\makeatother


\usepackage{lipsum}
\usepackage[a4paper,margin = 1in]{geometry}

\begin{document}
    
    \begin{frontmatter}
        
        \title{The title of the article}
        
        \author[mainaddress]{Author 1}
        
        \author[mainaddress]{Author 2}
        \ead{[email protected]}
        
        \address[mainaddress]{The Green Earth}
        
        \begin{abstract}
            \lipsum[1]
        \end{abstract}
        
        \begin{keyword}
            kw1 \sep kw2
        \end{keyword}
        
    \end{frontmatter}
    
    \section{Introduction}
    \lipsum[2-3]
\end{document}

This is the output of this sample code -- sample code output

How do I move the email address to the location marked in red?

2
  • 1
    If this is for an article submission, why do you want to change it?
    – Werner
    Oct 30, 2021 at 17:30
  • @Werner I am not submitting to Elsevier journals. The other publisher doesn't want footnotes but its own latex template is incompatible with amsmath. Oct 30, 2021 at 17:38

1 Answer 1

1

The following code uses etoolbox to patch \pprintMaketitle - the macro responsible for printing the title. It inserts the printing of an email address just before the \hrule of the abstract.

enter image description here

\documentclass[review]{elsarticle}

\usepackage{etoolbox}
\patchcmd{\pprintMaketitle}% <cmd>
  {\hrule}% <search>
  {\makebox[\linewidth][l]{\itshape Email address: \upshape [email protected]}%
   \par
   \vspace{.5\baselineskip}% Space between email address and following rule
   \hrule}% <replace>
  {}{}% <success><failure>
\usepackage{lipsum}

\begin{document}
  
\begin{frontmatter}

\title{The title of the article}

\author[mainaddress]{Author 1}

\author[mainaddress]{Author 2}
%\ead{[email protected]}

\address[mainaddress]{The Green Earth}

\begin{abstract}
  \lipsum[1]
\end{abstract}

\begin{keyword}
  kw1 \sep kw2
\end{keyword}

\end{frontmatter}
  
\section{Introduction}
\lipsum[2-3]

\end{document}

Other adjustments can be made as needed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .