在以下基于 elsarticle 模板编写的 TeX 文件中,我希望第二作者(author2)为通讯作者。我为 author2 输入了 \corref 指令,但当我运行代码时,author2 和 author3 都出现了 \ast 符号。
\documentclass[preprint,12pt]{elsarticle}
\usepackage{epsfig}
\usepackage{subcaption}
\captionsetup{compatibility=false}
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{amsmath}
\newtheorem{thm}{Theorem}
\newproof{pf}{Proof}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator{\sign}{sign}
\journal{X}
\begin{document}
\begin{frontmatter}
\title{The title of the paper are placed here}
\author{author1}
\ead{author1\_ [email protected]}
\author{author2\corref{cor}}
\ead{[email protected]}
\author{author3}
\ead{[email protected]}
\address{The affiliations and adresses}
\cortext[cor]{Corresponding author}
\begin{abstract}
%% Text of abstract
Some text are presented here.
\end{abstract}
\begin{keyword}
%% keywords here, in the form: keyword \sep keyword
Keyword1 \sep Keyword2 \sep Keyword3
\end{keyword}
\end{frontmatter}
\section{Introduction}
\label{intro}
Introduction goes here.
\bibliographystyle{elsarticle-num}
\bibliography{Bibiliography}
\end{document}
答案1
我认为,这是 中的一个错误elsarticle
。如果有三个作者的地址相同,则可以通过一个空\corref
语句来解决该错误。
\documentclass[preprint,12pt]{elsarticle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\newtheorem{thm}{Theorem}
\newproof{pf}{Proof}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator{\sign}{sign}
\journal{X}
\begin{document}
\begin{frontmatter}
\title{The title of the paper are placed here}
\author{author1}
\ead{author1\[email protected]}
\author{author2\corref{cor}}
\ead{[email protected]}
\author{author3\corref{}}
\ead{[email protected]}
\address{The affiliations and addresses}
\cortext[cor]{Corresponding author}
\begin{abstract}
%% Text of abstract
Some text are presented here.
\end{abstract}
\begin{keyword}
%% keywords here, in the form: keyword \sep keyword
Keyword1 \sep Keyword2 \sep Keyword3
\end{keyword}
\end{frontmatter}
\section{Introduction}
\label{intro}
Introduction goes here.
\bibliographystyle{elsarticle-num}
\bibliography{Bibiliography}
\end{document}
几点说明。该软件包epsfig
仅用于与较旧的(1992 年之前)文档兼容,不应在较新的文档中使用。正确的软件包是graphicx
。没有理由选择compatibility=false
。caption
你mathptmx
应该考虑
\usepackage{newtxtext,newtxmath}
答案2
我不知道为什么,但我发现如何。
问题似乎只是命令的顺序和更好的规范\address
。
这应该有效:
\documentclass[preprint,12pt]{elsarticle}
\usepackage{epsfig}
\usepackage{subcaption}
\captionsetup{compatibility=false}
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{amsmath}
\newtheorem{thm}{Theorem}
\newproof{pf}{Proof}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator{\sign}{sign}
\journal{X}
\begin{document}
\begin{frontmatter}
\title{The title of the paper are placed here}
\author[addr]{author1}
\address[addr]{The affiliations and adresses}
\ead{author1\_ [email protected]}
\author[addr]{author2\corref{cor}}
\cortext[cor]{Corresponding author}
\ead{[email protected]}
\author[addr]{author3}
\ead{[email protected]}
\begin{abstract}
%% Text of abstract
Some text are presented here.
\end{abstract}
\begin{keyword}
%% keywords here, in the form: keyword \sep keyword
Keyword1 \sep Keyword2 \sep Keyword3
\end{keyword}
\end{frontmatter}
\section{Introduction}
\label{intro}
Introduction goes here.
\bibliographystyle{elsarticle-num}
\bibliography{Bibiliography}
\end{document}
结果是这样的:
我修改的是:
我把
\cortext
命令放在了 之后\corref
。在您的版本中,\cortext
位于所有\author
s 之后。我向中添加了可选参数
\address
,为每个地址提供一种标签,并将其移动到第一个具有此地址的\address
后面。\author
如果您需要另一个地址,只需更改宏[]
的可选参数(之间)\author
并添加一个\address
条目,如下所示:
\author[addr]{author1}
\address[addr]{The affiliations and adresses}
\ead{author1\_ [email protected]}
\author[addr]{author2\corref{cor}}
\cortext[cor]{Corresponding author}
\ead{[email protected]}
\author[other]{author3}% <- Another address for this author
\address[other]{Another address}% <- The address right after the author
\ead{[email protected]}