> 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-tw/zhi-shi-ku/145-using-bibliographies-on-overleaf.md).

# 在 Overleaf 中使用參考文獻目錄

## 簡介

在 Overleaf 中可以使用所有 LaTeX 主要的參考文獻管理程式來加入參考資料：biblatex、natbib 和 bibtex。本文說明如何：

* 手動建立一個新的 `.bib` 用於儲存你的參考文獻資料庫的檔案
* 上傳現有的 `.bib` 檔案到你的 Overleaf 專案中
* 建立一個 `.bib` 從 Overleaf 範本開始的檔案。

**注意**：付費帳戶使用者可以使用進階功能，讓他們能連結 [Mendeley](/latex/zh-tw/zhi-shi-ku/070-how-to-link-mendeley-to-your-overleaf-account.md), [Zotero](/latex/zh-tw/zhi-shi-ku/073-how-to-link-zotero-to-your-overleaf-account.md)，以及 [Papers](/latex/zh-tw/zhi-shi-ku/071-how-to-link-papers-to-your-overleaf-account.md) 到他們的 Overleaf 帳戶。透過連接這些參考文獻管理工具，你可以輕鬆建立 `.bib` 檔案，方法是大量匯入參考文獻庫或使用 [進階搜尋](/latex/zh-tw/zhi-shi-ku/076-how-to-search-for-references-in-an-overleaf-project.md) 來尋找並匯入個別參考資料。

## 建立你的參考文獻資料庫

若要在你的 Overleaf 專案中建立新的參考文獻檔案，在編輯器中點擊 **新增檔案** 圖示：

![Biblio1OLV2.png](/files/220a8718d653b5159a6efdaa28560d9e4d81ca06)

會出現一個輸入框，讓你設定新檔案的名稱。該檔案應具有 `.bib` 副檔名，在這個例子中它被稱為 `mybibliography.bib`。現在點擊 **建立**.

![Biblio2OLV2.png](/files/ba6dd1c560be9b1a9688239f9647f06dd2a1cad4)

左側面板中會列出一個新檔案，點擊它即可編輯內容。在那裡加入你的參考文獻條目。 ![Biblio3OLV2.png](/files/fafba33b265a86fbc9fb41292ad71d0e2087a02c)

現在你可以匯入這個 `.bib` 檔案到主 `.tex` 檔案中。請看下一個範例。

```latex
\documentclass{article}

\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}

\addbibresource{mybibliography.bib}

\title{書目管理：\texttt{biblatex} 套件}
\author{Share\LaTeX}
\date{ }

\begin{document}

\maketitle

\section{First section}

使用 \texttt{biblatex}，你可以將書目分成不同區段顯示，
視引文類型而定。
來引用吧！愛因斯坦的期刊論文 \cite{einstein} 和狄拉克的
書籍 \cite{dirac} 都是與物理相關的項目。
接著，\textit{The \LaTeX\ Companion} 書籍 \cite{latexcompanion}，以及
Donald Knuth 的網站 \cite{knuthwebsite}，\textit{The Comprehensive
Tex Archive Network} (CTAN) \cite{ctan} 是與 \LaTeX\ 相關的項目；但
其他 Donald Knuth 的項目 \cite{knuth-fa,knuth-acp} 則專門
用於程式設計。

\medskip

\printbibliography
\end{document}
```

![Biblio4OLV2.png](/files/57cf0befab12a907a7eeda150efdf9d4f9e6dc9e)

![Biblio5OLV2.png](/files/b3e2883725d0657a65a4efd9d161009f71922e82)

指令 `\addbibresource{mybibliography.bib}` 會將建立的參考文獻檔案加入文件中，這樣你就可以使用那些參考文獻。請參閱 [LaTeX 中的參考文獻管理](/latex/zh-tw/geng-duo-zhu-ti/05-bibliography-management-in-latex.md) 以取得有關參考文獻管理的更多資訊。

## 上傳你的參考文獻資料庫

如果你已經有一個需要在 Overleaf 專案中使用的參考文獻檔案，你可以上傳它。點擊位於左側面板上方的 **上傳** 圖示。

![Biblio6OLV2.png](/files/5ef2c1755bb588dc5714c839247e8c959a0c7189)

將會出現對話框，你可以拖放檔案，或選擇 `.bib` 來從你的裝置上傳檔案。 **從您的電腦選取** Biblio7OLV2.png

![上傳程序完成後，你就可以將](/files/de04a21cbcbf38657d712307296ebef2984f1ea6)

檔案加入你的主 `.bib` 文件中。 `.tex` 使用範本

## Overleaf Gallery

該 [提供大量範本，包括數個](https://www.overleaf.com/gallery) 與參考文獻相關的 [範本：](https://www.overleaf.com/gallery?addsearch=Bibliographies) Biblio8OLV2.png

![例如，Gallery 搜尋會列出條目](/files/556ed0322b9dd76c73d9518572c98ba473ba0a2c)

Multiple bibliographies with bibunits [，其示範如何在同一文件中建立多個參考文獻／參考列表：](https://www.overleaf.com/latex/examples/multiple-bibliographies-with-bibunits/ktgbztpwjnpb) Biblio9OLV2.png

![如果你選擇「Open as Template」，Overleaf 會建立一個新專案，你可以修改它並將其作為工作基礎：](/files/33cbe294b63e0e07922ac01efe9bfe011f43b23a)

Biblio10OLV2.png

![支援的參考文獻套件](/files/5c0cae9eec4882f271416db816b2d32c945f8f0f)

## 有關 LaTeX 中參考文獻管理的更多資訊，請參閱。

LaTeX 中的參考文獻管理（使用 biblatex）

* [LaTeX 中的參考文獻管理（使用 biblatex）](/latex/zh-tw/geng-duo-zhu-ti/05-bibliography-management-in-latex.md)
* [使用 natbib 進行參考書目管理](/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/02-bibliography-management-with-natbib.md)
* [使用 bibtex 進行參考書目管理](/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/01-bibliography-management-with-bibtex.md)


---

# 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-tw/zhi-shi-ku/145-using-bibliographies-on-overleaf.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.
