以下是我的示例代码——
\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}
如何将电子邮件地址移动到红色标记的位置?
答案1
以下代码使用etoolbox
补丁- 负责打印标题的宏。它在摘要\pprintMaketitle
之前插入打印电子邮件地址。\hrule
\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}
可以根据需要进行其他调整。