Natbib 引用突然停止工作

Natbib 引用突然停止工作

我正在使用 Eisever 期刊文档类提交一篇文章。我觉得我已经正确编译了 bibtex(Latex>Bibtex>Latex>Latex),但尽管如此,一些引用仍然不起作用。序言:

\documentclass[final,3p,times,twocolumn,authoryear]{elsarticle}
\usepackage{url}
\bibliographystyle{elsarticle-harv} 
\biboptions{authoryear}

当我编译其中几个无法正常工作时,我仔细检查了每个 \citep 命令的参数,发现它们都很好。事实上,我也在 ShareLaTeX 中为不同的目的进行编译,它们在那里可以正常工作。

\section{Background}
Etc Etc Etc \citep{Heidenreich2013} and an estimated 500,000 Canadians \citep{Ross2006}. 

Etc Etc including the American Heart Association \citep{Hunt2005}, American College of Cardiology \citep{Hunt2005}, 
the National Heart Foundation of Australia \citep{Krum2011}, 
the Cardiac Society of Australia and New Zealand \citep{Krum2011}, 
the European Society of Cardiology \citep{Jaarsma2009a} and the Canadian Cardiovascular Society \citep{McKelvie2011}.

具体来说,我们来看看 Heidenreich2013 和 Ross2006。第一个无法编译,但第二个可以。我从 Google 学术中获取了每个代码。但 Heidenreich2013 不起作用。

以下是条目:

}
@article{Ross2006,
  title={Treating the right patient at the right time: access to heart failure care},
  author={Ross, H and Howlett, J and Arnold, J Malcolm O and Liu, P and O’Neill, BJ and Brophy, JM and Simpson, CS and Sholdice, MM and Knudtson, M and Ross, DB and others},
  journal={Canadian journal of Cardiology},
  volume={22},
  number={9},
  pages={749--754},
  year={2006},
  publisher={Elsevier}
}
@article{Heidenreich2013,
  title={Forecasting the impact of heart failure in the United States a policy statement from the American Heart Association},
  author={Heidenreich, Paul A and Albert, Nancy M and Allen, Larry A and Bluemke, David A and Butler, Javed and Fonarow, Gregg C and Ikonomidis, John S and Khavjou, Olga and Konstam, Marvin A and Maddox, Thomas M and others},
  journal={Circulation: Heart Failure},
  volume={6},
  number={3},
  pages={606--619},
  year={2013},
  publisher={Am Heart Assoc}
}

答案1

根据您提供的信息,我可以创建一个 MWE,并且编译时不会出现错误或警告。

由于您只给了我们代码片段,因此我不得不猜测以获得可编译的代码。请检查我的代码是否与您的代码不同。如果有差异,请将它们添加到我的代码中,并将此更改后的代码添加到您的问题中。

使用以下MWE(包括带有包的bib文件filecontents

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Ross2006,
  title={Treating the right patient at the right time: access to heart 
         failure care},
  author={Ross, H and Howlett, J and Arnold, J Malcolm O and Liu, P and 
          O'Neill, BJ and Brophy, JM and Simpson, CS and Sholdice, MM and 
          Knudtson, M and Ross, DB and others},
  journal={Canadian journal of Cardiology},
  volume={22},
  number={9},
  pages={749--754},
  year={2006},
  publisher={Elsevier},
}
@article{Heidenreich2013,
  title={Forecasting the impact of heart failure in the United States a 
         policy statement from the American Heart Association},
  author={Heidenreich, Paul A and Albert, Nancy M and Allen, Larry A and 
          Bluemke, David A and Butler, Javed and Fonarow, Gregg C and 
          Ikonomidis, John S and Khavjou, Olga and Konstam, Marvin A and 
          Maddox, Thomas M and others},
  journal={Circulation: Heart Failure},
  volume={6},
  number={3},
  pages={606--619},
  year={2013},
  publisher={Am Heart Assoc},
}
\end{filecontents*}


\documentclass[%
% final,
% 3p,times,twocolumn,
  authoryear         % is passed to the natbib package, loaded by class 
]{elsarticle}

\usepackage[utf8]{inputenc}

\usepackage{url}
\bibliographystyle{elsarticle-harv} 
%\biboptions{authoryear} % Class option authoryear for elsearticle is the same!

\begin{document}
\section{Background}
Etc Etc Etc \citep{Heidenreich2013} and an estimated 500,000 Canadians \citep{Ross2006}. 

\bibliography{\jobname}
\end{document} 

我没有收到任何错误或警告(包中的警告filecontents是可以的!)并且生成的 pdf:

在此处输入图片描述

您的错误有两种可能:

  1. 我的代码中缺少某些内容(包、选项、代码),导致出现错误或
  2. 您的 BibTeX 文件中 heidenreich 条目上方的一个或多个条目有错误。

请检查并报告结果。查看文件mwe.logmwe.blg。如果您收到错误消息,请添加完整的第一的错误消息。你收到警告了吗?请也添加它们!

附言:感谢@mico的评论。我将其添加到了mwe中。

相关内容