唯一没有出现的参考,为什么?

唯一没有出现的参考,为什么?

我试图从我的share latex 中检索\cite此参考。但是,它一直显示。它出现在但不在我的参考或引文中。为什么.bib[?].bib

\documentclass{article}

\begin{document}
\nocite{*}
\bibliographystyle{plainurl}
\bibliography{Name.bib}
\printbibliography, 
\end{document}

@article{Heattransfer,
author = {Incropera, Frank P. and DeWitt, David P.},
edition = {Fourth},
number = {30},
pages = {530},
title = {{Introduction to Heat Transfer}},
url = {https://www.amazon.com/Introduction-Heat-Transfer-Frank-Incropera/dp/0471457272},
volume = {0},
year = {2001}
} 

答案1

您的代码中有几个错误。

  • 您忘记拨打电话hyperref以获取参考书目中的正确网址。
  • 您的命令\bibliography{Name.bib}错误,请使用无扩展名的命令.bib
  • 我补充说,您的 bib 条目中缺少该期刊journal = {missing},
  • 命令\printbibliography由包使用biblatex,而不是 bibtex 使用...

请参阅更正后的 MWE:

\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{Heattransfer,
  author  = {Incropera, Frank P. and DeWitt, David P.},
  edition = {Fourth},
  number  = {30},
  pages   = {530},
  title   = {{Introduction to Heat Transfer}},
  url     = {https://www.amazon.com/Introduction-Heat-Transfer-Frank-Incropera/dp/0471457272},
  volume  = {0},
  year    = {2001},
  journal = {missing},
} 
\end{filecontents*}


\documentclass{article}

\usepackage{hyperref} % <======================================= for url

\begin{document}

\nocite{*}
\bibliographystyle{plainurl}
\bibliography{\jobname} % <===================================== no .bib
%\printbibliography % <======================== runs only with biblatex!

\end{document}

及其生成的pdf:

由此产生的书目

相关内容