如何在 elsarticle.cls 中生成电子邮件(而非电子邮件)

如何在 elsarticle.cls 中生成电子邮件(而非电子邮件)

我正在使用elsarticle.cls排版软件排版论文。期刊要求使用“E-mail”而不是“Email”。但elsarticle自动给出的是“Email”。我想知道如何更正?

我正在使用以下命令:

\title{This is a specimen title\tnoteref{t1,t2}}
 \tnotetext[t1]{This document is a collaborative effort.}
 \tnotetext[t2]{The second title footnote which is
    longer than the first one and with an intention to fill
    in up more than one line while formatting.}

 \author[rvt]{C.V.~Radhakrishnan\corref{cor1}\fnref{fn1}}
 \ead{[email protected]}

 \author[rvt,focal]{K.~Bazargan\fnref{fn2}}
 \ead{[email protected]}

答案1

单词“Email”在定义中是硬编码的,\printFirstPageNotes因此您必须重新定义它(或使用 etoolbox 等对其进行修补)。以下是重新定义:

\documentclass{elsarticle}

\makeatletter
\def\printFirstPageNotes{%
  \iflongmktitle
   \let\columnwidth=\textwidth\fi
  \ifx\@tnotes\@empty\else\@tnotes\fi
  \ifx\@nonumnotes\@empty\else\@nonumnotes\fi
  \ifx\@cornotes\@empty\else\@cornotes\fi
  \ifx\@elseads\@empty\relax\else
   \let\thefootnote\relax
   \footnotetext{\ifnum\theead=1\relax
      \textit{E-mail address:\space}\else
      \textit{E-mail addresses:\space}\fi
     \@elseads}\fi
  \ifx\@elsuads\@empty\relax\else
   \let\thefootnote\relax
   \footnotetext{\textit{URL:\space}%
     \@elsuads}\fi
  \ifx\@fnotes\@empty\else\@fnotes\fi
  \iflongmktitle\if@twocolumn
   \let\columnwidth=\Columnwidth\fi\fi
}
\makeatother

\begin{document}
\begin{frontmatter}
\title{This is a specimen title\tnoteref{t1,t2}} \tnotetext[t1]{This document is a collaborative effort.} \tnotetext[t2]{The second title footnote which is longer than the first one and with an intention to fill in up more than one line while formatting.}

\author[rvt]{C.V.~Radhakrishnan\corref{cor1}\fnref{fn1}} \ead{[email protected]}

\author[rvt,focal]{K.~Bazargan\fnref{fn2}} \ead{[email protected]}
\end{frontmatter}

\end{document}

相关部分的图片如下:

在此处输入图片描述

答案2

根据 Gonzalo 的建议,这里有一个etoolbox修补:

\documentclass{elsarticle}% http://www.elsevier.com/wps/find/authorsview.authors/elsarticle
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\patchcmd{\printFirstPageNotes}% <cmd>
  {Email}% <search>
  {E-mail}% <replace>
  {}{}% <success><failure>
\patchcmd{\printFirstPageNotes}% <cmd>
  {Email}% <search>
  {E-mail}% <replace>
  {}{}% <success><failure>

\begin{document}
\begin{frontmatter}
\title{This is a specimen title\tnoteref{t1,t2}} \tnotetext[t1]{This document is a collaborative effort.} \tnotetext[t2]{The second title footnote which is longer than the first one and with an intention to fill in up more than one line while formatting.}

\author[rvt]{C.V.~Radhakrishnan\corref{cor1}\fnref{fn1}} \ead{[email protected]}

\author[rvt,focal]{K.~Bazargan\fnref{fn2}} \ead{[email protected]}
\end{frontmatter}

\end{document}

的双重修补程序将逐一用\printFirstPageNotes替换 的连续使用。EmailE-mail

相关内容