> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-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://ayakaleaf-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.
