未定义引用,但 bib 文件中存在引用关键字

未定义引用,但 bib 文件中存在引用关键字

我正在 Overleaf 上撰写论文,但所有引用都出现错误:

You have cited something which is not included in your bibliography. 
Make sure that the citation (\cite{...}) has a corresponding key in your bibliography,
and that both are spelled the same way.

我再三检查:

  • bib 文件已存在
  • 此文件中存在引用关键字
  • \bibliography{...}\begin{document}在环境中引用此文件

我挑选了一个最小的可重现示例,并在一个新的 Overleaf black 项目中对其进行了测试。根级别有两个文件:main.texrefs.bib。主要文件内容是:

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{Test}
\author{Author}
\date{July 2021}

\begin{document}

\maketitle

\section{Introduction}
\cite{redmonYOLO9000BetterFaster2017}

\bibliography{refs}
\end{document}

以及该键在bibtex文件中对应的参考:

@inproceedings{redmonYOLO9000BetterFaster2017,
  title = {{{YOLO9000}}: {{Better}}, {{Faster}}, {{Stronger}}},
  shorttitle = {{{YOLO9000}}},
  booktitle = {2017 {{IEEE Conference}} on {{Computer Vision}} and {{Pattern Recognition}} ({{CVPR}})},
  author = {Redmon, Joseph and Farhadi, Ali},
  year = {2017},
  month = jul,
  pages = {6517--6525},
  issn = {1063-6919},
  doi = {10.1109/CVPR.2017.690},
  abstract = {We introduce YOLO9000, a state-of-the-art, real-time object detection system that can detect over 9000 object categories. First we propose various improvements to the YOLO detection method, both novel and drawn from prior work. The improved model, YOLOv2, is state-of-the-art on standard detection tasks like PASCAL VOC and COCO. Using a novel, multi-scale training method the same YOLOv2 model can run at varying sizes, offering an easy tradeoff between speed and accuracy. At 67 FPS, YOLOv2 gets 76.8 mAP on VOC 2007. At 40 FPS, YOLOv2 gets 78.6 mAP, outperforming state-of-the-art methods like Faster RCNN with ResNet and SSD while still running significantly faster. Finally we propose a method to jointly train on object detection and classification. Using this method we train YOLO9000 simultaneously on the COCO detection dataset and the ImageNet classification dataset. Our joint training allows YOLO9000 to predict detections for object classes that dont have labelled detection data. We validate our approach on the ImageNet detection task. YOLO9000 gets 19.7 mAP on the ImageNet detection validation set despite only having detection data for 44 of the 200 classes. On the 156 classes not in COCO, YOLO9000 gets 16.0 mAP. YOLO9000 predicts detections for more than 9000 different object categories, all in real-time.},
  keywords = {COCO detection dataset,Detectors,Favorite,Feature extraction,image classification,Image resolution,ImageNet classification dataset,ImageNet detection task,object classification,object detection,Object detection,object detection system,Paper 1,PASCAL VOC,Real-time systems,Training,YOLO detection method,YOLO9000,YOLOv2 model}
}

编译器是pdfLaTeX。

答案1

添加参考书目样式似乎可以解决问题:

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{Test}
\author{Author}
\date{July 2021}

\begin{document}

\maketitle

\section{Introduction}
\cite{redmonYOLO9000BetterFaster2017}

\bibliographystyle{abbrv}
\bibliography{refs}
\end{document}

在此处输入图片描述

答案2

我遇到了同样的问题,而接受的答案对我没有用。对于那些最终来到这里却无法解决的人来说,这仍然是缺少参考书目样式的问题,但这次,LaTeX 找不到参考书目样式文件。运行应该会发现bibtex file这个问题。我发现:

  • bst缺少自定义书目样式
  • 或者,该样式是类似包的一部分natbib

切换到我知道已安装的另一种风格对我来说是有用的。

相关内容