> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/wen-da/03-bibtex-isn-t-working-my-cite-are-showing-up-as-question-marks.md).

# BibTeX 不起作用；我的 \cite 显示为问号（?）

这可能由多种原因造成：

* 你是否使用了任何 `\cite` 文档中的命令？只有已经在 `\cite` 正文中引用过的 bib 条目才会出现在参考文献列表中。
* 你是否指定了正确的 `.bib` 文件名（不含扩展名）用于 `\bibliography{...}`？它区分大小写，所以请注意拼写错误。
* 你是否通过 `\bibliographystyle{...}`指定了参考文献样式？如果该样式不是 [TeX Live 自带的标准样式](/latex/zh-cn/wen-da/84-which-bibtex-styles-are-available-on-overleaf.md)，你需要上传 `.bst` 该文件到你的项目中。
* 你的 `.bib` 文件中可能有语法错误，导致 bibtex 无法正确解析它。如果是这样，警告信息中应该会有相关提示；请据此修复，bibtex 就应该能够再次读取它们。
* 你的 `.bib` 文件或主 `.tex` 文件是否位于一个名称中包含空格或特殊字符的文件夹中？主 `.tex` 文件应始终位于顶层，而位于名称含空格或特殊字符文件夹中的文件有时可能会在编译过程中找不到。
* 如果你已经完成以上所有操作但引用仍然不起作用：在某些边缘情况下，这也可能发生，这是由于 .log 文件中的行格式以及构建工具读取文件的方式所致。添加 `\typeout{}` 之前禁用超链接， `\bibliography{...}` 可能会有所帮助。

有关 BibTeX 的更多信息，请查看我们的 [免费在线互动教程](/latex/zh-cn/geng-duo-zhu-ti/13-free-online-introduction-to-latex-part-1.md)，或者看看这个 [视频教程](/latex/zh-cn/wen-da/49-how-to-include-a-bibliography-using-bibtex.md) 和 [维基书文章](https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/wen-da/03-bibtex-isn-t-working-my-cite-are-showing-up-as-question-marks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
