> 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/20-how-do-i-add-a-bibliography-to-my-document.md).

# 如何为文档添加参考文献列表？

首先，导出一个 `.bib` 来自你的参考文献管理器的文件，或者创建一个 `.bib` 文件。然后，上传 `.bib` 通过文件菜单上传该文件。你也可以导入 `.bib` 文件，通过直接的 [Mendeley 或 Zotero 集成](/latex/zh-cn/zhi-shi-ku/073-how-to-link-zotero-to-your-overleaf-account.md) 该功能适用于以下用户： [付费套餐](https://www.overleaf.com/user/subscription/plans).

一旦你的参考文献文件上传完成，就有多种参考文献宏包可用于在你的文档中显示相关条目（在你引用它们时）。例如，我们经常使用 `natbib` 宏包，以及用于 `natbib` 看起来像：

```latex
...
\usepackage{natbib}
...
\begin{document}
...
\bibliographystyle{plainnat}
\bibliography{name-of-your-bib-file-here}
\end{document}
```

你也可以通过文件菜单直接编辑 bib 文件。有关向文档中添加参考文献的更多信息，请参见 [我们的 LaTeX 入门课程第 2 部分](https://www.overleaf.com/blog/9) 或者查看 [LaTeX维基教科书](http://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/20-how-do-i-add-a-bibliography-to-my-document.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.
