尽管 .bib 文件显示年份,但 LaTeX PDF 仍显示 (作者 nd)

尽管 .bib 文件显示年份,但 LaTeX PDF 仍显示 (作者 nd)

所以,我遇到了一个问题。我从 Mendeley 导出了我的 .bib 文件,除了一些小问题之外,它运行良好。直到现在。我很确定这个问题刚刚发生,否则我会更早注意到它。所以。我过去\citep{}在我的文件中引用作者年份格式。.bib 文件中的条目包含所有需要的信息,但是一旦我想在我的文本中引用它,我就会得到 (author nd),这意味着“没有日期”。例如,下面是 Wurm2004 的 .bib 条目,年份是存在的。下面是同一篇文章的 .bbl 条目。缺少年份。我尝试编译它很多次,也尝试手动更改 .bbl 文件中的年份条目。什么都没有改变。如果这个问题已经被问过,请直接给我,我什么也没找到。

@article{Wurm2004,
author = {Wurm, Florian M.},
doi = {10.1038/nbt1026},
file = {:C$\backslash$:/Users/sille/AppData/Local/Mendeley Ltd./Mendeley Desktop/Downloaded/Unknown - Unknown - R E V I E W.pdf:pdf},
journal = {Nature Biotechnology},
number = {11},
pages = {393--398},
title = {{Production of recombinant protein therapeutics in cultivated mammalian cells}},
url = {https://doi.org/10.1038/nbt1026}
volume = {22},
year = {2004}
}

\harvarditem{Wurm}{n.d.}{Wurm2004}
Wurm, F.~M.  \harvardyearleft n.d.\harvardyearright , `{Production of
  recombinant protein therapeutics in cultivated mammalian cells}', {\em Nature
  Biotechnology} (11),~393--398.
\newline\harvardurl{https://doi.org/10.1038/nbt1026}

我用

\usepackage{natbib}
\bibliography{Mendeley}
\bibliographystyle{agsm}

答案1

在添加缺失值之后,url = {https://doi.org/10.1038/nbt1026}以下 MWE 编译时没有错误,只有一个警告(由包引起filecontents,这是正常的):

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
@article{Wurm2004,
  author = {Wurm, Florian M.},
  doi = {10.1038/nbt1026},
  file = {:C$\backslash$:/Users/sille/AppData/Local/Mendeley Ltd./Mendeley Desktop/Downloaded/Unknown - Unknown - R E V I E W.pdf:pdf},
  journal = {Nature Biotechnology},
  number = {11},
  pages = {393--398},
  title = {{Production of recombinant protein therapeutics in cultivated mammalian cells}},
  url = {https://doi.org/10.1038/nbt1026},
  volume = {22},
  year = {2004}
}
\end{filecontents}


\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc}

\usepackage{natbib}

\begin{document}

test \citep{Wurm2004} test 

\nocite{*}
\bibliographystyle{agsm}
\bibliography{\jobname}

\end{document}

它产生了想要的输出:

想要的输出

相关内容