如何在 BioMed 模板中指定通讯作者?

如何在 BioMed 模板中指定通讯作者?

我正在使用 BioMed 模板。我有两位作者,我想将第二位作者指定为通讯作者。但是,这行不通。你能帮我解决这个问题吗?

在线链接

https://www.sharelatex.com/project/578396a00050c8630b1d2ec9

这是模板 .cls 文件

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AUTHOR
% if corref is not set, we will use first author with an email as a corresponding author
% \corr@author@id -> {au1}
% \corref@list    -> {aff1,aff2}

\newif\ifauthorcorref@notset \authorcorref@notsetfalse


\def\bmc@author{\@ifnextchar[{\author@fmt}{\author@fmt[]}}

\def\author@fmt[#1]#2{%
  \stepcounter{author}{%
  \csname author@cmd\endcsname%
  \author@correffalse%
  \xdef\author@id{au\the\c@author}%
  \setkeys{author}{#1}%
     \@ifundefined{num@author}{\@tempcnta=10\relax}{\@tempcnta=\num@author\relax}%
     \def\a@sep{, }%
     \ifnum\@tempcnta>1\relax%
       \ifnum\c@author=\@tempcnta% 
          \let\a@sep\authorand@sep%
        \else% 
          \let\a@sep\author@sep%
        \fi%
     \fi%
%
  \ifauthorcorref@notset%
    \ifauthor@email% email is set
       \author@correftrue%
       \global\authorcorref@notsetfalse%
    \fi%
  \fi%
  \ifauthor@corref%
     \xdef\corr@author@id{\author@id}%
     \@ifundefined{corref@list}%
       {\@ifundefined{current@address@list}{}{\xdef\corref@list{\current@address@list}}}%
       {}%
  \fi%
%

答案1

您提供的链接显示了一个示例,其中第二作者是通讯作者。只需确保您的 corref 在正确的 \author[] 内即可。

\author[
 addressref={aff1}, 
 email={[email protected]} 
 ]{\inits{JE}\fnm{Jane E} \snm{Doe}}

\author[
 addressref={aff1,aff2}, 
 corref={aff1}, % This is the command that designates corresponding author  
 email={[email protected]}  
 ]{\inits{JRS}\fnm{John RS} \snm{Smith}}

相关内容