Elsevier的模板,根据它的提示使用affiliation出错。
最简代码如下:
\documentclass[final,5p,times]{elsarticle}
\journal{Test J}
\begin{document}
\begin{frontmatter}
\title{Test Title}
%% use optional labels to link authors explicitly to addresses:
\author[label1]{test}
\affiliation[label1]{
organization={asdf},
addressline={asdf},
city={asdf},
postcode={asdf},
state={asdf},
country={asdf}
}
\end{frontmatter}
\end{document}
\documentclass[final,5p,times]{elsarticle}
\journal{Test J}
\begin{document}
\title{Test Title}
\author[label1]{test}
\affiliation[label1]{
organization={asdf},
addressline={asdf},
city={asdf},
postcode={asdf},
state={asdf},
country={asdf}
}
\maketitle
\end{document}
可能是你的发行版没升级到2021的缘故,我这边显示一切正常。
% !TeX TS-program = pdflatex
\documentclass[final,5p,times]{elsarticle}
\journal{Test J}
\begin{document}
\begin{frontmatter}
\title{Test Title}
%% use optional labels to link authors explicitly to addresses:
\author[label1]{test}
\affiliation[label1]{
organization={asdf},
addressline={asdf},
city={asdf},
postcode={asdf},
state={asdf},
country={asdf}
}
\end{frontmatter}
\end{document}